homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

See more / hide script with javascript
This CAN'T be that rare or complex :-¦

 2:11 am on Sep 7, 2002 (gmt 0)

Hey there,

I've done my due dilligence and scoured the net for a simple javascript example that'd allow visitors to my site to show/hide text or whatever on a Web page with a toggle click.

I've seen tons of complex hierarchy/tree scripts, but I just want a simple way to put a hyperlink "Read more of this article >>" that users can click on, and then another "<< hide this article" link. Using display and hide attributes in CSS, I can't image how this could be that difficult (except I don't know how to program in javascript <sigh>)

If someone could kindly point me to a script of this sort, I'd be quite grateful!

EDIT: I'll never figure out why this silly forum software makes my above 'sigh' into a winkie. Eeek!



 2:43 am on Sep 7, 2002 (gmt 0)

Here is an earlier thread that covered what you are speaking of. They have navigation they are showing and hiding onMouseOver and onMouseOut. You want onClick attributes. It does need some modification but it may send you in the right direction.

you may also want to see this code
It also uses mouseover.


 11:55 am on Sep 7, 2002 (gmt 0)

This thread should help you on your way too:


 8:40 pm on Sep 7, 2002 (gmt 0)

Ah, wow, that *IS* a very helpful thread! Thanks so much for the pointer :-)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved