content="http://www.17173.comΩ/img/att_20070428184031359_Thu.jpgΩ100Ω100Ω163Ω160Ω600Ω100Ω100";
quan=1
//第三次传进来的广告
content="http://www.baidu.comΩ/img/att_20070428184031359_Thu.jpgΩ200Ω200Ω163Ω260Ω400Ω200Ω200";
quan=2
//第二次传进来的广告
content="http://www.sohu.comΩ/img/att_20070428184031359_Thu.jpgΩ150Ω200Ω9999Ω120Ω300Ω100Ω200";
quan=1
//第一次传进来的广告
this.sarray=new Array();
sarray=content.split('Ω');
this.ADurl=sarray[0];
this.imgsrc= sarray[1];
this.ADheight=sarray[2];
this.ADwidth= sarray[3];
this.ADalt=sarray[4];
this.Zonewidth=sarray[5];
this.Zoneheight=sarray[6];
this.Zonetop=sarray[7];
this.Zoneleft=sarray[8];
function openwin()
{
openwindow=window.open("","","width="+Zonewidth+",height="+Zoneheight+",top="+Zonetop+",left="+Zoneleft+"")
openwindow.document.write("<a href="+ADurl+"><img src="+imgsrc+" alt="+ADalt+" width="+ADwidth+" height="+ADheight+" /></a>")
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
} function loadpopup(){
if (get_cookie('popped')==''){
openwin()
document.cookie="popped=yes"
}
}
loadpopup()想利用quan的数值大小做随机显示,速度来指点,我头脑已经茫然了,能在我的基础上改的最好
quan=1
//第三次传进来的广告
content="http://www.baidu.comΩ/img/att_20070428184031359_Thu.jpgΩ200Ω200Ω163Ω260Ω400Ω200Ω200";
quan=2
//第二次传进来的广告
content="http://www.sohu.comΩ/img/att_20070428184031359_Thu.jpgΩ150Ω200Ω9999Ω120Ω300Ω100Ω200";
quan=1
//第一次传进来的广告
this.sarray=new Array();
sarray=content.split('Ω');
this.ADurl=sarray[0];
this.imgsrc= sarray[1];
this.ADheight=sarray[2];
this.ADwidth= sarray[3];
this.ADalt=sarray[4];
this.Zonewidth=sarray[5];
this.Zoneheight=sarray[6];
this.Zonetop=sarray[7];
this.Zoneleft=sarray[8];
function openwin()
{
openwindow=window.open("","","width="+Zonewidth+",height="+Zoneheight+",top="+Zonetop+",left="+Zoneleft+"")
openwindow.document.write("<a href="+ADurl+"><img src="+imgsrc+" alt="+ADalt+" width="+ADwidth+" height="+ADheight+" /></a>")
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
} function loadpopup(){
if (get_cookie('popped')==''){
openwin()
document.cookie="popped=yes"
}
}
loadpopup()想利用quan的数值大小做随机显示,速度来指点,我头脑已经茫然了,能在我的基础上改的最好
解决方案 »
- c#md5加密与JSMD5加密结果不一样?
- 简单的问题
- |zyciis| 如何改写 RequiredFieldValidator 控件 添加DefaultText属性 谢谢
- asp.net串口通讯编程
- 异常详细信息: System.Web.HttpException: 无法验证数据。问题特别奇怪!
- 请高手指点:在VS中调试没问题,为何在IIS中会出现错误?
- 谢谢帮助过我的朋友,最近一边学习ASP.NET一边做了一个小的系统,用Asp.Net(C#)+sqlserver+xml,采用三层结构。我已经在这里问了20多个问
- 求教-gis地图制作的问题
- 有谁知道这个怎么做吗?面试题。
- 如何更改水晶报表高宽?? 在设计器-打印机设置-纸张 -选为A4 我可到了WEB页中打印览因太高一页变成了两页。怎么办??
- 想跟大家讨论一个实际项目中遇到的问题!
- 求助!!!!!!!!!!!!!!!!!!!
Math.floor(Math.random()*3)
随机得到0 1 2 3
foyuan(暴走零零漆) ( ) 信誉:98 2007-08-16 10:16:40 得分: 0
有问题么?
Math.floor(Math.random()*3)
随机得到0 1 2 3
我就是在想如何把他传来的第一个值看成一个整体,第2个又是一个,因为他们的content,quan是一样的 就是不知道怎么搞了 迷茫 分不清谁是谁的quan
后载入document.createElment 一个 Script Elment然后把这个 Append 到 Head 中.
再触发一下 JS 文件中的调用函数即可....