Change background color onmouseover with Javascript
You can change background color of this div just bringing your mouse over colors.
Code of Javascript/HTML:
<script language="javascript">
function change_background_color(c){
document.getElementById('div2change').style.backgroundColor= '#'+c;
}
</script>
<div id="div2change" style="background-color: #cde; padding: 10px ; text-align: center;">
You can change background color of this div just bringing your mouse over colors.
<a style="background-color: #0f3;" class="cc" onMouseOver="change_background_color('00ff33'); ">00ff33</a>
<a style="background-color: #6cf;" class="cc" onMouseOver="change_background_color('66ccff'); ">66ccff</a>
<a style="background-color: #ff9;" class="cc" onMouseOver="change_background_color('ffff99'); ">ffff99</a>
<a style="background-color: #0fc;" class="cc" onMouseOver="change_background_color('00ffcc'); ">00ffcc</a>
</div>
Similar entries
- Check password safety with JavaScript while typing
- CSS Text effects for MSIE
- Common HTML / Web colors
- All senior students
- degree of "life experience degrees.
- Search for the right design
- paragraph of an essay
- Redirect webpages with HTML, PHP, .htaccess, Java+Script, CGI-Perl, ASP.NET and ColdFusion
- history of education.
- The service of essay writing
- Every business must have a corporate logo design
- IF you have never bought
- Web2 Style CSS Dynamic Menu with Arrows and Background-Images
- Mouseover images with CSS
- What Is the Benefits of an Online Education?
- Web 2.0 Style two Side Background, Dark to Light Effect
- Logo Design Outsourcing
- Preload images with JavaScript or CSS
- Pure CSS Mouseover Menu without Javascript
- Withdrawing from online high schools












Post new comment