Holsey Posted June 11, 2009 Share Posted June 11, 2009 Okay so this code (not php, but i need php to make it all work) that when you click on the link it shows information below it. Example: Hello <<Clicked On Hello is an english word for greeting people <<information Well the links that you can click on are in a box that goes with the template and so is the information, but i want it so when a link hasn't been clicked on the box where the information would show is invisible then when you click on the link it shows up with the information inside the box. <h2>Information Shower</h2> <div class="box"><div class="box2"> <div id="loadarea2" style="width: 205px"> </div></div> </div> So there's the box with the information inside but when you first load the page the box is empty until a link above is clicked on, i have no idea how to make it so the box doesn't show until a link is clicked. Help please. Link to comment https://forums.phpfreaks.com/topic/161869-help-with-box-not-showing-up/ Share on other sites More sharing options...
waynew Posted June 11, 2009 Share Posted June 11, 2009 This should be posted in the JavaScript Help Forum Link to comment https://forums.phpfreaks.com/topic/161869-help-with-box-not-showing-up/#findComment-854040 Share on other sites More sharing options...
waynew Posted June 11, 2009 Share Posted June 11, 2009 <h2>Information Shower</h2> <div class="box"><div class="box2"> <div id="loadarea2" style="width:205px; visibility:hidden;"> </div></div> </div> Link to comment https://forums.phpfreaks.com/topic/161869-help-with-box-not-showing-up/#findComment-854042 Share on other sites More sharing options...
Holsey Posted June 11, 2009 Author Share Posted June 11, 2009 Thanks but that didn't work, it just made the information invisible, not the box. Link to comment https://forums.phpfreaks.com/topic/161869-help-with-box-not-showing-up/#findComment-854049 Share on other sites More sharing options...
ted_chou12 Posted June 11, 2009 Share Posted June 11, 2009 u can do this with php too, but u need to refresh the page: <?php $hello = $_GET['hello']; ?> <a href="<?php echo "{$_SERVER['PHP_SELF']}?hello=show";?>">Hello</a><br /> <?php if ($hello == "show") {echo "Hello is an english word for greeting people";}?> But im not sure if this is what u want indeed. Ted Link to comment https://forums.phpfreaks.com/topic/161869-help-with-box-not-showing-up/#findComment-854053 Share on other sites More sharing options...
Holsey Posted June 11, 2009 Author Share Posted June 11, 2009 Thanks so much it worked! Link to comment https://forums.phpfreaks.com/topic/161869-help-with-box-not-showing-up/#findComment-854057 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.