Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

See more / hide script with javascript

This CAN'T be that rare or complex :-¦



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

10+ Year Member

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)

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

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)

WebmasterWorld Senior Member 10+ Year Member

This thread should help you on your way too:


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

10+ Year Member

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

Featured Threads

Hot Threads This Week

Hot Threads This Month