發新話題
打印

logo 走馬燈

logo 走馬燈

 

 

黃字為連結之網頁       綠字為logo 所在網址

 

紅字為滑鼠指著 logo 時所顯示之字句

 

橙字為想增加連結網頁時之整句語法...但要將 [3] 改為 [4]

 

 

 

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin

var w=600 //顯示寬度
var speed=3 //捲動速度

var side=new Array()
var slide=''
side[0]='<a href="http://www.bunbun000.com" target="_blank"><img src="http://bunbun000.com/home/index/bunlogo2.gif" border=0 alt="笨笨網站"></a>'
side[1]='<a href="http://www.bunbun000.com" target="_blank"><img src="http://bunbun000.com/home/index/bunlogo3.gif" border=0 alt="笨笨網站"></a>'
side[2]='<a href="http://bunbun000.com/home/teresa/teresa.htm" target="_blank"><img src="http://bunbun000.com/home/index/teresa.gif" border=0 alt="笨笨網站"></a>'
side[3]='<a href="http://www.bunbunhk.com/BBS/Discuz!/index.php" target="_blank"><img src="http://bunbun000.com/home/index/BBS.gif" border=0 alt="笨笨網站"></a>'


var picspeed=speed
for (i=0;i<side.length;i++)
slide=slide+side[i]+" "

if (document.all){
document.write('<marquee id="logo" scrollAmount=0 style="width:'+w+'">'+slide+'</marquee>')
logo.onmouseover=new Function("logo.scrollAmount=0")
logo.onmouseout=new Function("if (document.readyState=='complete') logo.scrollAmount=speed")
}

function load(){
window.location.reload()
}
function load2(){
if (document.layers){
document.idea.visibility="show"
setTimeout("window.onresize=load",450)
inside()
}
if (document.all)
logo.scrollAmount=speed
}

function inside(){
document.idea.document.yan.document.write('<nobr>'+slide+'</nobr>')
document. idea.document.yan.document.close()
thelength=document.idea.document.yan.document.width
scride()
}

function scride(){
if (document.idea.document.yan.left>=thelength*(-1)){
document.idea.document.yan.left-=speed
setTimeout("scride()",100)
}
else{
document.idea.document.yan.left=w
scride()
}
}
window.onload=load2

// End -->
</SCRIPT>

TOP

複製上列語法



我唔係人.........

TOP