藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年8月25日 8:28

請教高手關於IFRAME的問題

各位大哥大姐我在我的網站裡加了一個通欄廣告是用iframe做的
代碼是這樣的
<iframe marginwidth=0 marginheight=0 src="adbg.htm" frameborder=0 width=100% scrolling=no height=135></iframe>
結果我的網站裡所有的GIF圖片和FLASH還有其他能動的東西都不動了,求各位給個解決的辦法,先謝謝

有這樣的事?偶還沒試過……

<iframe src="http://www.blueidea.com/bbs" scrolling="no" width="200" height="200" frameborder="0"></iframe>

高手指點啊
我把鼠標一移到iframe做的這個廣告上其他能的東西就全動了,一拿過來就只有這個動其他的都不了,高手你在哪裡???????????

把你的adbg.htm代碼貼出來看看,裡面是不是有flash?

可能性不大,你可以刪除該代碼再測試

代碼貼出來,描述問題不明確,說不準。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>廣告</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" src="comon/scroll02.js"></script>
</head>

<body leftmargin="0" topmargin="0"  onLoad="javascript:startscroll();">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
  <tr>
    <td ><img src="images/ad.jpg" width="1500" height="135" border="0" alt="商務在線" onMouseOver="javascript:stopscroll();" onMouseOut="javascript:startscroll();"></td>
        <td ><img src="images/ad.jpg" width="1500" height="135" border="0" alt="商務在線" onMouseOver="javascript:stopscroll();" onMouseOut="javascript:startscroll();"></td>
  </tr>
</table>
</body>
</html>

comon/scroll02.js代碼如下
var x0 = 0;
var y0 = 0;
var limdex = 976;
//limdex = (圖像寬度+2)*圖像數量
var dest = 0;
var distance = 0;
var step = 0;
var destination = 0;
var on = true;

function scrollit(destination) {
        step = 2;
        dest = destination;
        if (x0 < dest & x0 < limdex){
                while (x0 < dest) {
                        step += (step / 7);
                        x0 += step;
                        scroll(x0,0);
                }  
                if(dest <= limdex) { scroll(dest,0); }
                x0 = dest;
        }
        if (x0 > dest)  {
                while (x0 > dest) {
                        step += (step / 7);
                        if(x0 >= (0+step)) { x0 -= step; scroll(x0,0); }
                        else break;
                }
                if(dest >= 0) { scroll(dest,0); }
                x0 = dest;
        }
        if (x0 < 1) { scroll(1,0); x0=1 }
        if (x0 > limdex) { scroll(limdex,0); x0 = limdex }
        x0 = dest;
}
function scrollnow() {
        if (on){
                if (x0 < limdex & x0 >= 0 ) {              
                        scroll(x0,0);
                        x0 = x0 + 1;
                        setTimeout('scrollnow()', 8);
        
                } else if (x0 < 0) {
                        x0 = limdex;
                        scrollnow();
                } else {
                        x0 = 0;
                        scrollnow();
                }
        }
}
function stopscroll() {
        if (on){
                on = false;
        } else {
                on = true;
                scrollnow();
        }
}
function startscroll() { on = true; scrollnow(); }
function stop_start() {
        if (on){ on = false;} else { on = true;scrollnow();}
}

難道沒人會嗎?????
求救啊------




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com