Okay I had a template in full html. I then converted it to php, and changed the " to '. Everything works EXCEPT the mouseover on the top images. I even took the mouseover part, and moved it to a .html file and just included it in php, with all the normal "s in tact. What did I do wrong and how can I fix it? Any help is appreciated.
<div class="col_1"><a href="register.php" onmouseout="mm_swapImgRestore()" onmouseover="mm_swapImage("image1","","images/m1m.jpg",1)"><img alt="" src="images/m1.jpg" id="image1" /></a><a href="how.php" onmouseout="mm_swapImgRestore()" onmouseover="mm_swapImage("image2","","images/m2m.jpg",2)"><img alt="" src="images/m2.jpg" id="image2" /></a><a href="prizes.php" onmouseout="mm_swapImgRestore()" onmouseover="mm_swapImage("image3","","images/m3m.jpg",3)"><img alt="" src="images/m3.jpg" id="image3" /></a><a href="contact.php" onmouseout="mm_swapImgRestore()" onmouseover="mm_swapImage("image4","","images/m4m.jpg",4)"><img alt="" src="images/m4.jpg" id="image4" /></a></div> Code (markup):
Moving the mouse attribute to a stylesheet and using the class as posted above will solve the problem. Call the stylesheet in the <head> portion.
Okay what I did was I moved the mouse functions to a new file named 'mousecrap.css'. The then added this in the <head> portion of the page: <link href='mousecrap.css' rel='stylesheet' type='text/css' /> Still not functioning. Did I do something wrong or?
This might be a better choice of syntax. <link type="text/css" rel="stylesheet" href="mousecrap.css">