首 页
|
|
关于我
站内公告:欢迎光临本站,音乐欣赏请点[
Music
],歌曲下载[
目录
]
>日历
>友情链接
More Links...
>5D公社
飞 盟
师 者
Googler
>最新评论
>搜索日志
>访问计数
>本站Logo-欢迎链接
>获取RSS
我从poorfish那半偷半学来的代码[推荐使用]
 
 
 
设计集
2004-7-17 17:22
这个代码对做友情链接比较多的人有用
可以修改每行显示的个数
但要注意总数不要是每行显示个数的倍数,因为这样会有些小小问题
改成图片也可以
自己改吧
<HTML><HEAD><TITLE>11</TITLE> </HEAD> <B>Links:</B> <SCRIPT> var marqueeContent=new Array(); //定义一个数组,用来存放显示内容 marqueeContent[0]='<a href="http://www.blueidea.com" target="_blank"> Blueidea</a> | '; marqueeContent[1]='<a href="http://www.foxsdesign.com/dlog/" target="_blank">Foxdesign</a> | '; marqueeContent[2]='<a href="http://lexrus.blueidea.com" target="_blank">LeXRus</a> | '; marqueeContent[3]='<a href="http://myhyli.digichina.net" target="_blank">Myhily</a> | '; marqueeContent[4]='<a href="http://mmkk.xslkit.com" target="_blank">mmkk</a> | '; marqueeContent[5]='<a href="http://handmade.blueidea.com" target="_blank">4Elements</a> | '; marqueeContent[6]='<a href="http://www.dengjie.com" target="_blank">Danger</a> | '; marqueeContent[7]='<a href="http://www.loveyuki.com" target="_blank">Loveyuki</a> | '; marqueeContent[8]='<a href="http://fanr.net" target="_blank">Fanix</a> | '; marqueeContent[9]='<a href="http://www.cnbruce.com/blog/" target="_blank">cnbruce</a> | '; marqueeContent[10]='<a href="http://user3.net163.com/myblog" target="_blank">tsingove</a> | '; marqueeContent[11]='<a href="http://wzz.jh8.net/blog/" target="_blank">古城</a> | '; marqueeContent[12]='<a href="http://www.ywicc.com/webcoding" target="_blank">webcoding</a> | '; marqueeContent[13]='<a href="http://blog.phpu.net" target="_blank">Gavin</a> | '; marqueeContent[14]='<a href="http://www.iamxixi.com" target="_blank">xixi</a> | '; marqueeContent[15]='<a href="http://plod.popoever.com" target="_blank">popoever</a> | '; marqueeContent[16]='<a href="http://www.wanglufeng.com/blog/" target="_blank">大头绿豆</a> | '; marqueeContent[17]='<a href="http://adamlab.vicp.net" target="_blank">adamlab</a> | '; marqueeContent[18]='<a href="http://imhow.donews.net/imhow/" target="_blank">ImHow</a> | '; marqueeContent[19]='<a href="http://www.conjee.com/home/" target="_blank">稀饭</a> | '; marqueeContent[20]='<a href="http://www.envymask-here.com" target="_blank">Envymask</a> | '; marqueeContent[21]='<a href="http://www.chinavane.com" target="_blank">风向标</a> | '; marqueeContent[22]='<a href="http://www.riancy.com/vv/" target="_blank">riancy</a> | '; marqueeContent[23]='<a href="http://simonfish.delphibbs.com" target="_blank">SimonFish</a> | '; marqueeContent[24]='<a href="http://www.iamting.com" target="_blank">IamTing</a> | '; marqueeContent[25]='<a href="http://www.drywettex.com/minority/?oosukioo" target="_blank">snowry</a> | '; marqueeContent[26]='<a href="http://www.viz.cn" target="_blank">密码遗失</a> | '; marqueeContent[27]='<a href="http://www.ieidea.com" target="_blank">iei</a> | '; marqueeContent[28]='<a href="http://egovol.com/zwingblog/" target="_blank">xWing</a> | '; marqueeContent[29]='<a href="http://pop.ht-dc.com/dlog" target="_blank">explain</a> | '; marqueeContent[30]='<a href="http://www.gtma.cn/DLOG/" target="_blank">神の翩翩夏日</a> | '; marqueeContent[31]='<a href="http://blog.sophoto.cn" target="_blank">SOPHOTO</a> | '; marqueeContent[32]='<a href="http://www.dragoning.com/blog" target="_blank">龙吟天下</a> | '; marqueeContent[33]='<a href="http://www.haoxiaowei.com" target="_blank">bluesky</a> | '; marqueeContent[34]='<a href="http://blog.ahfun.net" target="_blank">ahfun</a> | '; marqueeContent[35]='<a href="http://www.myie2.com/sic/blog/" target="_blank">Sic</a> | '; marqueeContent[36]='<a href="http://www.kinderpower.com/mfblog/" target="_blank">老猫の理想</a> | '; marqueeContent[37]='<a href="http://asp5.6to23.com/omiffyo/" target="_blank">miffy</a> | '; marqueeContent[38]='<a href="http://www.javayou.com" target="_blank">JavaYou</a> | '; marqueeContent[39]='<a href="http://www.spring-rain.net/blog/" target="_blank">豆豆</a> | '; marqueeContent[40]='<a href="http://www.keeyo.com/htmlog/" target="_blank">蓝色D小调</a> | '; marqueeContent[41]='<a href="http://eedstu.xmu.edu.cn/blog" target="_blank">Victor</a> | '; var marqueeInterval=new Array(); //定义一些常用而且要经常用到的变量 var marqueeId=0; var marqueeDelay=4000; var marqueeHeight=19; //接下来的是定义一些要使用到的函数 Array.prototype.random=function() { var a=this; var l=a.length; for(var i=0;i<l;i++) { var r=Math.floor(Math.random()*(l-i)); a=a.slice(0,r).concat(a.slice(r+1)).concat(a[r]); } return a; } function initMarquee() { marqueeContent=marqueeContent.random(); var str=''; for(var i=0;i<Math.min(11,marqueeContent.length);i++) str+=(i>0?'':'')+marqueeContent[i]; document.write('<span id=marqueeBox style="overflow:hidden;height:'+marqueeHeight+'px" onmouseover="clearInterval(marqueeInterval[0])" onmouseout="marqueeInterval[0]=setInterval(\'startMarquee()\',marqueeDelay)"><span>'+str+'</span></span>'); marqueeId+=2; if(marqueeContent.length>11)marqueeInterval[0]=setInterval("startMarquee()",marqueeDelay); } function startMarquee() { var str=''; for(var i=0;(i<11)&&(marqueeId+i<marqueeContent.length);i++) { str+=(i>0?'':'')+marqueeContent[marqueeId+i]; } marqueeId+=11; if(marqueeId>marqueeContent.length)marqueeId=0; if(marqueeBox.childNodes.length==1) { var nextLine=document.createElement('DIV'); nextLine.innerHTML=str; marqueeBox.appendChild(nextLine); } else { marqueeBox.childNodes[0].innerHTML=str; marqueeBox.appendChild(marqueeBox.childNodes[0]); marqueeBox.scrollTop=0; } clearInterval(marqueeInterval[1]); marqueeInterval[1]=setInterval("scrollMarquee()",20); } function scrollMarquee() { marqueeBox.scrollTop++; if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){ clearInterval(marqueeInterval[1]); } } initMarquee(); </SCRIPT> </BODY></HTML>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
标签集:
TAGS:
回复
Comments
(
)
点击
Count
(
)
回复
Comments
{commenttime}
{commentauthor}
{CommentUrl}
{commentcontent}
More Links:
Lakesea
|
CCOR
|
man
|
水如烟雾
|
轻松吧
|
Ethuta
Top
á
©2004-2005 Mayfish. Some rights reserved.
[Login]
回复Comments
{commenttime}{commentauthor}
{CommentUrl}
{commentcontent}