Hello people!
I'm not god at all at coding, so I need you computer and coding experts to please give me a hand 🙂
Do you know how can I put something under like a "Spoiler"?
For example, at my site (http://www.thefacebookforum.net/) I have added a button "Show Affiliates". When you click it, the mini banners show up. When you click on hide, they disappear.
I wasn't the one who did that, since a friend of mine helped me.
He used this code:
The content I need to spoil is the following one
So, do you guys have any idea on how I can make this happen? Thank you so much, in advance, for all your help! :cheer:
I'm not god at all at coding, so I need you computer and coding experts to please give me a hand 🙂
Do you know how can I put something under like a "Spoiler"?
For example, at my site (http://www.thefacebookforum.net/) I have added a button "Show Affiliates". When you click it, the mini banners show up. When you click on hide, they disappear.
I wasn't the one who did that, since a friend of mine helped me.
He used this code:
Code:
<center><script> function change_name(id){ var e = document.getElementById(id); if(e.innerHTML == 'Show Affiliates') e.innerHTML = 'Hide Affiliates'; else e.innerHTML = 'Show Affiliates'; } function toggle_visibility(id){ var e = document.getElementById (id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } </script> <button onClick="change_name('swpbtn');toggle_visibility('affl')" id="swpbtn">Show Affiliates</button> <div id="affl" style="display:none;"><ul>HERE GOES THE CONTENT</ul></div></center>
The content I need to spoil is the following one
Code:
<script type="text/javascript" src="http://mycountdown.org/countdown.php?cp3_Hex=FFB200&cp2_Hex=FFFFFF&cp1_Hex=000080&ham=0&img=1&hbg=1&hfg=0&sid=0&fwdt=320&text1=Facebook Forum's Anniversary&text2=Happy Birthday FBF! &group=Special Day&countdown=Birthday&widget_number=3015&event_time=1269475200"></script></ul><ul><font size="2"><font color="Blue"><strong>Official Countdown to Facebook Forum's 1st Anniversary!</strong></font></font>
So, do you guys have any idea on how I can make this happen? Thank you so much, in advance, for all your help! :cheer:







