Help - Search - Members - Calendar
Full Version: php include beginner
Pixel2Life Forum > Help Section > PHP, ASP, MySQL, JavaScript and other Web/Database Programming Help
LMNOPeaches
When it comes to php, I definitely am not the brightest, but I understand very basic code.

I understand how to generally use a php include, but I have a question about it that has been bugging me for quite some time now.

Take this template I am using for example:Template

I would code the template normally and name it index.php / The content is in red, which is where I would insert the include script, while the links are in yellow.

onmouseout


onmouseover


MY QUESTION IS:
How would I make it so that when you click the home link, or any link for that matter, it stays as the onmouseover image after you go from index.php to say biography.php,. Because it seems like with the php include only the content would change, making the links turn back to the normal onmouseout way.





Any help is greatly appreciated.

Thanks in advance.
Phaaze
This doesn't require PHP to be done, you can give your body an ID and use it to style the links accordingly.

Read this article: [ Link ]
LMNOPeaches
Awesome man. This is exactly what I am looking for.

Many thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.