标题:网页特效代码集合,菜鸟必看~~~~~~!
取消只看楼主
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
 问题点数:0 回复次数:20 
网页特效代码集合,菜鸟必看~~~~~~!

本人新来的版主,为和大家共同创建美好家园,本人决定从明天起每天发一个网页特效代码

希望能帮助菜鸟同志们

敬礼

[此贴子已经被作者于2004-11-15 23:09:49编辑过]

搜索更多相关主题的帖子: 网页特效代码 敬礼 版主 同志 
2004-11-11 23:02
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
得分:0 

先从最基本开始

鼠标后飘动的字符

<style type="text/css"> .spanstyle { COLOR: #00cccc; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; POSITION: absolute; TOP: -50px; VISIBILITY: visible } </style> <script> var x,y var step=18 var flag=0 var message="★Viking希望能得到你们的支持,谢谢!" message=message.split("") var xpos=new Array() for (i=0;i<=message.length-1;i++) { xpos[i]=-50 } var ypos=new Array() for (i=0;i<=message.length-1;i++) { ypos[i]=-200 } function handlerMM(e){ x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY flag=1 } function www_helpor_net() { if (flag==1 && document.all) { for (i=message.length-1; i>=1; i--) { xpos[i]=xpos[i-1]+step ypos[i]=ypos[i-1] } xpos[0]=x+step ypos[0]=y for (i=0; i<message.length-1; i++) { var thisspan = eval("span"+(i)+".style") thisspan.posLeft=xpos[i] thisspan.posTop=ypos[i] } } else if (flag==1 && document.layers) { for (i=message.length-1; i>=1; i--) { xpos[i]=xpos[i-1]+step ypos[i]=ypos[i-1] } xpos[0]=x+step ypos[0]=y for (i=0; i<message.length-1; i++) { var thisspan = eval("document.span"+i) thisspan.left=xpos[i] thisspan.top=ypos[i] } } var timer=setTimeout("www_helpor_net()",30) } for (i=0;i<=message.length-1;i++) { document.write("<span id='span"+i+"' class='spanstyle'>") document.write(message[i]) document.write("</span>") } if (document.layers){ document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = handlerMM; www_helpor_net(); // --> </script>

[此贴子已经被静夜思于2005-1-4 9:15:57编辑过]


┏━━━ミ━━┓ ┃     |||┃ ┃━━ ﹏ ━━┃ ┗━━━━━━┛ ~洋葱头~~小辫辫~ ~血可流!头可断~! ~偶滴发型不能乱~
2004-11-12 21:39
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
得分:0 

去掉链接下划线

<style TYPE="text/css"> <!-- A:link{text-decoration:none} A:visited{text-decoration:none} A:hover {color: #ff00ff;text-decoration:underline} --> </style>


┏━━━ミ━━┓ ┃     |||┃ ┃━━ ﹏ ━━┃ ┗━━━━━━┛ ~洋葱头~~小辫辫~ ~血可流!头可断~! ~偶滴发型不能乱~
2004-11-12 21:40
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
得分:0 

状态栏里的欢迎语

<script language="JavaScript"> <!-- function statusMessageObject(p,d) { this.msg = MESSAGE this.out = " " this.pos = POSITION this.delay = DELAY this.i = 0 this.reset = clearMessage } function clearMessage() { this.pos = POSITION } var POSITION = 100 var DELAY = 5 var MESSAGE = "欢迎光临! Welcome to icesboy.91x.net " var scroll = new statusMessageObject() function scroller() { for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++) { scroll.out += " " } if (scroll.pos >= 0) scroll.out += scroll.msg else scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length) window.status = scroll.out scroll.out = " " scroll.pos-- if (scroll.pos < -(scroll.msg.length)) { scroll.reset() } setTimeout ('scroller()',scroll.delay) } function snapIn(jumpSpaces,position) { var msg = scroll.msg var out = "" for (var i=0; i<position; i++) {out += msg.charAt(i)} for (i=1;i<jumpSpaces;i++) {out += " "} out += msg.charAt(position) window.status = out if (jumpSpaces <= 1) { position++ if (msg.charAt(position) == ' ') {position++ } jumpSpaces = 100-position } else if (jumpSpaces > 3) {jumpSpaces *= .75} else {jumpSpaces--} if (position != msg.length) { var cmd = "snapIn(" + jumpSpaces + "," + position + ")"; scrollID = window.setTimeout(cmd,scroll.delay); } else { window.status="" jumpSpaces=0 position=0 cmd = "snapIn(" + jumpSpaces + "," + position + ")"; scrollID = window.setTimeout(cmd,scroll.delay); return false } return true } snapIn(100,0); // --> </script>

[此贴子已经被静夜思于2005-1-4 9:16:48编辑过]


┏━━━ミ━━┓ ┃     |||┃ ┃━━ ﹏ ━━┃ ┗━━━━━━┛ ~洋葱头~~小辫辫~ ~血可流!头可断~! ~偶滴发型不能乱~
2004-11-12 21:43
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
得分:0 
&lt;span style="CURSOR: hand" onClick="window.external.addFavorite('http://www.','新浪')" title="新浪"&gt;收藏本站&lt;/span&gt;
   

┏━━━ミ━━┓ ┃     |||┃ ┃━━ ﹏ ━━┃ ┗━━━━━━┛ ~洋葱头~~小辫辫~ ~血可流!头可断~! ~偶滴发型不能乱~
2004-11-12 21:45
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
得分:0 

加入收藏夹

<span style="CURSOR: hand" onClick="window.external.addFavorite('http://www.sina.com','新浪')" title="新浪">收藏本站</span>


┏━━━ミ━━┓ ┃     |||┃ ┃━━ ﹏ ━━┃ ┗━━━━━━┛ ~洋葱头~~小辫辫~ ~血可流!头可断~! ~偶滴发型不能乱~
2004-11-12 21:45
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
得分:0 

设为首页

<span onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('你的网址');" style="CURSOR: hand">设为首页</span>


┏━━━ミ━━┓ ┃     |||┃ ┃━━ ﹏ ━━┃ ┗━━━━━━┛ ~洋葱头~~小辫辫~ ~血可流!头可断~! ~偶滴发型不能乱~
2004-11-12 21:46
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
得分:0 

网页背景音乐

<EMBED src=http://www.woduhom.com/wfzy/15.mid width=0 height=0 type=audio/mid loop="true" autostart="true" border="0"></EMBED> </FONT>

把蓝色地方换成背景音乐的地址


┏━━━ミ━━┓ ┃     |||┃ ┃━━ ﹏ ━━┃ ┗━━━━━━┛ ~洋葱头~~小辫辫~ ~血可流!头可断~! ~偶滴发型不能乱~
2004-11-12 21:48
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
得分:0 

禁右键

<script language="javascript"> function click() { if (event.button==2) { alert('小样,偷想看我东西 。') } } document.onmousedown=click </script>

放入<body>区域中


┏━━━ミ━━┓ ┃     |||┃ ┃━━ ﹏ ━━┃ ┗━━━━━━┛ ~洋葱头~~小辫辫~ ~血可流!头可断~! ~偶滴发型不能乱~
2004-11-12 21:51
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
得分:0 

接着昨天

ie按钮总动员 <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0>  </OBJECT>  <input onclick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开 name=Button1>  <input onclick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存为 name=Button2>  <input onclick=document.all.WebBrowser.ExecWB(10,1) type=button value=属性 name=Button3>  <input onclick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印 name=Button>  <input onclick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置 name=Button4>    <input onclick=window.location.reload() type=button value=刷新 name=refresh>  <input onclick="window.external.ImportExportFavorites(true,'');" type=button value=导入收藏夹 name=Button5>  <input onclick="window.external.ImportExportFavorites(false,'');" type=button value=导出收藏夹 name=Button32>  <input onclick="window.external.AddFavorite(location.href, document.title)" type=button value=加入收藏夹 name=Button22>    <input onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" type=button value=整理收藏夹 name=Submit2>  <input onclick='window.location="view-source:" + window.location.href' type=button value=查看源文件 name=Button7>  <input onclick="window.external.ShowBrowserUI('LanguageDialog', null)" type=button value=语言设置 name=Button6>  <input onclick=history.go(1) type=submit value=前进 name=Submit>  <input onclick=history.go(-1) type=submit value=后退 name=Submit2>


┏━━━ミ━━┓ ┃     |||┃ ┃━━ ﹏ ━━┃ ┗━━━━━━┛ ~洋葱头~~小辫辫~ ~血可流!头可断~! ~偶滴发型不能乱~
2004-11-13 21:05



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-7495-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.163912 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved