Hi guys! I really need help with this problem. The idea is to have 3 of my webpages turned into just one. One page that will display all 3 pieces of content but not all on the same page. Basically, a user clicks a link and it would activate a *div*. Another link is clicked and another *div* activated. The problem is, I have put one div in, linked it, and it dissapears like it should and reappears like it should. I put another div in, and it doesn't work! It only continues to make the 1st div dissappear. I have included the html coding used, paste it into ur html editor and you will see what I mean. Maybe you could tell me where I am going wrong?!?!?
Please please help me!!!
Thanks in advanceCode:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> <style type="text/css"> #div1{ position:absolute; background:#990000; font-weight:bold; color:white; width:180px; height:100px; top:100px; left:100px; } #div2{ position:absolute; background:#990000; font-weight:bold; color:white; width:180px; height:100px; top:100px; left:380px; } </style> <script language="JavaScript" type="text/javascript"> function hide(){ document.getElementById("div1").style.visibility="hidden"; } function show(){ document.getElementById("div1").style.visibility="visible"; } function hide(){ document.getElementById("div2").style.visibility="hidden"; } function show(){ document.getElementById("div2").style.visibility="visible"; } </script> </head> <body> <a href="#" onClick="hide();return false;">hide div1</a><p> <a href="#" onClick="show();return false;">show div1</a></p> <div id="div1" style="width: 190; height: 301"> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="196"> <tr> <td width="100%" height="127"> </td> </tr> <tr> <td width="100%" height="32"> <p align="center"> <a href="#" onClick="hide();return false;">hide div1</a></td> </tr> <tr> <td width="100%" height="35"> <p align="center"> <a href="#" onClick="show();return false;">show div2</a></td> </tr> </table> </div> <a href="#" onClick="hide();return false;">hide div2</a><p> <a href="#" onClick="show();return false;">show div2</a></p> <div id="div2" style="width: 190; height: 301"> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="196"> <tr> <td width="100%" height="127"> </td> </tr> <tr> <td width="100%" height="32"> <p align="center"> </body> </html>![]()



Reply With Quote


Bookmarks