| 特效代码集 |
|
作者:野汉子 文章来源:im286 点击数: 更新时间:2004-8-25 14:33:51  |
|
鼠标经过显示不同图片
| Code: |
[Copy to clipboard] |
<SCRIPT LANGUAGE="javascript"> var a = new Image(); var b = new Image(); var c = new Image();
a.src = "../../../yanyanyan/me/me/4.jpg"; b.src = "../../../yanyanyan/me/me/3.jpg"; c.src = "../../../yanyanyan/me/me/2.jpg";
function doButtons(picimage) { eval("document['picture'].src = " + picimage + ".src"); } </script>
</head>
<body>
<table width="407" height="201" border=0 cellpadding="0" cellspacing="0" bgcolor="#333333"> <tr><td width="110" align="center"> <p> <a href="#" onmouseover="doButtons('a')">PHOTO 1</a><p>
<a href="#" onmouseover="doButtons('b')">PHOTO 2</a><p>
<a href="#" onmouseover="doButtons('c')">PHOTO 3</a><p> <td width="297"><img name=picture src="../../../yanyanyan/me/me/4.jpg" width=294 height=345 border=0></td> </tr> </table> | |
| Code: |
[Copy to clipboard] |
<style> .jc{ position:relative; } </style>
<script language="javascript1.2">
var ns6=document.getElementById&&!document.all var ie=document.all
var customcollect=new Array() var i=0
function jiggleit(num){ if ((!document.all&&!document.getElementById)) return; customcollect[num].style.left=(parseInt(customcollect[num].style.left)==-1)? customcollect[num].style.left=1 : customcollect[num].style.left=-1 }
function init(){ if (ie){ while (eval("document.all.jiggle"+i)!=null){ customcollect[i]= eval("document.all.jiggle"+i) i++ } } else if (ns6){ while (document.getElementById("jiggle"+i)!=null){ customcollect[i]= document.getElementById("jiggle"+i) i++ } }
if (customcollect.length==1) setInterval("jiggleit(0)",80) else if (customcollect.length>1) for (y=0;y<customcollect.length;y++){ var tempvariable='setInterval("jiggleit('+y+')",'+'100)' eval(tempvariable) } }
window.onload=init
</script>
<span id="jiggle0" class="jc"><b>抖动的字<a href="http://yjj.con.cn">Website 俊杰网络!</a></b></span> </head> | |
标题拦特效
| Code: |
[Copy to clipboard] |
<SCRIPT>
//change title text to your own var titletext="Welcome to Dynamic Drive" var thetext="" var started=false var step=0 var times=1
function welcometext() { times-- if (times==0) { if (started==false) { started = true; document.title = titletext; setTimeout("anim()",1); } thetext = titletext; } }
function showstatustext(txt) { thetext = txt; setTimeout("welcometext()",4000) times++ }
function anim() { step++ if (step==7) {step=1} if (step==1) {document.title='>==='+thetext+'===<'} if (step==2) {document.title='=>=='+thetext+'==<='} if (step==3) {document.title='>=>='+thetext+'=<=<'} if (step==4) {document.title='=>=>'+thetext+'<=<='} if (step==5) {document.title='==>='+thetext+'=<=='} if (step==6) {document.title='===>'+thetext+'<==='} setTimeout("anim()",200); }
if (document.title) window.onload=onload=welcometext </SCRIPT> | |
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> |
| 文章录入:admin 责任编辑:admin |
|
上一篇文章: 真正页面无刷新调用数据原理
下一篇文章: JS广告代码大集合 |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |