lifeson2112 Posted March 2, 2007 Share Posted March 2, 2007 The guy I'm working for really wants a front page similar to the one Overstock.com has. I need to get it to where when a user scrolls over a link an include changes pages. The main problem I have with the way I'm doing it now is the page has to reload. here's a little bit of the code so you can see where I'm coming from. Link: <a href="index.php?page=/frontPhpLinks/powerToolsFront.html" onMouseOver="changeMiddle('/frontPhpLinks/powerToolsFront.html')"> <img src="layout_images/powerToolsButtonFront.jpg" ></a> Include area: <?php include( $_GET['page']); if( $_GET['page'] == "") { include( "/frontPhpLinks/defaultFront.html"); } else { include($_GET['page']);} ?> So, what I really need to to is change the variable 'page' and get the include statement to recognize it without having to reload the page. Is this at all possible?? any help at all would be much appreciated oh yeah, here's the url to the site I'm working on: http://www.shopjandl.com Link to comment https://forums.phpfreaks.com/topic/40792-solved-help-with-php-navigation/ Share on other sites More sharing options...
jcbarr Posted March 2, 2007 Share Posted March 2, 2007 You can't do that with PHP. The page will have to reload to change the variable and display new information. You might be looking for possibly a javascript or CSS type of solution. Link to comment https://forums.phpfreaks.com/topic/40792-solved-help-with-php-navigation/#findComment-197502 Share on other sites More sharing options...
lifeson2112 Posted March 2, 2007 Author Share Posted March 2, 2007 Thanks Link to comment https://forums.phpfreaks.com/topic/40792-solved-help-with-php-navigation/#findComment-197505 Share on other sites More sharing options...
CMNetworx Posted March 2, 2007 Share Posted March 2, 2007 You would be able to do what they are doing with some javascript and an Iframe. Here is a decent example done by Dynamic Drive http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm Link to comment https://forums.phpfreaks.com/topic/40792-solved-help-with-php-navigation/#findComment-197550 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.