1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

javascript help

Discussion in 'Web Design & Development' started by dbimen, Feb 14, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. dbimen

    dbimen Thread Starter

    Joined:
    Jul 16, 2006
    Messages:
    121
    I am having trouble with a javascript menu dropdown that I got off the internet. I've altered it a little to fit my needs but I would like to do something that after taking many javascript classes, I can't figure out how.

    I want to make the drop down menu item's font color green by default, and then on mouseover have the font turn YELLOW and the backgroun turn GREEN.

    I've attached the code that I am developing the menu bars on.

    Please help.
     

    Attached Files:

  2. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
  3. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    I assume you are designing that site from the ground up...

    If so than I would use float instead of the tables as they are usually harder to work with.

    Also you can make drop down menues with css let me find out how...
     
  4. dbimen

    dbimen Thread Starter

    Joined:
    Jul 16, 2006
    Messages:
    121
    That doesnt work.... I tried it. These are javascript menus with arrays for each menu's values.
     
  5. dbimen

    dbimen Thread Starter

    Joined:
    Jul 16, 2006
    Messages:
    121

    I would like to do it the way that i have it.... I want to do it with javascript. I've already got the site designed.... any idea on the javascript?
     
  6. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    can you give me the code you tried
     
  7. dbimen

    dbimen Thread Starter

    Joined:
    Jul 16, 2006
    Messages:
    121
    my code is posted here already.... i tried to insert: fontcolor(green) onmouseover="fontcolor(yellow)" onmouseover="bgcolor(green)" and it didnt work.... can you look at my code and see where it would work?
     
  8. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    of course that wouldn't work, I told you I don't think that was the right element for bg color...

    wait i'll take another look...
     
  9. dbimen

    dbimen Thread Starter

    Joined:
    Jul 16, 2006
    Messages:
    121
    have you had any luck? I've been messing with this for a while now. Do you know any advanced java programmers that could help me solve this?
     
  10. dbimen

    dbimen Thread Starter

    Joined:
    Jul 16, 2006
    Messages:
    121
    can we move this thread to development? I need a javascript programmer to help.
     
  11. Gibbs

    Gibbs

    Joined:
    Feb 28, 2005
    Messages:
    609
  12. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    I agree that this is the right section as it IS web dev and nothing else but under the dev forum it says For Javascript...

    as for your fix, how about changing the back ground?

    :)
     
  13. Gibbs

    Gibbs

    Joined:
    Feb 28, 2005
    Messages:
    609
    Oh yeah never noticed that... Nevertheless this is till the right forum :p

    The background colour goes green for me on both Internet Explorer and Firefox. Changing it can be done here:
    HTML:
    #dropmenudiv a:hover{ /*hover background color*/
    
    background-color: green;
    
    }
     
  14. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    Yeah as I said. :)

    Never thought of that, you're pretty good. :)
     
  15. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/544175

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice