茄子在线看片免费人成视频,午夜福利精品a在线观看,国产高清自产拍在线观看,久久综合久久狠狠综合

    <s id="ddbnn"></s>
  • <sub id="ddbnn"><ol id="ddbnn"></ol></sub>

  • <legend id="ddbnn"></legend><s id="ddbnn"></s>

    通過html為FLASH加鏈接的實現代碼(div層)
    來源:易賢網 閱讀:882 次 日期:2014-11-28 10:01:18
    溫馨提示:易賢網小編為您整理了“通過html為FLASH加鏈接的實現代碼(div層)”,方便廣大網友查閱!

    今天有個客戶要投放廣告,給的素材是flash的,雖然我們不太喜歡,但沒辦法,客戶就喜歡flash,怕一些瀏覽器或軟件屏蔽flash自帶的鏈接,需要我么通過html加一個鏈接,要不被阻止了效果不好。后果你懂的。

    幾年前幫別人維護的時候做過,后來好久不做了,感覺太生疏了,這里特別整理下,方便需要的朋友,希望大家多多支持腳本之家。

    下面是完整的代碼,因為flash文件都比較大我們特別用iframe加載了廣告:

    XML/HTML Code復制內容到剪貼板

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

    <html xmlns="">

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

    <title>flash加鏈接_腳本之家專用</title>

    <style type="text/css">

    <!--

    body {

    position:relative;

    z-index:0;

    margin:0; padding:0

    }

    body,td,th {

    color: #333333;

    }

    *{margin:0; padding:0}

    img{ border:0}

    #jb51{ position:relative; width:300px; height:250px}

    #div1 {

    position:absolute;

    left:0;

    top:0;

    width:300px;

    height:250px; z-index:-1

    }

    #div2 {

    position:absolute;

    left:0;

    top:0;

    width:300px;

    height:250px;

    z-index:99999;

    }

    #div2 a:link{ display:block; width:300px; height:250px}

    -->

    </style></head>

    <body>

    <div id="jb51">

    <div id="div1">

    <script type="text/javascript">

    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="" width="300" height="250">');

    document.write('<param name="movie" value="" />');

    document.write('<param name="quality" value="high" /><param name="wmode" value="opaque" />');

    document.write('<embed src="" quality="high" pluginspage="" type="application/x-shockwave-flash" width="300" height="250" wmode="opaque"></embed>');

    document.write('</object>');

    </script>

    </div>

    <div id="div2">

    <a href="" target="_blank"><img src="" width="300" height="250" /></a>

    </div>

    </div>

    </body>

    </html>

    現在廣告管家都不好用了,百度管家停止其它物料,cnzz的被360屏蔽了,google的訪問又慢。想進個后臺也不容易。沒辦法只能放自己的服務器里了。

    需要幾點說明的:

    <img src="" width="300" height="250" />這個里面的touming.png就是個1像素的透明png文件。不要圖片的話ie下鏈接不對。

    當然css樣式是最重要的,先是position:relative,然后里面的才是position:absolute;

    后來從網上看到別人提供的一個方法,通過button按鈕實現的,就是不能新窗口打開。也順便提供下吧。如果大家發(fā)現我們的這個也不好用希望能聯(lián)系我們更新謝謝。

    XML/HTML Code復制內容到剪貼板

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

    <html xmlns="">

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>無標題文檔</title>

    <style type="text/css">

    <!--

    body {

    position:relative;

    z-index:0;

    margin:0; padding:0

    }

    body,td,th {

    color: #333333;

    }

    *{margin:0; padding:0}

    img{ border:0}

    #jb51{ position:relative; width:300px; height:250px}

    #div1 {

    position:absolute;

    left:0;

    top:0;

    width:300px;

    height:250px; z-index:-1

    }

    #div2 {

    position:absolute;

    left:0;

    top:0;

    width:300px;

    height:250px;

    z-index:99999;

    }

    -->

    </style>

    </head>

    <body>

    <button style="width:300;height:250;background:transparent;border:o;padding:0;cursor:hand" onclick="window.location.>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

    codebase="" width="100%" height="100%">

    <param name="movie" value="">

    <param name="quality" value="high">

    <param name="wmode" value="opaque" />

    <embed src="" width="300" height="250" quality="high" pluginspage="" type="application/x-shockwave-flash" align="middle" wmode="opaque">

    </embed>

    </object>

    </button>

    </body>

    </html>

    更多信息請查看IT技術專欄

    更多信息請查看網頁制作

    2026上岸·考公考編培訓報班

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關于我們 | 聯(lián)系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網