This line should have 'a.Planetdisplay' instead of just 'Planetdisplay'.
paulnf;10882038 wrote:
Planetdisplay{float: left;width: 100%;height: 193px;background: url(<?php echo 'Images/'.$loc."_MC_4a.gif"?>);}
Variables in PHP are case sensative.. so $Loc is not the same as $loc. You have two different variables there because one of them has an uppercase L.
paulnf;10882038 wrote:
$loc = $_GET['loc'];
$sysimage = 'Images/Locations/L'. $Loc .'.gif';
As for the rest of your PHP code, I don't see where you echo out the image. Also, what happened to $number? Is this the same as $loc?
For your css to work, you need to make sure that the css is NOT in a separate .css file. Is yours in a separate linked file, or is it in your <head> tag (or somewhere else in your webpage)?
**EDIT..
paulnf;10881975 wrote:I didn't know that i didn't need the "a." in front of the tag thanks but i'm still scratching my head as to why it won't load the image ill look at it some more if i get information i will post it.
Sorry.. my mistake.. you do need the 'a.classname:hover'. My bad.
I'll post a sample code of what I have working.. stay tuned..