Pages: 12345..5

  2007-08-01 19:17:41

xavierkym
» FTalkFreak
FTalk Level: zero
1651
0
1969-12-31

as the title says, this is a hide trick.. it means hide/removing... let's say u want to hide google ads.. =) just follow the steps below.. :D just sharing this trick.. instead of using css hide code

as the title says, this is a hide trick.. it means hide/removing... let's say u want to hide google ads.. =) just follow the steps below.. :D just sharing this trick.. instead of using css hide codes.. maybe u can use this for better performance.. anyway, i know only few wil use this.. [quote]if ( ! attachOnLoadHandler(function () { rdiv();})) window.onload = function () { rdiv();}; function rdiv() { var a=document.getElementById("[b]ID_HERE[/b]"); a.parentNode.removeChild(a); }[/quote] to hide another box just simply insert the [b]BOLD[/b] into... [quote]if ( ! attachOnLoadHandler(function () { rdiv();})) window.onload = function () { rdiv();}; function rdiv() { var a=document.getElementById("[b]ID_HERE[/b]"); a.parentNode.removeChild(a); var b=document.getElementById("[b]ID_HERE_2[/b]"); b.parentNode.removeChild(b); }[/quote] look for this in the script [b]id_here[/b] you can change that into the id's of the boxes.. Get the div ids here .... [url=http://theftalk.com/t13870-Friendster-ID-Class.html]Div IDs[/url] save as js file okei.. sample... hiding google ads. [quote]if ( ! attachOnLoadHandler(function () { rdiv();})) window.onload = function () { rdiv();}; function rdiv() { var a=document.getElementById("[b]14[/b]"); a.parentNode.removeChild(a); }[/quote] just shared this trick coz maybe somebody wil ask if there is a hide code for js users :thumbsup:

Last edited by xavierkym (2007-10-27 13:40:11)

Pages: 12345..5

Board footer

© 2024 F Talk

Current time is 19:44

[ 12 queries - 0.013 second ]
Privacy Policy