Problem When Converting Template To PHP

Discussion in 'PHP' started by Cronus, Mar 12, 2008.

  1. #1
    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.
     
    Cronus, Mar 12, 2008 IP
  2. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Paste the code?
     
    CodyRo, Mar 12, 2008 IP
  3. Cronus

    Cronus Active Member

    Messages:
    343
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    70
    #3
    
    <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):
     
    Cronus, Mar 13, 2008 IP
  4. Cronus

    Cronus Active Member

    Messages:
    343
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Also, that is just in a print"(html here)";
    So I don't know why it isn't working.
     
    Cronus, Mar 13, 2008 IP
  5. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #5
    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.
     
    Colbyt, Mar 13, 2008 IP
  6. Cronus

    Cronus Active Member

    Messages:
    343
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    70
    #6
    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?
     
    Cronus, Mar 13, 2008 IP
  7. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #7
    This might be a better choice of syntax.

    <link type="text/css" rel="stylesheet" href="mousecrap.css">
     
    Colbyt, Mar 13, 2008 IP
  8. Cronus

    Cronus Active Member

    Messages:
    343
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    70
    #8
    Nope didn't change anything, still not working. :s
     
    Cronus, Mar 13, 2008 IP