1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<script language="JavaScript">
if (document.images){
var phone_noir = new Image(); phone_noir.src = "phone_color/phone_noir_reflet.gif"
var pastille_bleu = new Image(); pastille_bleu.src = "phone_color/pastille_bleu.png"
var pastille_bleu2 = new Image(); pastille_bleu2.src = "phone_color/pastille_bleu2.png"
var phone_bleu = new Image(); phone_bleu.src = "phone_color/phone_bleu_reflet.gif"
var pastille_rouge = new Image(); pastille_rouge.src = "phone_color/pastille_rouge.png"
var pastille_rouge2 = new Image(); pastille_rouge2.src = "phone_color/pastille_rouge2.png"
var phone_rouge = new Image(); phone_rouge.src = "phone_color/phone_rouge_reflet.gif"
}
function change(nom,obj_im) {
if (document.images) {
document.images[nom].src=obj_im.src}
}
</script>
...
<a href="javascript:;" onmouseover="change('bleu',pastille_bleu2);change('phone',phone_bleu);" onmouseout="change('bleu',pastille_bleu);change('phone',phone_noir);" onclick="change('bleu',pastille_bleu2);pastille_bleu.src=pastille_bleu2.src;change('phone',phone_bleu);phone_noir.src=phone_bleu.src" ><img src="phone_color/pastille_bleu.png" alt="Phone bleu" width="40" height="40" id="Pastille bleue" name="bleu" /></a> |
Partager