Jump to content

[SOLVED] Help with PHP navigation


lifeson2112

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.