Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2004, 03:27 AM
Registered User
 
Join Date: Sep 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Display/hide layers

How can I display and hide a second line of text underneath this, just by pressing, say an arrow next to the first line?

Example of "closed" item:

> John Doe, Calcutta

Example of "open" item, after arrow is pressed:

^ John Doe, Calcutta
  21. jump street, PO box 242

Is it possible to do this in a way that is compatible with older browsers, like NN4 ?

 
Old September 9th, 2004, 06:53 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Place it in two div tags and on click of the > change the image to ^ and make the second div as visible and first one as hidden.
But DIV is not supported in NN4.It is supported by NN6 and above..






Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional display/hide of images bertvanpet Crystal Reports 0 May 25th, 2007 02:37 AM
Tab item display prob / hide TABS query socoolbrewster CSS Cascading Style Sheets 4 June 13th, 2006 12:59 PM
Different Exception between 2 layers Janjan C# 0 February 28th, 2004 12:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.