国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > HTML > 正文

通過html為FLASH加鏈接的實現(xiàn)代碼(div層)

2020-03-24 17:37:36
字體:
來源:轉載
供稿:網(wǎng)友
今天有個客戶要投放廣告,給的素材是flash的,雖然我們不太喜歡,但沒辦法,客戶就喜歡flash,怕一些瀏覽器或軟件屏蔽flash自帶的鏈接,需要我么通過html加一個鏈接,要不被阻止了效果不好。后果你懂的。

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

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

XML/HTML Code復制內容到剪貼板
!DOCTYPEhtmlPUBLIC -//W3C//DTDXHTML1.0Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd htmlxmlns= http://www.w3.org/1999/xhtml head metahttp-equiv= Content-Type content= text/html;charset=gb2312 / title flash加鏈接_phpstudy專用 /title styletype= text/css !-- body{ position:relative; z-index:0; margin:0;padding:0 } body,td,th{ color:#333333; } *{margin:0;padding:0} img{border:0} #phpstudy{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; } #div2a:link{display:block;width:300px;height:250px} -- /style /head body divid= phpstudy divid= div1 scripttype= text/javascript document.write(' objectclassid= clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase= http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 width= 300 height= 250 '); document.write(' paramname= movie value= http://img.phpstudy.net/image/22cn_phpstudynet.swf / '); document.write(' paramname= quality value= high / paramname= wmode value= opaque / '); document.write(' embedsrc= http://img.phpstudy.net/image/22cn_phpstudynet.swf quality= high pluginspage= http://www.macromedia.com/go/getflashplayer type= application/x-shockwave-flash width= 300 height= 250 wmode= opaque /embed '); document.write(' /object '); /script /div divid= div2 ahref= http://www.phpstudy.net target= _blank imgsrc= http://img.phpstudy.net/image/touming.png width= 300 height= 250 / /a /div /div /body /html
現(xiàn)在廣告管家都不好用了,百度管家停止其它物料,cnzz的被360屏蔽了,google的訪問又慢。想進個后臺也不容易。沒辦法只能放自己的服務器里了。

需要幾點說明的:

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

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

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

XML/HTML Code復制內容到剪貼板
!DOCTYPEhtmlPUBLIC -//W3C//DTDXHTML1.0Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd htmlxmlns= http://www.w3.org/1999/xhtml head metahttp-equiv= Content-Type content= text/html;charset=utf-8 / title 無標題文檔 /title styletype= text/css !-- body{ position:relative; z-index:0; margin:0;padding:0 } body,td,th{ color:#333333; } *{margin:0;padding:0} img{border:0} #phpstudy{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 'http://s.phpstudy.net' objectclassid= clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase= http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width= 100% height= 100% paramname= movie value= http://img.phpstudy.net/image/22cn_phpstudynet.swf paramname= quality value= high paramname= wmode value= opaque / embedsrc= http://img.phpstudy.net/image/22cn_phpstudynet.swf width= 300 height= 250 quality= high pluginspage= http://www.macromedia.com/go/getflashplayer type= application/x-shockwave-flash align= middle wmode= opaque /embed /object /button /body /htmlhtml教程

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 安顺市| 炎陵县| 台安县| 邵阳县| 鹤壁市| 潮州市| 黄梅县| 崇州市| 富平县| 班戈县| 瓦房店市| 巴彦县| 平陆县| 新河县| 河北省| 赤城县| 招远市| 镇原县| 华池县| 永顺县| 德庆县| 南京市| 芦溪县| 炉霍县| 永济市| 苍山县| 水城县| 山东省| 凌海市| 阿荣旗| 德阳市| 娱乐| 沽源县| 英吉沙县| 北票市| 吉木萨尔县| 东阳市| 黎川县| 建瓯市| 巴塘县| 永清县|