HELP need menu help

Discussion in 'JavaScript' started by crazygirl, Dec 5, 2006.

  1. #1
    I added a flash chat that needs to open in another window - that all works fine - but when you put your mouse over the "Webcam" in the main menu it does not go white like the rest of the options here is the code can anyone help me with it thanks :). I know nothing about JS here is my problem in the 1st code listed below when u put your mouse over it the Link turns White in the 2nd set of code it does not so it does not look like a link - can anyone help me get the 2nd oneto act like the 1st ? Thank

    FIRST LINK

    <td class="menu" onclick="javascript:window.location.href='{%HOME%}/worldmap.php';" onmouseover="this.className='menu2';" onmouseout="this.className='menu';"><a href="{%HOME%}/worldmap.php">MAP</a></td>


    SECOND LINK

    <td class="menu" onClick="javascript:window.open('{%HOME%}/flashchat.php','WEBCHAT', 'toolbar=yes, directories=no, location=no, status=yes, menubar=no,resizable=yes, scrollbars=yes, width=700, height=600'); return false">WEBCAM & CHAT</a></td>
     
    crazygirl, Dec 5, 2006 IP
  2. Logic Ali

    Logic Ali Well-Known Member

    Messages:
    170
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #2
    It needs
     onmouseover="this.className='menu2';" onmouseout="this.className='menu';"
    
    Code (markup):
    same as in the first.
     
    Logic Ali, Dec 5, 2006 IP
  3. crazygirl

    crazygirl Peon

    Messages:
    659
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Where do you put it ? I tried that it did not work ?
     
    crazygirl, Dec 5, 2006 IP
  4. crazygirl

    crazygirl Peon

    Messages:
    659
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I can't believe no one would know this it seems easy but I know nothing about programming :(
     
    crazygirl, Dec 6, 2006 IP
  5. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #5
    It's very hard to work with two lines of a page, try pasting the entire html or give a link to it...
     
    krakjoe, Dec 6, 2006 IP
  6. crazygirl

    crazygirl Peon

    Messages:
    659
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I don't know what you mean there are 2 links one works right and one does not - the one on top works basically i need to know where to put the stuff below in the 2nd link to make it highlight properly

    onmouseover="this.className='menu2';" onmouseout="this.className='menu';
     
    crazygirl, Dec 6, 2006 IP
  7. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #7
    someone already answered that question for you, and you said it didn't work, so if you want more help you'll need to link to the page or paste the html for the page.....
     
    krakjoe, Dec 6, 2006 IP
  8. crazygirl

    crazygirl Peon

    Messages:
    659
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #8
    No he said to add the code but I don;t know where to put it :( in the link
     
    crazygirl, Dec 6, 2006 IP
  9. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #9
    either inside the <a tag or inside a <td tag should work.....
     
    krakjoe, Dec 6, 2006 IP