»
AnglaisFranaisVietnamien

Imprimer - Changeur de couleur sur la souris événement - JavaScriptBank.com

Version complte: jsB@nk » Arrière-plan » Changeur de couleur sur la souris événement
URL: http://www.javascriptbank.com/color-changer-on-event.html

Changeur de couleur sur la souris événement © JavaScriptBank.comCet JavaScript crée deux façon de changer de fond: cliquez/déplacez la souris sur le lien spécifié.

Version complte: jsB@nk » Arrière-plan » Changeur de couleur sur la souris événement
URL: http://www.javascriptbank.com/color-changer-on-event.html



JavaScript
<script language="javascript">/*     This script downloaded from www.JavaScriptBank.com     Come to view and download over 2000+ free javascript at www.JavaScriptBank.com*/var backColor = new Array(); // don't change this// Enter the colors you wish to use. Follow the// pattern to use more colors.  The number in the// brackets [] is the number you will use in the// function call to pick each color.backColor[0] = '#FF0000';backColor[1] = '#00FF00';backColor[2] = '#FFC0C0';backColor[3] = '#FFFFFF';// Do not edit below this line.function changeBG(whichColor){document.bgColor = backColor[whichColor];}//  End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<a href="#" onMouseOver="javascript:changeBG(2)">Change by placing mouse over link</a><br><a href="javascript:changeBG(1)">Change by clicking on link</a><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->