Script ne fonctionne pas

Résolu/Fermé
Fireman.80 Messages postés 6 Date d'inscription mardi 17 janvier 2006 Statut Membre Dernière intervention 28 août 2008 - 17 janv. 2006 à 15:53
Gihef Messages postés 5150 Date d'inscription mercredi 20 juillet 2005 Statut Contributeur Dernière intervention 20 février 2023 - 17 janv. 2006 à 21:07
Bonjour ,


Depuis quelques temps , j'ai un script sur mon site qui ne fonctionne. Il s'agit d'un script "boîte déroulante"

J'utilise webexpert 2000 pour la création de mon site et avec le visionneur interne , ce script focntionne correctement. Par contre il ne fonctionne pas en ligne.

Quelqu'un a t il une info sur cette panne ?

Merci d'avance.

FIFI
A voir également:

2 réponses

bacchuss Messages postés 1162 Date d'inscription samedi 13 décembre 2003 Statut Membre Dernière intervention 6 avril 2009 190
17 janv. 2006 à 17:03
salut,

avec quel navigateur ca ne fonctionne pas ?

poste le code de ta page ici qu'on puisse regarder...
0
Fireman.80 Messages postés 6 Date d'inscription mardi 17 janvier 2006 Statut Membre Dernière intervention 28 août 2008
17 janv. 2006 à 17:11
J'ai essayé le script dans une page vierge et il fonctionne aussi bien avec le visionneur interne qu'en ligne. Le problème proviendrait de donc de la conception de ma page dont je vous transmets le code :

( d'avance merci !!!)


<html>
<!-- date de creation: 02/01/04 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Pompiers Flixecourt, le site !!!</title>
<meta name="Description" content="">
<meta name="Keywords" content="accident,incendie,seccoise,caméra thermique,amicale,pompiers,caserne,accident,interventions">
<meta name="Author" content="Amicale Sapeurs Pompiers de FLIXECOURT">
<meta name="Generator" content="WebExpert 2000">




</head>



<body bgcolor="#000000" text="#000000" link="#00ffff" vlink="#00ffff" alink="#00ffff">

<!-- Bannière d'entête -->

<embed src="AtelierFlash2004/bannierenoel2004.swf" width=765 height=221 type="application/x-shockwave-flash" swliveconnect="false" menu="false" pluginspage="http://www.pompiersflixecourt.com" quality="autohigh" bgcolor="#000000">


<!-- MENU intégral en Flash -->


<embed src="AtelierFlash2004/Creationmenu.swf" width=765 height=330 type="application/x-shockwave-flash" swliveconnect="false" menu="false" pluginspage="www" quality="autohigh" bgcolor="#000000">



<!-- Tableau nouvelles -->

<table width=765 cellspacing=2>
<tr>
<td width=375 height=25 align="center" valign="middle"><embed src="AtelierFlash2004/Dernieresnouvelles.swf" width=375 height=25 type="application/x-shockwave-flash" swliveconnect="false" menu="false" pluginspage="www" quality="autohigh" scale="exactfit" bgcolor="#000000"></td>
<td width=375 height=25 align="center" valign="middle"><embed src="AtelierFlash2004/Interventions2004endirect.swf" width=375 height=25 type="application/x-shockwave-flash" swliveconnect="false" menu="false" pluginspage="www" quality="autohigh" scale="exactfit" bgcolor="#000000"></td>
</tr>
<tr>
<td width=375 height=25 bordercolor=#FF0000 background="fondnew.gif" align="center" valign="middle">


<!-- DEBUT DU SCRIPT -->

<STYLE TYPE="text/css">
.ejs_scroll {font-size:12px;font-family:Arial;color:#000000;font-weight:bold;text-decoration:none}
</STYLE>

<script language="JavaScript1.2">

/*
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/

ejs_scroll_largeur = 375;
ejs_scroll_hauteur = 65;
ejs_scroll_bgcolor = '#FF9900';
/* Mettre ici le chemin de l'image de fond */
ejs_scroll_background = "";
/* Mettre ici le temps en secondes */
ejs_scroll_pause_seconde = 5;

ejs_scroll_message = new Array;

ejs_scroll_message[0]='<a href="http://www.pompiersflixecourt.com/xoops" class="ejs_scroll">essai</FONT></a>';
ejs_scroll_message[1]='<a href="http://www.pompiersflixecourt.com/xoops" class="ejs_scroll">essai 2</FONT></a>';
function d(texte)
{
document.write(texte);
}

d('<DIV ID=ejs_scroll_relativ STYLE="position:relative;width:'+ejs_scroll_largeur+';height:'+ejs_scroll_hauteur+';background-color:'+ejs_scroll_bgcolor+';background-image:url('+ejs_scroll_background+')">');
d('<DIV ID=ejs_scroll_cadre STYLE="position:absolute;width:'+(ejs_scroll_largeur-8)+';height:'+(ejs_scroll_hauteur-8)+';top:4;left:4;clip:rect(0 '+(ejs_scroll_largeur-8)+' '+(ejs_scroll_hauteur-8)+' 0)">');
d('<div id=ejs_scroller_1 style="position:absolute;width:'+(ejs_scroll_largeur-8)+';left:0;top:0;" CLASS=ejs_scroll>'+ejs_scroll_message[0]+'</DIV>');
d('<div id=ejs_scroller_2 style="position:absolute;width:'+(ejs_scroll_largeur-8)+';left:0;top:'+ejs_scroll_hauteur+';" CLASS=ejs_scroll>'+ejs_scroll_message[1]+'</DIV>');
d('</DIV></DIV>');

ejs_scroll_mode =1;
ejs_scroll_actuel = 0;

function ejs_scroll_start()
{
if(ejs_scroll_mode == 1)
{
ejs_scroller_haut = "ejs_scroller_1";
ejs_scroller_bas = "ejs_scroller_2";
ejs_scroll_mode = 0;
}
else
{
ejs_scroller_bas = "ejs_scroller_1";
ejs_scroller_haut = "ejs_scroller_2";
ejs_scroll_mode = 1;
}
ejs_scroll_nb_message = ejs_scroll_message.length-1;
if(ejs_scroll_actuel == ejs_scroll_nb_message)
ejs_scroll_suivant = 0;
else
ejs_scroll_suivant = ejs_scroll_actuel+1;
if(document.getElementById)
document.getElementById(ejs_scroller_bas).innerHTML = ejs_scroll_message[ejs_scroll_suivant];
ejs_scroll_top = 0;
if(document.getElementById)
setTimeout("ejs_scroll_action()",ejs_scroll_pause_seconde*1000)
}

function ejs_scroll_action()
{
ejs_scroll_top -= 1;
document.getElementById(ejs_scroller_haut).style.top = ejs_scroll_top;
document.getElementById(ejs_scroller_bas).style.top = ejs_scroll_top+ejs_scroll_hauteur;
if((ejs_scroll_top+ejs_scroll_hauteur) > 0)
setTimeout("ejs_scroll_action()",10)
else
ejs_scroll_stop()
}

function ejs_scroll_stop()
{
ejs_scroll_actuel = ejs_scroll_suivant;
ejs_scroll_start()
}

window.onload = ejs_scroll_start;
</SCRIPT>

<!-- FIN DU SCRIPT -->






</td>

<td width=375 bordercolor="#FF0000" background="fondnew.gif" align="center" valign="middle">
<div align="center"><font face="Arial" size=2 color="#ffffff"><b>

<!-- Nombre d'inter -->

<i>Interventions effectuées cette année : 40

<hr width=90% size=1 color="#c0c0c0">
Dernière intervention :

<!-- DERNIERE INTERVENTION -->

le 17/01/06 à 10h11</i></b>
<font face="Arial" size="2" color="#ffffff"><b><i><br>

<!-- RAISON ET LIEU -->

Secours à Personne à Flixecourt</i></b></font></div></td>
</tr>
</table>

<!-- Tableau entrée provisoire -->








<table width=765 cellspacing=2>
<tr>
<td width=375 height=25 align="center" valign="middle"><embed src="AtelierFlash2004/Newletters.swf" width=375 height=25 type="application/x-shockwave-flash" swliveconnect="false" menu="false" pluginspage="www" quality="autohigh" scale="exactfit" bgcolor="#000000"></td>
<td width=375 height=25 align="center" valign="middle"><embed src="AtelierFlash2004/Interventionsimage.swf" width=375 height=25 type="application/x-shockwave-flash" swliveconnect="false" menu="false" pluginspage="www" quality="autohigh" scale="exactfit" bgcolor="#000000"></td>
</tr>

<td width=375 height=25 bordercolor=#FF0000 background="fondnew.gif" align="center" valign="middle">

<font face="Arial" size=2 color="white"><i>Les prochaines nouvelles dans votre boîte...<br>indiquez votre adresse e-mail</i></font>

<FORM ACTION="http://www.poplist.fr/sub_unsub.php" target="_blank" METHOD="post"><INPUT TYPE="HIDDEN" Name="lid" Value="20031122190711"><INPUT TYPE="HIDDEN" Name="action" Value="subscribe"><INPUT SIZE="25" NAME="email" style="border: 1px solid #333333; background-color: #FDF8F2; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; color: #333333;"><INPUT name="submit" type="image" src="http://www.poplist.fr/images2/fr/btn/bt_form.gif" align="absmiddle" width="109" height="24" border="0" hspace="4"></FORM>
</td>



<td><embed src="AtelierFlash2004/inter141105/menu141105.swf" width=375 height=100 type="application/x-shockwave-flash" swliveconnect="false" menu="false" pluginspage="www" quality="autohigh" scale="exactfit">
<embed src="AtelierFlash2004/inter011005/menu011005.swf" width=375 height=100 type="application/x-shockwave-flash" swliveconnect="false" menu="false" pluginspage="www" quality="autohigh" scale="exactfit">
<embed src="AtelierFlash2004/inter170905/menu170905.swf" width=375 height=100 type="application/x-shockwave-flash" swliveconnect="false" menu="false" pluginspage="www" quality="autohigh" scale="exactfit">

</td>
</tr>
</table>

<table width=765 cellspacing=2>
<tr>
<td width=375 height=25 align="center" valign="middle"><embed src="AtelierFlash2004/Informations.swf" width=375 height=25 type="application/x-shockwave-flash" swliveconnect="false" menu="false" pluginspage="www" quality="autohigh" scale="exactfit" bgcolor="#000000"></td>
<td width=375 height=25 align="center" valign="middle"><embed src="AtelierFlash2004/Informations.swf" width=375 height=25 type="application/x-shockwave-flash" swliveconnect="false" menu="false" pluginspage="www" quality="autohigh" scale="exactfit" bgcolor="#000000"></td>
</tr>


<td width=375 bordercolor="#FF0000" background="fondnew.gif" align="center" valign="middle">
<font face="Arial" size=2 color="cyan"><i>Site internet d'information créé le 1er Avril 2001 par<br>l'Amicale des Sapeurs Pompiers de Flixecourt<br><hr size="1" color="#00ffff">Déclaré à la CNIL sous le n°884785<br><a href="mailto:philippe.laporte@pompiersflixecourt.com?subject=Site des Sapeurs Pompiers de Flixecourt">webmaster</a></i></font></td>

<td width=375 bordercolor="#FF0000" background="fondnew.gif" align="center" valign="middle">
<font face="Arial" size=2 color="cyan"><i> </i></font></td>


</tr>



</table>


<br><br>

<div align="center">

<A HREF="http://class.hit-parade.com/general/themesvaries/classement.asp" TARGET="_top"><IMG SRC="http://loga.hit-parade.com/logohp1.gif?site=a104210" Title="Hit-Parade des sites francophones" WIDTH="77" HEIGHT="15" BORDER="0"></A>

<div align="center">


<a href="http://www.xiti.com?xtor=AD-1----%5B133511%5D" TARGET="_top">
<script language="JavaScript1.1">
<!--
hsh = new Date();
hsd = document;
hsr = hsd.referrer.replace(/[<>]/g, '');
hsi = '<img width="39" height="25" border=0 ';
hsi += 'src="https://logv24.xiti.com/hit.xiti?fh=1&s=133511&Rdt=On';
hsi += '&p=menu_general';
hsi += '&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{Xiti_s=screen;hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;}
hsd.writeln(hsi + '&ref=' + hsr.replace(/&/g, '$') + '" title="Mesurez votre audience"><\!--');
//-->
</script>
<noscript>
<img width="39" height="25" border=0 src="https://logv24.xiti.com/hit.xiti?fh=1&s=133511&p=menu_general&&Rdt=On" title="Mesurez votre audience">
</noscript><!--//--></a>
<!-- eStat -->

<!-- /eStat --></div>



<font size="1" color="#c0c0c0"><div align="center"><font color="#808080"><font face="Arial">© 2005 ASPF . Tous droits de reproduction et de représentation réservés.<br> Toutes les informations
reproduites dans cette rubrique (articles, photos, logos) sont protégées par des droits de propriété.
<br>Par conséquent, aucune de ces informations ne peut être reproduite, modifiée, transmise, rediffusée,
traduite, vendue, exploitée commercialement ou réutilisée de quelque manière que ce soit sans
l'accord préalable écrit de l'ASPF.</font></font></div></font>











</body>
</html>
0
Fireman.80 Messages postés 6 Date d'inscription mardi 17 janvier 2006 Statut Membre Dernière intervention 28 août 2008
17 janv. 2006 à 17:27
Je viens de penser que j'utilise depuis peu Flash MX dans cette page ... cela a peut être un effet sur ce script ???
0
Gihef Messages postés 5150 Date d'inscription mercredi 20 juillet 2005 Statut Contributeur Dernière intervention 20 février 2023 2 775
17 janv. 2006 à 21:07
Bonjour,

Merci pour le code.
Est-ce que la “boîte déroulante” c'est le cadre jaune “essai-2” ?

Chez moi, ça fonctionne. En local comme en ligne.
Avec Firefox comme avec Safari.

As-tu activé Javascript dans ton navigateur ?
Lequel, au fait ?
0