html登陆界面代码

html登陆界面代码,第1张

<form method="post" action="###" name="myform" onsubmit="checkpost()">

<label for="name">用户名:</label><input type="text" name="name" id="name" /><br />

<label for="pw">密码:</label><input type="password" name="pw" id="pw" /><br />

<input type="submit" value="提交" />

</form>

<script>

function checkpost(){

if(document.forms[0].name.value=="你要的用户名"&&document.forms[0].pw.value=="你要的密码"){

window.location="你要跳转的地址"

}else{

alert("用户名或密码不正确!")

return false

}

}

</script>

function login(){

if (document.login.usename.value== "logon" &&document.login.password.value =="logon") {

location.href="main.html"

//document.login.usename 跟document.login.password 中的login 要换成你的表单名称, //usename、password 要换成你 字段的名称。

}else{

return false

}

}

<html><head><title>滚动字幕</title></head>

<body text=#ff0000 bgcolor=#ccff99>

<marquee>请进入音乐休闲屋</marquee>

<marquee direction=left>看我还会动呢,并且是从右向左移动

</marquee><p>

<marquee direction =right behavior=scroll>我从左向右一圈一圈的移动

</marquee ><p>

<marquee scrollamount=18>我是不是移动的比较快?

</marquee><P>

<marquee loop=3 bgcolor=blue>我的底色是蓝的,我循环三次即停止移动

</marquee ><p>

</body></html>


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/7551814.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-07
下一篇 2023-04-07

发表评论

登录后才能评论

评论列表(0条)

保存