2007-07-30 19:52:40

bluemango
» n00b
FTalk Level: zero
45
0
1969-12-31

Re: the code may become obselete

i need help, can i also put show/hide button for google ads? this is my code... function show_hide(the_box) { if(document.getElementById(the_box)) { if(document.getElementById(the_box).style.display == 'none') { document.getElementById(the_box).style.display = 'inline'; } else { document.getElementById(the_box).style.display = 'none'; } } } var showhide; try { showhide = document.createElement("div"); }catch (e) { showhide = document.createElement("<div>"); } showhide.setAttribute("style","text-align:center;padding-top:5px"); showhide.innerHTML = "<div align='center' id='showhide'>"+ "<input type='button' value='AdsByGoogle' onClick=\"javascript:show_hide('content_adsbygoogle_1_1');\"></div>"; document.getElementById("navigation").parentNode.appendChild(showhide); the button showed but it doesn't hide the Ads when pressed... help me please? :crybaby:

You are viewing a post by bluemango. View all 295 posts in the code may become obselete.

Board footer

© 2024 F Talk

Current time is 09:08

[ 12 queries - 0.021 second ]
Privacy Policy