这个js代码怎么写?懂地同志进来帮帮忙,谢谢。
document.write("<iframe marginwidth=0 marginheight=0frameborder=0 bordercolor='#000000' scrolling=no src='http://adsence.sogou.com/index.html?pid=godisgirl&ww=111&dc=1&num=4&frame=1&fontsize=12&jjtitle=1&dir=0&jjtitlebg=&titlec=&briefc=&linkc=&bg=&tdbg=' width=453 height=62.5></iframe>")原来是这样地,调用的时候只显示sogou的广告,现在我想让调用的时候随机出现广告,比如百度,sogou,google随机出,那这个.js该怎么写呢?我拙嘴笨舌的,也不知道讲明白没有。麻烦懂的同志教育教育我,谢谢。 var ra = Math.floor(Math.random() * 3) + 1;
switch(ra)
{
case 1:
} 引用第1楼hliang0813于2006-01-18 16:32发表的“”:
var ra = Math.floor(Math.random() * 3) + 1;
switch(ra)
{
case 1:
}
var ra = Math.floor(Math.random() * 3) + 1;
switch(ra)
{
case 1:
document.write();
break;
case 2:
document.write();
break;
case 3:
document.write()
break;
default:
break;
}
随手写的,自己都没试过,不知道好用不好用 引用第3楼hliang0813于2006-01-18 16:34发表的“”:
var ra = Math.floor(Math.random() * 3) + 1;
switch(ra)
{
case 1:
document.write();
.......
不错不错 引用第4楼oghuz于2006-01-18 16:38发表的“”:
不错不错
妳懂馬? 引用第5楼loveni于2006-01-18 16:39发表的“”:
妳懂馬?
不动不可以说吗? 引用第6楼oghuz于2006-01-18 16:42发表的“”:
不动不可以说吗?
妳有多少好空間啊
快分享一下
我的空間都是垃圾
現在暫時掛在網吧啊 www.uyghurphp.be highwirehost.net空间 冷静.......