Charles Stover New Member

![[Avatar]](http://i101.photobucket.com/albums/m54/gamingmedley/avatars/MarioHeadbanging.gif) Posts: 31 Status: Offline Gender: Male Location: Canada Age: 35 Joined:
pmwwwmsnyahooaimgtalkicqxfire | Hidden IFrames (27th Jan 08 at 6:27pm UTC) | |  Code: - function check_ads() {
- var ads = document.getElementsByTagName('iframe');
- var visible_ads = 0;
- for(a=0; a<ads.length; a++) {
- visible_ads++;
- if(ads.item(a).style.display == 'none' || ads.item(a).style.visibility == 'hidden' || ads.item(a).parentNode.style.display == 'none' || ads.item(a).parentNode.style.visibility == 'hidden') {
- ads.item(a).style.display = 'block';
- ads.item(a).style.visibility = 'visible'
- ads.item(a).parentNode.style.display = 'block';
- ads.item(a).parentNode.style.visibility = 'visible';
- }
- }
- if(visible_ads == 0) {
- return ads_error();
- }
- }
The code makes it impossible to hide any iframes, instead of just the ads. My shoutbox uses IFrames for form submittal (too lazy to work on a cross-browser AJAX method). So, umm... can this be fixed, please? | |
|
|