1添加到收藏夹:al.addFavorite('www.51zq','我的足球网')
2. 表示关闭窗口:javascript:window.close()
3. 表示弹出一个提示对话框:javascript:alert(hello!’)
4. 设置为默认主页:(需通过空链接#触发onClick事件)
onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('www.51zq/')
T图片由右向左滚动代码
<marquee scrollamount=1 scrolldelay=5valign=middle behavior="scroll"> <A href="www.baidu" target=_blank><IMG src="image/22.jpg" border=0></A><A href=www.baidu border=0 target=_blank><IMG src="image/23.jpg" </A>
border=0></A><A href="www.baidu" border=0 target=_blank><IMG src="image/24.jpg" </A>
border=0></A><A href="www.baidu" border=0 target=_blank><IMG src="image/25.jpg" </A>
border=0></A><A href="www.baidu" border=0 target=_blank><IMG src="image/26.jpg" </A>
border=0></A><A href="www.baidu" border=0 target=_blank><IMG src="image/10.jpg" </A></marquee>
border=0></A><A href="www.baidu" border=0 target=_blank><IMG
图片有下文上的代码
<marquee onMouseOver="this.stop()" onMouseOut="this.start()" align=center direction=up scrollamount=1 scrolldelay=3 valign=middle behavior="scroll"> <A href="链接地址一" target=_blank><IMG src="图片地址一" border=0></A><A href="链接地址二" target=_blank><IMG src="图片地址二" border=0></A></marquee>
用户登录设置
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
    <form>
    用户名:<input type="text" />
    密码:<input type="text" />
<input type="button" value="登录"/>
    <input type="reset" value="重填"/>
  </form>
</body>
</html>
  搜索按钮<input type="reset" value="搜索"/
状态栏的跑马灯文字
把如下代码加入< head>区域中
< script language="javascript">
< !--
function scrollit(seed) {
个人网站的制作代码
var m1 = "HI:你好! ";
var m2 = "欢迎访问网页教学网";
var m3 = "请多提意见,谢谢! ";
var m4 = "欢迎您下次再来!";
var m5 = "www.webjx ";
var msg=m1+m2+m3+m4+m5;
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed < = 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
ut+=msg;
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
 }
else if (seed < = 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit(100)",75);
}
}
}
//-->
< /script>
第二步:把如下代码加入< body>区域中
< body background=bag.gif onLoad="scrollit(100)">

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。