Kaie"s Blog 2.0 beta!
Back to "Top"

My Secret Notebook
 Show "Table of Contents"
Contact Me
Subscribe to my Posts feed
Subscribe to my Comments feed
My Flickr
Back to "Top"
My Secret Notebook
 Show "Table of Contents"
Contact Me
Subscribe to my Posts feed
Subscribe to my Comments feed
My Flickr

Friday, September 29, 2006

[CSS] How to remove Ads in Wretch

[Howto] 如何以CSS語法去掉無名中討人厭的廣告呢?

.For Album

#ad_banner a{
clip:rect(500px 0px 0px 500px);
position:absolute}

#ad_banner a{

clip:rect(0px 0px 0px 0px);
position:absolute;
left:100px;
top:150px;
}

#logo,
#ad_button{
display:none}

center a img{
display:none !important}

table tr #logo{
display:none !important;
height:0 !important;
width:0 !important}

table tr ad_banner a img,
table tr td object,
table tr td embed,
td center font a,
td .small-c tr td,
table tr td div,
td#ad_banner a img,
object{
display:none !important;
height:0 !important;
width:0 !important}

table tr td{
height:0 !important;
width:0 !important}

/* Updated2006-11-16 Wretch換廣告語法,That's ok…兵來將擋、水來土淹...*/
#ad_flash{
display:none !important;
}

.For Guestbook
#logo, #logo img{ left: -1000px; position:absolute}
.pass img{ display: block !important}
div table .small-c tr td{ display: none}
div table tr td, table tr td{ height: auto !important; width: auto !important}
img, #floatlayer, #ad_top, object, embed{ display: none !important}


不知這些語法可以用多久,反正Free的就暫時用一下吧!!但是好像只有IE才有用,在Firefox有時會失效,真是奇怪...囧rz,沒有仔細研究過這兩段語法,太閒時再來Research一下啦 ^_^

[Update 2006-10-31]
原先在奇摩知識上找到的上面那段「For Album」的,用在我的相本好像有點Bug,在IE上會有位移(shift)的情形產生,造成整個版面歪了一邊 囧rz ....後來,研究了一下,把原本紅色的那段修改成綠色的那段之後就OK囉 ^^


但了之後,也不算是Perfect啦...像是相簿裡頭的Banner會消失不見,而帶來的影響便是Description無法顯示出來了,還有原本「進階功能」中的「空間王」和「搬圖王」也連帶著消失了,但這都不打緊,重要的是討人厭的廣告不見啦....Song la!!

※手動進階功能啟用方法:
在某一本相本的URL之後,自行append "&space=1"即可啟動空間王,同樣地,append "&move=1"即可啟動搬圖王 ^_^
例如:http://www.wretch.cc/album/album.php?id=SambaGhost&book=3 後面接上" &move=1"=> http://www.wretch.cc/album/album.php?id=SambaGhost&book=3&move=1 就可以可啟動搬圖王啦