Aide Logiciels - Aide Générale : wibo, 2 utilisateurs anonymes et 25 utilisateurs inconnus

 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet :

Problème simple avec javascript

 
n°378877
__Nianiok_​43___
NianioK ®©
Profil : Inconnu(e)
Posté le 13-01-2006 à 09:42:37  profilanswer
 

Bonjour à tous.
Je viens de découvrir le javascript et j'ai voulu l'essayer pour faire apparaître un petit message en bas à droite de l'écran dans la barre d'état.
J'ai donc pris un code sur le net (site éditeur javascript je crois :heink: )et je l'ai glissé dans dreamweaver... mais le code de marche pas et il y a des problèmes sur ma page.
J'ai ensuite montré le code à un collègue qui a des notions et il a modifié quelques trucs mais en vain..
Si vous avez une idée... je vous laisse mon code source!

 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Le Monde de Barbiche</title>
 
<meta name="keywords" content="FRANCE, BARBICHE barbiche, SRC, src, services réseaux communication le puy, LE PUY" />
<meta name="description" content="Bienvenue sur le site officiel de Barbiche" />
<style type="text/css">
<!--
body {
 background-color: #0000FF;
}
.Style1 {
 font-family: Arial, Helvetica, sans-serif;
 font-weight: bold;
}
.Style2 {font-family: Geneva, Arial, Helvetica, sans-serif}
.Style3 {font-family: monospace}
.Style5 {color: #0000FF}
.Style6 {color: #FFFF00}
.Style7 {font-family: Arial, Helvetica, sans-serif}
<SCRIPT language="JavaScript1.1" type="text/javascript">
var bookmarkurl="http://perso.wanadoo.fr/book.yannick-alirand/barbiche"
var bookmarktitle="Barbiche Le site"
function addbookmark()
{ window.external.AddFavorite(bookmarkurl,bookmarktitle)
}  
<script language="Javascript">
// <!--
var message="salut à tous";
var speed=400;
var visible=0;
function Flash() {
 if (visible == 0) {
  window.status=message;
  visible=1;
 } else {
  window.status="";
  visible=0;
 }
 setTimeout('Flash()', speed);
}
// -->
</script>
 
</style></head>
 
<body onload="Flash()">
 
<p align="center"><SPAN Style1><em><strong>ATTENTION, la r&eacute;solution &eacute;cran recommand&eacute;e est de 1024 <span class="Style7">x</span> 768 px</strong></em></SPAN></p>
<table width="300" border="1" align="center">
  <tr>
    <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="500">
      <param name="movie" value="barbiche.swf">
      <param name=quality value=high>
      <embed src="barbiche.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="550" height="500"></embed>
    </object></td>
  </tr>
</table>
<table width="668" height="40" border="0" align="center">
  <tr>
    <td width="571"><span class="Style1">La visite de ce site n&eacute;cessite Macromedia Flash Player t&eacute;l&eacute;chargeable ici : </span></td>
    <td width="30"><div align="center"><a href="http://www.macromedia.com/shockwave/download/download.cgi?Lang=French&P5_Language=French&P1_Prod_Version=ShockwaveFlash&Lang=French" target="_blank"><img src="plugflash.gif" width="88" height="23" border="0"></a></div></td>
  </tr>
</table>
<p><span class="Style3"><span class="Style5"><marquee behavior="alternate"><strong><span class="Style6">/!\ Site en Construction ... /!\ </span></strong>
  </marquee>
</span> </span> </p>
<p align="center">&copy; POWERED  by <a href="http://perso.wanadoo.fr/book.yannick-alirand/book/" target="_blank" class="Style6">NianioK Design</a></p>
</body>
</html>
 
Merci à tous d'avance et @++
 


Message édité par __Nianiok_43___ le 13-01-2006 à 18:40:25
mood
Publicité
Posté le 13-01-2006 à 09:42:37  profilanswer
 

n°378919
G-UNIT
Pensez à Google...
Profil : Célèbre
Posté le 13-01-2006 à 21:04:48  profilanswer
 

Bonsoir,
 
Tu as mis le script dans la balise css.
 
Ferme </style> avant d'ouvrir <script>.
 
Et ouvre un seul <script>, là tu en as deux qui s'ouvre et un qui se ferme dans un dans le premier...
 
En gros c'est le bordel...
 
;)
 
Maintenant je pense que c'est bon :
 

Citation :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Le Monde de Barbiche</title>
 
<meta name="keywords" content="FRANCE, BARBICHE barbiche, SRC, src, services réseaux communication le puy, LE PUY" />
<meta name="description" content="Bienvenue sur le site officiel de Barbiche" />
<style type="text/css">
<!--
body {
 background-color: #0000FF;
}
.Style1 {
 font-family: Arial, Helvetica, sans-serif;
 font-weight: bold;
}
.Style2 {font-family: Geneva, Arial, Helvetica, sans-serif}
.Style3 {font-family: monospace}
.Style5 {color: #0000FF}
.Style6 {color: #FFFF00}
.Style7 {font-family: Arial, Helvetica, sans-serif}
</style>
<SCRIPT language="JavaScript1.1" type="text/javascript">
var bookmarkurl="http://perso.wanadoo.fr/book.yannick-alirand/barbiche"
var bookmarktitle="Barbiche Le site"
function addbookmark()
{ window.external.AddFavorite(bookmarkurl,bookmarktitle)
}  
// <!--
var message="salut à tous";
var speed=400;
var visible=0;
function Flash() {
 if (visible == 0) {
  window.status=message;
  visible=1;
 } else {
  window.status="";
  visible=0;
 }
 setTimeout('Flash()', speed);
}
// -->
</script>
 
</head>


Message édité par G-UNIT le 13-01-2006 à 21:09:27

---------------
Webmaster Indépendant -> UNITPROD - Web creations / Blog UNITPROD
n°379038
__Nianiok_​43___
NianioK ®©
Profil : Inconnu(e)
Posté le 16-01-2006 à 09:50:23  profilanswer
 

Merci, j'essaye ça dès que mon pc remarche! (là je suis au bahut) G grillé mon µprocesseur et ma carte mère est défaillante je crois! lol  :pt1cable:

n°393408
__Nianiok_​43___
NianioK ®©
Profil : Inconnu(e)
Posté le 16-03-2007 à 15:52:58  profilanswer
 

Salut à tous.
 
Ce code précédent fonctionne avec IE6 mais ne marche pas avec IE7  :??:  :(  
Quelqu'un saurait pourquoi? Ou quelqu'un pourrait m'aiguiller vers un code qui marche sans problème?
 
Merci d'avance.  :)


---------------
NiAnIoK ®©
n°393428
__Nianiok_​43___
NianioK ®©
Profil : Inconnu(e)
Posté le 17-03-2007 à 13:00:22  profilanswer
 

UP  :)


---------------
NiAnIoK ®©
n°393430
G-UNIT
Pensez à Google...
Profil : Célèbre
Posté le 17-03-2007 à 13:11:28  profilanswer
 

Cherche un script qui fonctionne avec IE et mozilla sur ces sites : http://www.google.fr/search?hl=fr& [...] ogle&meta=
 
;)


---------------
Webmaster Indépendant -> UNITPROD - Web creations / Blog UNITPROD

Aller à :
Ajouter une réponse
 


Hit-Parade des sites francophones