Welcome to WebmasterWorld Guest from 54.167.40.25

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)

Preferred Member

10+ Year Member

joined:Feb 23, 2002
posts:532
votes: 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 Sept 7, 2002 (gmt 0)

Senior Member

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

joined:Mar 20, 2002
posts:3732
votes: 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.
[webmasterworld.com...]

you may also want to see this code
[slackerhtml.com...]
It also uses mouseover.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 10, 2001
posts:793
votes: 0


This thread should help you on your way too:
[webmasterworld.com...]
8:40 pm on Sept 7, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Feb 23, 2002
posts:532
votes: 0


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