Looking for a script that works something like..
When you click on a link, words drop down under it... something like "read more" and then when you click it, a description would drop under it.
Thanks!!
Looking for a script that works something like..
When you click on a link, words drop down under it... something like "read more" and then when you click it, a description would drop under it.
Thanks!!
Last edited by Jon101; 05-07-2007 at 07:14 PM.
In the had of the document, place this:
Then in the body of the page (where you want the div to show up), place this:Code:<script type="text/javascript"> function showHide(item) { var obj = document.getElementById(item); if (obj.style.display == "none") { obj.style.display = 'block'; } else { obj.style.display = 'none'; } } </script>
Hope this helps to get you started.Code:<a href="index.html" onclick="showHide('theDiv'); return false;">Show/Hide Div</a> <div id="theDiv" style="display: none;">Text that is hidden until the above link is clicked.</div>
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
Thanks for the response. I'll check it out as soon as I can.
Works like a charm!!
Thanks!!
Bookmarks