Javascript/HTML issue

Discussion in 'HTML & Website Design' started by doh102, Apr 16, 2012.

  1. #1
    I am in the process of creating a site for my father's business, but ran into trouble when I combined two different scripts, a menu script and a hoverbox script. They both work great independently, but when they are used in conjunction, the drop down menu ceases to work. Here's an example of a page that doesn't work correctly: http://www.stonezoneco.com/antlsbenchgal.html and one that does: http://www.stonezoneco.com/benches.html. Anyone who can supply anything that can help me with this would really help me out. The business is a small one, and they don't have the money to pay someone to do this. My knowledge is limited, but I have been pretty happy with my results until I hit this snag. I can supply code for the scripts as well if need be.

    Thank you!
     
    doh102, Apr 16, 2012 IP
  2. Basti

    Basti Active Member

    Messages:
    625
    Likes Received:
    6
    Best Answers:
    3
    Trophy Points:
    90
    #2
    looks like you have 2 body elements on the page, try integrating them to 1

    delete
    
    <body onload="clickMenu('menu')">
    
    Code (markup):
    change
    
    <body id="The Stone Zone.com" onload="clickMenu('gallery')">
    
    Code (markup):
    to
    
    <body id="The Stone Zone.com" onload="clickMenu('menu'); clickMenu('gallery');">
    
    Code (markup):
     
    Basti, Apr 16, 2012 IP
  3. doh102

    doh102 Peon

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    doh102, Apr 16, 2012 IP
  4. Basti

    Basti Active Member

    Messages:
    625
    Likes Received:
    6
    Best Answers:
    3
    Trophy Points:
    90
    #4
    Basti, Apr 16, 2012 IP