欧美大屁股bbbbxxxx,狼人大香伊蕉国产www亚洲,男ji大巴进入女人的视频小说,男人把ji大巴放进女人免费视频,免费情侣作爱视频

歡迎來(lái)到入門(mén)教程網(wǎng)!

CSS/HTML

當(dāng)前位置:主頁(yè) > 網(wǎng)頁(yè)制作 > CSS/HTML >

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

來(lái)源:本站原創(chuàng)|時(shí)間:2020-01-10|欄目:CSS/HTML|點(diǎn)擊: 次

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

幾年前幫別人維護(hù)的時(shí)候做過(guò),后來(lái)好久不做了,感覺(jué)太生疏了,這里特別整理下,方便需要的朋友,希望大家多多支持我們。

下面是完整的代碼,因?yàn)閒lash文件都比較大我們特別用iframe加載了廣告:

XML/HTML Code復(fù)制內(nèi)容到剪貼板
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
  2. <html xmlns="http://www.w3.org/1999/xhtml">  
  3. <head>  
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />  
  5. <title>flash加鏈接_我們專(zhuān)用</title>  
  6. <style type="text/css">  
  7. <!--   
  8. body {    
  9. position:relative;    
  10. z-index:0;    
  11. margin:0; padding:0   
  12. }    
  13. body,td,th {   
  14.     color: #333333;   
  15. }   
  16. *{margin:0; padding:0}   
  17. img{ border:0}   
  18. #jb51{ position:relative; width:300px; height:250px}   
  19. #div1 {   
  20. position:absolute;   
  21. left:0;   
  22. top:0;   
  23. width:300px;    
  24. height:250px; z-index:-1    
  25.   
  26. }    
  27. #div2 {    
  28. position:absolute;   
  29. left:0;   
  30. top:0;   
  31. width:300px;    
  32. height:250px;    
  33. z-index:99999;    
  34. }    
  35. #div2 a:link{ display:block; width:300px; height:250px}   
  36. -->  
  37. </style></head>  
  38. <body>  
  39. <div id="jb51">  
  40. <div id="div1">  
  41. <script type="text/javascript">  
  42. document.write('<object classid="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">');   
  43. document.write('<param name="movie" value="http://img.jb51.net/image/22cn_jb51net.swf" />');   
  44. document.write('<param name="quality" value="high" /><param name="wmode" value="opaque" />');   
  45. document.write('<embed src="http://img.jb51.net/image/22cn_jb51net.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="250" wmode="opaque"></embed>');   
  46. document.write('</object>');   
  47. </script>  
  48. </div>  
  49. <div id="div2">  
  50. <a href="https://www.jb51.net" target="_blank"><img src="http://img.jb51.net/image/touming.png" width="300" height="250" /></a>  
  51. </div>  
  52. </div>  
  53. </body>  
  54. </html>  
現(xiàn)在廣告管家都不好用了,百度管家停止其它物料,cnzz的被360屏蔽了,google的訪問(wèn)又慢。想進(jìn)個(gè)后臺(tái)也不容易。沒(méi)辦法只能放自己的服務(wù)器里了。

需要幾點(diǎn)說(shuō)明的:

<img src="http://img.jb51.net/image/touming.png" width="300" height="250" />這個(gè)里面的touming.png就是個(gè)1像素的透明png文件。不要圖片的話ie下鏈接不對(duì)。

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

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

XML/HTML Code復(fù)制內(nèi)容到剪貼板
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
  2. <html xmlns="http://www.w3.org/1999/xhtml">  
  3. <head>  
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  5. <title>無(wú)標(biāo)題文檔</title>  
  6. <style type="text/css">  
  7. <!--   
  8. body {    
  9. position:relative;    
  10. z-index:0;    
  11. margin:0; padding:0   
  12. }    
  13. body,td,th {   
  14.     color: #333333;   
  15. }   
  16. *{margin:0; padding:0}   
  17. img{ border:0}   
  18. #jb51{ position:relative; width:300px; height:250px}   
  19. #div1 {   
  20. position:absolute;   
  21. left:0;   
  22. top:0;   
  23. width:300px;    
  24. height:250px; z-index:-1    
  25.   
  26. }    
  27. #div2 {    
  28. position:absolute;   
  29. left:0;   
  30. top:0;   
  31. width:300px;    
  32. height:250px;    
  33. z-index:99999;    
  34. }    
  35. -->  
  36. </style>  
  37. </head>  
  38. <body>  
  39. <button style="width:300;height:250;background:transparent;border:o;padding:0;cursor:hand" onclick="window.location.">    
  40. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"     
  41.         codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">    
  42.              <param name="movie" value="http://img.jb51.net/image/22cn_jb51net.swf">    
  43.              <param name="quality" value="high">  
  44.              <param name="wmode" value="opaque" />  
  45.              <embed src="http://img.jb51.net/image/22cn_jb51net.swf" width="300" height="250" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" align="middle"  wmode="opaque">    
  46.                </embed>    
  47.             </object>    
  48. </button>    
  49. </body>  
  50. </html>  
好了,這篇文章就介紹到這,基本上能湊合用了。歡迎留言評(píng)論。我們?cè)瓌?chuàng)。

網(wǎng)頁(yè)制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語(yǔ)言數(shù)據(jù)庫(kù)服務(wù)器

如果侵犯了您的權(quán)利,請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有