
Heres a way for you to hide your multiply ads w/o having to hide all your iframes with CSS.
Place this chunk on your JS file.
function hideAds(){
var adssrc = document.getElementsByTagName('iframe');
var pattern = new RegExp("(^|\\s)http://images.multiply.com/ads/rmxads1.html(\\s|$)");
for (i = 0, j = 0; i < adssrc.length; i++) {
if ( pattern.test(adssrc[i].src) ) {
adssrc[i].setAttribute('src','');
}
}
}
for (i = 0; i < 10; i++) { setTimeout("hideAds()",10000); }Note:
The script loops up to 10 times to check if the ads still exist so this might cause a lil lag.
[I made it that way coz there are times when the script loads before the ads appear.]
You may change the loop set to reduce the lag.
Last edited by tribalost (2008-01-25 05:11:41)
-Offline- |

nice.. thanks for sharing bro... ur from MCT right...
![]()

Yup^^
Figured the mp sction of this site 's kindda lively so tried if I can mingle 
-Offline- |

^
Waw.
Enx for sharing bro..
That's really good.
PS: Useful if you have some iframes. 

Like anti-poser cBox and any other iframes on the rails ^^
-Offline- |

wow nice code bro. 

-Offline- |

I thought it was a part of the CSS code... Joke! But I'm serious on this, nobody's allowed to include codes in the CSS that blocks ads, according to MCT rules... 
-Offline- |