My Webpage
Now, when you hover those doors and left chair you can see how it changes. Ok, that is fine for me, but next thing i need to do is :active links.
When you press on the left chair and hold mouse you can see that it is different color, beacouse image is different.
Now when you click on it, index.html is reloaded and the chair looks the same as first time, which is normal.
I could put <a href="index_left_chair.html"> to be loaded and then the same for the right chair, but that would make things way to much complex.
Now since i already have that image which looks bit darker, can i use some piece of PHP code, that when i click on LEFT chair that it changes code so that it uses that picture :active as base picture so that it looks like you are sitting on a chair.
Hope you understand this question...
it can be done much much simpler, no iframes or such:
CODE
<?php
echo "<div class=\"content\">";
$page=$_GET['page'];
$page.="php";
include($page);
echo "</div>";
?>
and your url`s will be like: index.php?page=about
this will include in index.php, the about.php page (if this is found in the same directory as index.php).
well, this piece of code has security problems, as the $_GET[] value is not sanitized...but that`s another story...just understand this and we`ll continue afterwards
Now this code looks ok to me. Could i use it for the question up, and how?
Here is another link i found that could be useful but i don't know how could i use it
Change CSS color with PHP
I wanted to add poll.. Hope i made it


