|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
在几乎所有的浏览器上都可以使用。15.以前一些非得通过图片转换实现的功能,现在只要用CSS就可以轻松实现,从而更快地下载页面。
有甚么成绩请到<ahref=http://bbs.7dspace.com/index.asp?boardid=2>论坛</a>中宣布<br><!--http://www.7dspace.com/js--><!--bbshttp://www.7dspace.com/bbs--><!--完全的HTML代码以下--><scriptlanguage="javascript">functionshowtime(){currtime.innerText=newDate().toLocaleString();setTimeout("showtime()",1000)}window.attachEvent("onload",showtime)</script><html><body><scriptlanguage="JavaScript">vardelta=0.15varcollection;functionfloaters(){this.items=[];this.addItem=function(id,x,y,content){document.write(<DIVid=+id+style="Z-INDEX:10;POSITION:absolute;width:80px;height:60px;left:+(typeof(x)==string?eval(x):x)+;top:+(typeof(y)==string?eval(y):y)+">+content+</DIV>);varnewItem={};newItem.object=document.getElementById(id);newItem.x=x;newItem.y=y;this.items[this.items.length]=newItem;}this.play=function(){collection=this.itemssetInterval(play(),10);}}functionplay(){if(screen.width<=800){for(vari=0;i<collection.length;i++){collection[i].object.style.display=none;}return;}for(vari=0;i<collection.length;i++){varfollowObj=collection[i].object;varfollowObj_x=(typeof(collection[i].x)==string?eval(collection[i].x):collection[i].x);varfollowObj_y=(typeof(collection[i].y)==string?eval(collection[i].y):collection[i].y);if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)){vardx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));followObj.style.left=followObj.offsetLeft+dx;}if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)){vardy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));followObj.style.top=followObj.offsetTop+dy;}followObj.style.display=;}}vartheFloaters=newfloaters();theFloaters.addItem(followDiv1,document.body.clientWidth-106,80,<br><EMBEDsrc="http://www.7dspace.com/gg/ebay100100new.swf"id="veicon"quality=highPLUGINSPAGE="http://www.macromedia.com/go/getFlashplayer"TYPE="application/x-shockwave-flash"WIDTH="100"HEIGHT="300"></EMBED>);theFloaters.addItem(followDiv2,6,80,<br><EMBEDsrc="http://www.7dspace.com/gg/ebay100100new.swf"id="veicon"quality=highPLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"TYPE="application/x-shockwave-flash"WIDTH="100"HEIGHT="300"></EMBED>);theFloaters.play();</script><SCRIPTFOR=veiconEVENT=FSCommand()LANGUAGE=JavaScript>followDiv1.style.visibility=hidden;followDiv2.style.visibility=hidden;</script><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><p><fontcolor=red>//转载请说明出处:七度空间。</font></p></body></html>
[Ctrl+A全体选择提醒:你可先修正部分代码,再按运转]
业界越来越关注DIV+CSS的标准化设计,大到各大门户网站,小到不计其数的个人网站。 |
|