Les avertissements suivants se sont produits :
Warning [2] Undefined array key 0 - Line: 1640 - File: showthread.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 1640 errorHandler->error_callback
/showthread.php 915 buildtree




Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
RESOLU J'ai installé le module Jquery et mes images n'apparaissent pas
#1
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: ?
#~ Url du site :
#~ Hébergeur / Soft :
#~ Informations Système :
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~


Bonjour à tous,

J'ai installé le module Jquery pour pouvoir afficher ma bannière avec des images qui changent.

J'ai ajouté le script suivant que j'ai appellé banniere:

Code :
[== Indéfini ==]
<!-- DEBUT DU SCRIPT -->
<script LANGUAGE="JavaScript">
imgPath = new Array;
SiClickGoTo = new Array;
version = navigator.appVersion.substring(0,1);
if (version >= 3)
{
i0 = new Image;
i0.src = 'formateurs.jpg';
SiClickGoTo[0] = "index.html";
imgPath[0] = i0.src;
i1 = new Image;
i1.src = 'formateursweb.jpg';
SiClickGoTo[1] = "index.html";
imgPath[1] = i1.src;
i2 = new Image;
i2.src = 'references.jpg';
SiClickGoTo[2] = "index.html";
imgPath[2] = i2.src;
}
a = 0;
function StartAnim()
{
if (version >= 3)
{
document.write('<A HREF="#" onClick="ImgDest();return(false)"><IMG SRC="test.gif" BORDER=0 ALT=Menu NAME=defil></A>');
defilimg()
}
else
{
document.write('<A HREF="commentfaiton.html"><IMG SRC="test.gif" BORDER=0></A>')
}
}
function ImgDest()
{
document.location.href = SiClickGoTo[a-1];
}
function defilimg()
{
if (a == 3)
{
a = 0;
}
if (version >= 3)
{
document.defil.src = imgPath[a];
tempo3 = setTimeout("defilimg()",3000);
a++;
}
}
</SCRIPT>.

En suite j'ai mis l'instruction Jquery dans ma page comme suit:





{jQuery action="load" script="1"}

Mais quand je regarde ma page rien ne s'affiche et je ne comprends pas pourquoi:


Est-ce que j'ai mal défini quelque chose?
pourriez vous m'aider?


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)