132、随机出现banner

132、随机出现banner

脚本说明:

把如下代码加入<body>区域中

<script>

<!--

var numberad=2

var aimage=new Array()

var alink=new Array()

var atext=new Array()

var whichone=Math.round(Math.random()*(numberad-1))

 

aimage[0]='<img src="http://www.burstnet.com/cgi-bin/ads/ad1975a.cgi/" width=468 height=60 border=0 alt="Click here to support our sponsor!">'

alink[0]='http://vsii.spinbox.net/?RC=1070&AI=1503'

atext[0]=''

 

aimage[1]='<img src="http://www.burstnet.com/cgi-bin/ads/ad1975a.cgi/" width=468 height=60 border=0 alt="Click here to support our sponsor!">'

alink[1]='http://vsii.spinbox.net/?RC=1070&AI=1503'

atext[1]=''

 

aimage[2]=''

alink[2]=''

atext[2]=''

 

aimage[3]=''

alink[3]=''

atext[3]=''

 

aimage[4]=''

alink[4]=''

atext[4]=''

 

aimage[5]=''

alink[5]=''

atext[5]=''

 

 

document.write('<p align="center"><a href="'+alink[whichone]+'">'+aimage[whichone]+'</a><br>')

if (atext[whichone]!='')

document.write('<a href="'+alink[whichone]+'">'+atext[whichone]+'</a>')

document.write('</p>')

//-->

</script>

随机出现banner,可以是很多个banner

Write a comment

Comments: 0