Javascript logo not functioning correctly.

Discussion in 'JavaScript' started by AaronCPK, Feb 11, 2007.

  1. #1
    Hi all, new here, hoping to get some help with a new site.

    I made a new logo for my site, and the links at the bottom of it are supposed to change to a different image (just a lighter version of the same word). The code was generated by Painter but I changed it around a little bit because I moved some directories around.

    The website is HotRodKush.com

    Is this a server problem or is my code screwed up?
    It looks perfect, there's no faults in the script that I can see, all of the commands are accurate and point to valid paths, etc., but I could be missing something obvious.

    It's alot to read through, but if you have nothing else to do take a quick look :)

    Thanks alot for any help,
    Aaron
     
    AaronCPK, Feb 11, 2007 IP
  2. AaronCPK

    AaronCPK Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Here's the code if it makes it easier:

     
    AaronCPK, Feb 11, 2007 IP
  3. AaronCPK

    AaronCPK Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hmm, Anyone?
     
    AaronCPK, Feb 12, 2007 IP
  4. Logic Ali

    Logic Ali Well-Known Member

    Messages:
    170
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #4
    You're not using the JS console, which tells us straight away that doMouseOver doesn't exist. Your code has wrapped at some point, so some of the single-line comments '//' are cancelling parts of the code.
    You have three alternatives:
    a) Restore the line breaks so that code following comments starts on a new line.
    b) Re-do the comments so that they start /* and end */
    c) Delete all the comments.
     
    Logic Ali, Feb 12, 2007 IP
  5. AaronCPK

    AaronCPK Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks, I'll give it a try!
     
    AaronCPK, Feb 12, 2007 IP
  6. AaronCPK

    AaronCPK Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Genius, I did choice A and it's working perfectly now, thank you very much!

    One more quick question - is there a way to make a CSS-type file that will contain the javascript and tables for the logo that I can point to on the individual pages, so I don't have to have all of this code on every HTML file on my site?

    Thanks again, I appreciate the help.
     
    AaronCPK, Feb 12, 2007 IP
  7. AaronCPK

    AaronCPK Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Nevermind, figured it out with a .js file
     
    AaronCPK, Feb 14, 2007 IP