•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 402,507 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,837 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Use onMouseover to change the background color of your webpage. Can be applied to change other things like images and so on.
<!-- Experiments with the mouse vegaseat 6/15/02 --> <!-- onMouseover, href, bgcolor --> <html> <head> <title>change the background color with onMouseover</title> </head> <body> Move the cursor to the color you want ... <br> <br> <a href="" onMouseover="document.bgColor='red'">Red</a> <br> <a href="" onMouseover="document.bgColor='orange'">Orange</a> <br> <a href="" onMouseover="document.bgColor='yellow'">Yellow</a> <br> <a href="" onMouseover="document.bgColor='green'">Green</a> <br> <a href="" onMouseover="document.bgColor='magenta'">Magenta</a> <br> <a href="" onMouseover="document.bgColor='purple'">Purple</a> <br> </body> </html>
Comments (Newest First)
lizzeelike | Newbie Poster | 22 Days Ago
•
•
•
•
is it possible to do this same work using outside"CSS" file?plz do reply
thanks
lizzeelike
thanks
lizzeelike
remotions | Newbie Poster | Jun 9th, 2007
•
•
•
•
It works, just you need to fill the href="" with # so that it looks like this: href="#". Or you will have mouse click to point your browser to the start page of your site. Also you have to disable CSS background styles for particular page.
anilexi | Newbie Poster | Mar 30th, 2007
•
•
•
•
Boring 100% Nothing Work It. Like U prathapvs | Newbie Poster | Oct 15th, 2006
•
•
•
•
i think its not working
parthireach | Unverified User | Sep 14th, 2006
•
•
•
•
:rolleyes: hai
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)