Loading
View RSS Feed

Goldsonam's Blog

Use "onMouseover" attribute to change the background color of your webpage

Rating: 3 votes, 1.00 average.
Quote Originally Posted by goldsonam View Post
Code:
<html>

<head>

<title>Change the background color with onMouseover</title>

</head>

<body>
 
Move the cursor to the color you want the background to change ...


<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>

Submit "Use "onMouseover" attribute to change the background color of your webpage" to Digg Submit "Use "onMouseover" attribute to change the background color of your webpage" to del.icio.us Submit "Use "onMouseover" attribute to change the background color of your webpage" to StumbleUpon Submit "Use "onMouseover" attribute to change the background color of your webpage" to Google

Updated 02-16-2011 at 07:08 PM by Harsh

Categories
Web Design

Comments




Disclaimer: Users of techforum4u.com are responsible for ensuring that any material they post (article, blog posts, images or other mulitimedia content) does not violate or infringe upon the copyright, patent, trademark, or any personal or proprietary rights of any third party, and is posted with the permission of the owner of such rights.Anyone who violates these rules may have their access privileges removed without warning.