Adobe Dreamweaver 0
Adobe Muse 0
ASP.net 0
.htaccess 6
CSS 5
Perl 0
PHP 57
PHP - User System 79
HTML 11
Java 0
Javascript 13
Ruby on Rails 0
General Web Development 4
Operating Systems
Video & Audio Editing
Adobe After Effect 0
Adobe Audition 0
Adobe Premiere 0
Final Cut 0
FruityLoops 0
iMovie 0
Windows Movie Maker 0
App Development
Hardware
Miscellaneous
function toggle(item, toggler) {
obj = document.getElementById(item);
toggleitem = document.getElementById(toggler);
visible = (obj.style.display != "none");
if(visible){
obj.style.display = "none";
toggleitem.innerHTML = "Show";
} else {
obj.style.display = "block";
toggleitem.innerHTML = "Hide";
}
}
</script>
[<a onclick="toggle('blob', 'toggler1');" id="toggler1">Hide</a>]<br />
<div id="blob">
Huge amounts of text and images and php code here if you like. Tables, marquees all can be hidden when someone clicks show/hide.
Also you may need to adjust the show/hide link so it looks more like a link.
Thanks.
</div>
Just wrote the code out for you below...
function toggle(item, toggler) {
obj = document.getElementById(item);
toggleitem = document.getElementById(toggler);
visible = (obj.style.display != "none");
if(visible){
obj.style.display = "none";
toggler.innerHTML = "Show";
} else {
obj.style.display = "block";
toggler.innerHTML = "Hide";
}
}
</script>
[<a onclick="toggle('blob', 'toggler1');" name="toggler1>show/hide</a>]<br />
<div id="blob">
Huge amounts of text and images and php code here if you like. Tables, marquees all can be hidden when someone clicks show/hide.
Also you may need to adjust the show/hide link so it looks more like a link.
Thanks.
</div>
You can change as you like.
I havnt tested this code so report any errors please.
Thanks!