Rollover en javascript
gaya_102
-
N@th@ Messages postés 97 Date d'inscription Statut Membre Dernière intervention -
N@th@ Messages postés 97 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
voila le cript que j'ai trouvé sur internet
<code type="html">
<!-- DEBUT DU SCRIPT -->
<!--
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
-->
<A HREF="www.sandrineetgwen.fr/emelineprésentation.html" onMouseOver="i993572.src='image/presentation_on'" onMouseOut="i993572.src='image/presentation_off'"><IMG SRC="image/presentation_off" BORDER=0 NAME="i993572" ALT="" HSPACE=0 VSPACE=0></A>
<!-- FIN DU SCRIPT --><noscript><a href="http://www.editeurjavascript.com/">ajax</a></noscript>
</code>
Je sais que c'est la partie que l'on met à l'emplacement de mon image.
Je sais que je n'ai aps besoin de tout mettre. Qu'est ce que je peux enlever?
voila le cript que j'ai trouvé sur internet
<code type="html">
<!-- DEBUT DU SCRIPT -->
<!--
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
-->
<A HREF="www.sandrineetgwen.fr/emelineprésentation.html" onMouseOver="i993572.src='image/presentation_on'" onMouseOut="i993572.src='image/presentation_off'"><IMG SRC="image/presentation_off" BORDER=0 NAME="i993572" ALT="" HSPACE=0 VSPACE=0></A>
<!-- FIN DU SCRIPT --><noscript><a href="http://www.editeurjavascript.com/">ajax</a></noscript>
</code>
Je sais que c'est la partie que l'on met à l'emplacement de mon image.
Je sais que je n'ai aps besoin de tout mettre. Qu'est ce que je peux enlever?
A voir également:
- Rollover en javascript
- Telecharger javascript - Télécharger - Langages
- A javascript error occurred in the main process - Forum Windows
- A javaScript error occurred in the main process - Forum Handicap / Accessibilté
- Erreur #125 javascript - Forum Mozilla Firefox
- Javascript arrondi - Forum Javascript
3 réponses
Pour mieux connaitre le Javascript je te conseille se tutoriel : http://www.siteduzero.com/tutoriel-3-8158-tout-sur-le-javascript.html
Pour info dans le code que tu a trouvé il n'y a que deux balise Javascript.
Pour info dans le code que tu a trouvé il n'y a que deux balise Javascript.
Tu peux garder (il me semble)
<A HREF="www.sandrineetgwen.fr/emelineprésentation.html" onMouseOver="i993572.src='image/presentation_on'" onMouseOut="i993572.src='image/presentation_off'"><IMG SRC="image/presentation_off" BORDER=0 NAME="i993572" ALT="" HSPACE=0 VSPACE=0></A>
border=0 évite d'avoir un cadre bleu mais si tu le défini dans ton CSS tu peux l'enlever.
N'oublie pas les balise <script>
<A HREF="www.sandrineetgwen.fr/emelineprésentation.html" onMouseOver="i993572.src='image/presentation_on'" onMouseOut="i993572.src='image/presentation_off'"><IMG SRC="image/presentation_off" BORDER=0 NAME="i993572" ALT="" HSPACE=0 VSPACE=0></A>
border=0 évite d'avoir un cadre bleu mais si tu le défini dans ton CSS tu peux l'enlever.
N'oublie pas les balise <script>
par contre mon image sur laquelle y a le rellover n'est plus afficher
voila le code
<code type="html"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>index emiline</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Exemple" href="design_emeline4.css" />
<!-- DEBUT DU SCRIPT -->
<SCRIPT LANGUAGE="JavaScript">
/* PRECHARGEMENT DE L IMAGE DANS LE CACHE DU NAVIGATEUR */
if(document.images)
{
i993572 = new Image;
i993572 = "image/presentation_on";
}
</SCRIPT>
<!-- FIN DU SCRIPT -->
</head>
<body>
<!-- fond -->
<div id="unite">
<div class="en_tete">
<img src="image/bande_haut_index.jpg">
</div>
<div class="menu">
<img src="image/gauche_bouton.jpg">
<A HREF="www.sandrineetgwen.fr/emelineprésentation.html" onMouseOver="i993572.src='image/presentation_on'" onMouseOut="i993572.src='presentation_off'"><IMG SRC="image/presentation_off" BORDER=0 NAME="i993572" ALT="" HSPACE=0 VSPACE=0></A>
<img src="image/jourj_off.jpg">
<img src="image/infos_pratiques_off.jpg">
<img src="image/contact_off.jpg">
<img src="image/droite_bouton.jpg">
</div>
<div class="bas_page">
<img src="image/bande_bas_index.jpg">
</div>
</div>
</body>
</html>
</code>