Use onMouseover to change the background color of your webpage. Can be applied to change other things like images and so on.
Change the Background Color with onMouseover (HTML)
<!-- 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>
parthireach 0 Unverified User
prathapvs 0 Newbie Poster
anilexi 0 Newbie Poster
remotions 0 Newbie Poster
lizzeelike 0 Newbie Poster
warest 0 Newbie Poster
pankaj dadhich 0 Newbie Poster
mikrosfoititis 0 Junior Poster in Training
safvansouri 0 Newbie Poster
TonyG_cyprus 36 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.