Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help on display/hide the Layer when button is clicked

Status
Not open for further replies.

Keendev

Technical User
Joined
Jan 23, 2006
Messages
106
Location
PH
Hello, I used layers on a website....and I need to display them and hide the other layers
when button is clicked.

here's some code... (right now it display all the layers)
Code:
<body>
<div id="Layer1" style="position:absolute; width:268px; height:37px; z-index:1; left: 717px; top: 41px;">
 <a href="#">Link1 </a>| <a href="#">Link2 </a> | <a href="#">Link3 </a>
</div>

<div id="Layer2" style="position:absolute; width:259px; height:51px; z-index:2; left: 133px; top: 136px;"><FONT class=text><STRONG>Default Text Content </STRONG></FONT></div>
<div id="Layer3" style="position:absolute; width:200px; height:27px; z-index:3; left: 133px; top: 191px;">Load Here....Link 1 Content </div>
<div id="Layer4" style="position:absolute; width:200px; height:23px; z-index:4; left: 133px; top: 222px;">Load Here....Link 2 Content </div>
<div id="Layer5" style="position:absolute; width:200px; height:22px; z-index:5; left: 133px; top: 250px;">Load Here....Link 3 Content </div>
</body>
on my start page I have this default content in a layer, and when Link1 btton is clicked then I need to display
the layer for Link1 and hide the current content layer, and this is same w/ other buttons as well.
Layer display will be accordIng to the button clicked.

im stuck in ,need help.tnx again.
 
This qustion has been asked and answered many times over the last few years - you should be able to find many examples by searching this forum. It's possible there may even be an FAQ on this.

Incidentally, could you give some closure on thread thread216-1208249, please? It's always nice for people to know whether they have helped or not, and you seem to have a habit of forgetting posts.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top