|
藍森林 http://www.lslnet.com 2006年8月25日 8:28
請教關於浮動循滾動廣告的問題
我用層做了一個橫向式的循環滾動廣告,可是當3721的上網助手打開後,廣告圖片就看不到了.我在www.joyo.com的主頁上看到了相同的廣告效果,但是當3721打開時對它沒有影響,
請問各位如何解決呢?
這是我正在做的網站頁面,滾動廣告在頁面下方:
http://www.taoso.com/default.asp
以下是小弟的代碼:
<html>
<head>
<title>圖片滾動廣告</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT Language="JavaScript">
<!--
var nos=null;
var mw=1500;
var mstep=0;
var msop=10;
function doMar(dir, src, amount) {
if (amount==null) amount=10;
switch (dir) {
case "left":
document.all[src].style.pixelLeft-=amount;
mstep=mstep+1;
if (mstep==mw) {
mstep=0;
document.all.sl.style.pixelLeft=0;
document.all.sl.style.pixelLeft=0;
}
if (-document.all[src].style.pixelLeft>=document.all[src].offsetWidth)
document.all[src].style.pixelLeft=document.all[src].offsetParent.offsetWidth;
break;
case "right":
document.all[src].style.pixelLeft+=amount;
mstep=mstep-1
if (mstep==0) {
mstep=mw;
document.all.sl.style.pixelLeft=0;
document.all.sl.style.pixelLeft=mw;
}
if (document.all[src].style.pixelLeft>document.all[src].offsetParent.offsetWidth)
document.all[src].style.pixelLeft = -document.all[src].offsetWidth;
break;
}
return false;
}
function RunMar(sDir,sWhich) {
clearInterval(nos);
iAmount=1;
nos = setInterval("doMar('"+sDir+"','"+sWhich+"'," + iAmount+")",msop);
}
function doLoad() {
window.document.all.sl.ondragstart = new Function("return false");
RunMar("left","sl");
}
window.onload=doLoad;
// -->
</SCRIPT>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<DIV id="tk"
style="Z-INDEX: 1; BACKGROUND: white; LEFT: 0px; VISIBILITY: visible; OVERFLOW: hidden; WIDTH: 100%; CLIP: rect(0px 100% 160px 0px); POSITION: absolute; TOP: 0; HEIGHT: 160;">
<DIV id="sl" style="WIDTH: 100%; POSITION: absolute; height: 160; left: 0; top: 0" onmouseover="javascript:clearInterval(nos);" onmouseout="javascript:RunMar('left','sl');">
<table width="100%" border="0" cellspacing="1" cellpadding="0" height="160">
<tr>
<td><a href="product.asp?subcategoryid=7&ProductID=7-5621-2960-6" target="_parent"><img src="images/ad/213532.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-108-01694-X" target="_parent"><img src="images/ad/bkbk202011.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-80639-710-8" target="_parent"><img src="images/ad/bkbk204235.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-80627-201-1/I.80"_parent target="_parent""><img src="images/ad/bkbk206017.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-5354-2487-2" target="_parent"><img src="images/ad/bkbk303109.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-80606-631-4/G%A1%A4129"_parent target="_parent""><img src="images/ad/bkbk306298.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7%A3%AD5053%A3%AD8693%A3%ADX"_parent target="_parent""><img src="images/ad/bkbk307205.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7%A3%AD5015%A3%AD3748%A3%AD8/F.148"_parent target="_parent""><img src="images/ad/bkbk307231.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-80677-263-4"_parent target="_parent""><img src="images/ad/bkbk311213.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-5354-2653-0"_parent target="_parent""><img src="images/ad/bkbk311635.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7%A3%AD80142%A3%AD514%A3%AD6" target="_parent"><img src="images/ad/bkbk312007.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7%A3%AD80681%A3%AD320%A3%AD9"_parent target="_parent""><img src="images/ad/bkbk312048.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-5006-5084-1"_parent target="_parent""><img src="images/ad/bkbk401046.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-02-004436-0"_parent target="_parent""><img src="images/ad/bkbk402004.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-111-13154-1"_parent target="_parent""><img src="images/ad/bkbk402502.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-5442-2688-3"_parent target="_parent""><img src="images/ad/bkbk411601.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-5006-4903-7" target="_parent"><img src="images/ad/hight.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=780657266" target="_parent"><img src="images/ad/mujie.gif" width="119" height="160" border="0"></a></td>
<td><a href="product.asp?ProductID=7-108-01694-X"_parent target="_parent""><img src="images/ad/bkbk202011.jpg" width="120" height="160" border="0"></a></td>
<td><a href="product.asp?subcategoryid=7&ProductID=7-5621-2960-6"_parent target="_parent""><img src="images/ad/213532.jpg" width="120" height="160" border="0"></a></td>
<td> </td>
</tr>
</table>
</DIV>
</DIV>
</body>
</html>
|
這麼多天這麼熱
那有心事看這麼多啊!
也許是你的IE有點問題吧!
現在好多病毒啊1
上網要多小心啊!
|
|