TShopping

標題: 寫給新手:官方頁內文字廣告的設置 [打印本頁]

作者: woff    時間: 2008-5-29 18:36
標題: 寫給新手:官方頁內文字廣告的設置
最近很多網友加QQ問我關於官方頁內文字廣告的設置問題,這裡寫一個教程,和大家交流一下,請大家多多批評。官方頁內文字廣告如下圖:

實現方法:
方法一:添加多個頁內文字廣告法。一般建議用這種方法。具體操作為:
系統設置--其它設置--廣告管理--頁內文字廣告。這樣例如官方這樣的就要連續添加8個這樣的廣告。比較繁瑣。代碼參考:
  1. <a href="http://www.1010idc.com" title="翼網互聯提供技術支持" target="_blank"><font color=red>文字鏈接廣告5<br />
  2.           <strong><font color="#009933">當然也可以放圖片了</font></strong></font></a>
複製代碼

連續添加8個這樣的代碼就可以了。
方法二:用表格控制,添加一個頁內文字廣告即可。這種方法比較好控制格式,而且利於維護,操作起來相對簡單。官方這種格式參考代碼如下:
  1. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  2.   <tr>
  3.     <td width="25%" align="center"><a href="http://www.1010idc.com" title="翼網互聯提供技術支持" target="_blank"><font color=red>虛擬主機 域名註冊1</font></a></td>
  4.     <td width="25%" align="center"><a href="http://1010idc.com/news/nws_dtl.asp?nid=10000588" title="翼網互聯提供技術支持" target="_blank"><font color=green><strong>選擇虛擬主機需要考慮的幾個問題</strong></font></a></td>
  5.     <td width="25%" align="center"><a href="http://www.1010idc.com" title="翼網互聯提供技術支持" target="_blank"><font color=#FF00FF>買虛擬主機就是買服務,服務不好,怎能省心?</font></a></td>
  6.     <td width="25%" align="center"><a href="http://www.1010idc.com" title="翼網互聯提供技術支持" target="_blank"><font color=#000066><strong>網站要做大、做強,必須選擇穩定的虛擬主機</strong></font></a></td>
  7.   </tr>
  8.   <tr>
  9.     <td width="25%" align="center"><a href="http://www.1010idc.com" title="翼網互聯提供技術支持" target="_blank"><font color=red>文字鏈接廣告5<br />
  10.           <strong><font color="#009933">當然也可以放圖片了</font></strong></font></a></td>
  11.     <td width="25%" align="center"><a href="http://www.1010idc.com" title="翼網互聯提供技術支持" target="_blank"><font color=#000000>文字鏈接廣告6</font></a></td>
  12.     <td width="25%" align="center"><a href="http://www.1010idc.com" title="翼網互聯提供技術支持" target="_blank"><font color=#000000>文字鏈接廣告7</font></a></td>
  13.     <td width="25%" align="center"><a href="http://www.1010idc.com" title="翼網互聯提供技術支持" target="_blank"><font color=#000000>虛擬主機 域名註冊</font></a></td>
  14.   </tr>
  15. </table>
複製代碼

以上代碼得到的效果如下圖:
a2.jpg (82.35 KB)
2008-3-25 09:19


採用這種方法,有一個好處,就是自己可以靈活定義格式,例如我想得到如下的效果,只有通過這種方式實現了。

a1.jpg (159.33 KB)
2008-3-25 09:19



演示地址:http://club.tv0532.com




歡迎光臨 TShopping (http://www.tshopping.com.tw/) Powered by Discuz! X3.2