1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change background color of webpage by mouse over the color

Discussion in 'JavaScript and AJAX' started by Nishant24, Oct 5, 2013.

  1. Nishant24

    Nishant24 New Member

    Joined:
    Apr 17, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Hey, guys.,, I am in 12th class and I was a given a question in my computer practical exam to write a script in javascript that changes background color of the webpage when mouse cursor is over the link of the particular color.
    For eg. We created a link naming red and when we put our mouse cursor over that link, the background color changes to red instead of white.
    And further I was asked that if we move the cursor from that link the background color should again change to white from red.
    Help me friends.... the first scritp I wrote but after moving the cursor from that link it still remains red only, I mean the background of the webpage.

    Help guys..
    Thanks
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Show us some efforts on what you have tried.
     

Share This Page