Jump to content


php include beginner


2 replies to this topic

#1 LMNOPeaches

    Young Padawan

  • Members
  • Pip
  • 6 posts
  • Gender:Male

Posted 21 May 2009 - 04:17 AM

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
Posted Image

onmouseover
Posted Image

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.

#2 Phaaze

    Young Padawan

  • Members
  • Pip
  • 56 posts

Posted 23 May 2009 - 12:46 AM

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 ]

#3 LMNOPeaches

    Young Padawan

  • Members
  • Pip
  • 6 posts
  • Gender:Male

Posted 26 May 2009 - 03:07 AM

Awesome man. This is exactly what I am looking for.

Many thanks





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users