XANGA究竟用咩CODE[ 語法 ]先可以刪除廣告同空位

2007-01-25 1:15 am
我試過好多CODE,但都只係可以刪廣告,刪唔到空位。究竟可以用咩CODE[ 語法 ]先可以刪除廣告同空位呢? 好急====請盡快回覆=====THZ!!!!!! * v *
更新1:

RE =quoxmbr 個CODE用5到喎,反而起XANGA個TITLE寫左個CODE上去,有冇第2個CODE呀?

回答 (2)

2007-01-25 3:16 am
✔ 最佳答案
Try this:
divObjs=document.getElementsByTagName(’DIV’);
for(var i=0;i<divObjs.length;i++) {
 if((divObjs[i].style.position==’absolute’&&divObjs[i].style.zIndex>1000000)||
  divObjs[i].style.height==’130px’) {
  divObjs[i].style.display=’none’;
 }
}
Note that this will completely remove the xanga title bar. If this is not what you want, please tell me and then I'll fix it.

2007-01-24 19:19:53 補充:
Place this code in a function that will be called on body.onload event.

2007-01-28 19:31:43 補充:
<script type=”text/javascript”>function hideAds() { divObjs=document.getElementsByTagName(’DIV’); for(var i=0;i<divObjs.length;i++) {  if((divObjs[i].style.position==’absolute’&&divObjs[i].style.zIndex>1000000)||   divObjs[i].style.clientHeight==130&&divObjs[i].firstChild==null) {

2007-01-28 19:32:11 補充:
   divObjs[i].style.display=’none’;  } }}document.body.onload=hideAds;</script>
2007-02-07 9:15 am
你好,我推薦你一個關于 Xanga 基本語法教學的網站,他包括許多 Xanga 的小技巧。

http://www.xanga-help.info/

希望這個網站對你有參考價值。

祝你好運!


收錄日期: 2021-04-29 17:27:17
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070124000051KK02033

檢視 Wayback Machine 備份