CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourHigh-Tech
    • Actus High-Tech
    • Hardware
    • Smartphones
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • High-Tech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

document.write(´ ... ´);

TK_Elitetom
TK_Elitetom
Niveau 10
18 juin 2002 à 16:07:15

Je fais quoi avec ca electron ?

Je met tout mon script de menu entre les deux parenthese ?

electron_libre
electron_libre
Niveau 10
18 juin 2002 à 17:05:00

oui, entre les parenthese tu fout le code html correspondant à ton menu, mais tout entre les meme parentheses, en gros si ton menu ressemble à ce:

<table>
<tr>
<td>
<font><a href="lien1.htm">mon lien 1</a></font>
</td>
<td>
<font><a href="lien2.htm">mon lien 2</a></font>
</td>
</tr>
</table>

et bien tu fais:

function()
{
document.write(´<table><tr><td>´);
document.write(´<f
ont><a href="lien1.htm">mon lien 1</a></font>´);
document.write(´</td><td>´);
document.write(´
<font><a href="lien1.htm">mon lien 1</a></font>´);
document.write(´</td></tr></table>´);
}

t
u enregistres sous: "presentation.js"

sur toute tes pages entre head et /head tu met:
<SCRIPT LANGUAGE=JavaScript SRC=presentation.js></SCRIPT> (fais gaffe que ta page et ton fichier .js soit dans le meme repertoire sinon tu avise en mettant ../ devant le nom)

et entre body et /body à l´endroit ou tu veut mettre ton menu tu met:
<SCRIPT LANGUAGE=JavaScript>menu()</SCRIPT>

TK_Elitetom
TK_Elitetom
Niveau 10
18 juin 2002 à 17:24:57

Pk menu ?

T´a pas marque fuction menu()

TK_Elitetom
TK_Elitetom
Niveau 10
18 juin 2002 à 17:38:26

´

TK_Elitetom
TK_Elitetom
Niveau 10
18 juin 2002 à 17:55:50

ca me donne ca :

function menu()
{
document.write(´<td width="138" background="interface/v_neon2.gif" height="400" valign="top">´)
document.write(´<table width="138" border="0" cellspacing="0" cellpadding="0">´)
document.write(´<tr>´)
document.write(´<td width="8" height="24"> </td>´)
document.write(´<td background="interface/barr_l.gif" height="24" valign="middle"><img src="interface/pix.gif" width="26" height="5"><font class="cool"><b>es SS de JV</b></font></td>´)
document.write(´</tr>´)
document.write(´<tr>´
)
document.write(´<td width="8" height="4"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="4"><img src="interface/h_menu.gif" width="130" height="4"></td>´)
document.write(´</tr>´)
document.write(´<tr>
´)
document.write(´<td width="8"> </td>´)
document.write(´<td background="interface/fond_menu.gif"><font face="arial" size="1" color="#00CCFF"><b><img src="ornements/puce1.gif" width="12" height="3"></b></font>´)
document.write(´<a href="x-box.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">X-BoX SS</a><font face="arial" size="2"><b><font color="#FFFFFF" size="1">
´)
document.write(´</font><font color="#00CCFF" size="1"><img src="ornements/puce1.gif" width="12" height="3"></font></b></font>´)
document.write(´<a href="GBA.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">GBA SS</a>
´)
document.write(´<font face="arial" size="1" color="#00CCFF"><b><img src="ornements/puce1.gif" width="12" height="3"></b></font>´)
document.write(´<a href="GBC.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">GBC SS (et GB)
´)
document.write(´</a><font face="arial" size="1" color="#00CCFF"><b><img src="ornements/puce1.gif" width="12" height="3"></b></font>´)
document.write(´<a href="N64.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">Nintendo 64 SS
´)
document.write(´</a><b><font face="arial" size="1" color="#00CCFF"><img src="ornements/puce1.gif" width="12" height="4"></font>´)
document.write(´</b>´)
document.write(´<a href="dreamcast.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">Dreamcast SS
´)
document.write(´</a><b><font face="arial" size="1" color="#00CCFF"><img src="ornements/puce1.gif" width="12" height="4"></font>´)
document.write(´</b>´)
document.write(´<a href="PS.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">PS & PS2 SS
´)
document.write(´</a><b><font face="arial" size="1" color="#00CCFF"><img src="ornements/puce1.gif" width="12" height="4"></font>´)
document.write(´</b> <a href="Gamecube.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">Gamecube SS</a>
´)
document.write(´<font face="arial" size="1" color="#00CCFF"><b><img src="ornements/puce1.gif" width="12" height="3"></b></font>´)
document.write(´<a href="pc.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">PC SS</a></td>´)
document.write(´</tr>´)
document.write(´<tr>´)
docu
ment.write(´<td width="8" height="3"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="3"><img src="interface/b_menu.gif" width="130" height="4"></td>´)
document.write(´</tr>´)
document.write(´<tr>´)
document.write(´<td width="8" height="5"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="5"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´</tr>´)
document.write(´</table>´)

document.write(´<table width="138" border="0" cellspacing="0" cellpadding="0">´)
document.write(´<tr>´)
document.write(´<td width="8" height="24"> </td>´)
document.write(´<td background="interface/barr_s.gif" height="24" valign="middle"><img src="interface/pix.gif" width="26" height="5"><font class="cool"><b>creenshots</b></font></td>´)
document.write(´</tr>´)
document.write(´
<tr>´)
document.write(´<td width="8" height="4"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="4"><img src="interface/h_menu.gif" width="130" height="4"></td>´)
document.write(´</tr>´)
document.write
(´<tr>´)
document.write(´<td width="8"> </td>´)
document.write(´<td background="interface/fond_menu.gif"><font face="arial" size="1" color="#00CCFF"><b><img src="ornements/puce1.gif" width="12" height="3"></b></font>´)
document.write(´<a href="truques.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">SS Truques</a><font face="arial" size="2"><b><font color="#FFFFFF" size="1">
´)
document.write(´</font><font color="#00CCFF" size="1"><img src="ornements/puce1.gif" width="12" height="3"></font></b></font>´)
document.write(´<a href="Bizarre.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">SS Bizarres</a><font face="arial" size="2"><font size="1" face="arial" color="#FFFFFF"><b>´)
document.write(´
´)
document.write(´</b></font><font face="arial" size="1" color="#00CCFF"><b><img src="ornements/puce1.gif" width="12" height="3"></b></font></font>´)
document.write(´<a href="top-ss.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">Top Screenshot</a><font face="arial" size="1" color="#FFFFFF"><b>
´)
document.write(´</b></font></td>´)
document.write(´</tr>´)
docum
ent.write(´<tr>´)
document.write(´<td width="8" height="3"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="3"><img src="interface/b_menu.gif" width="130" height="4"></td>´)
document.write(´</tr>´)
doc
ument.write(´<tr>´)
document.write(´<td width="8" height="5"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="5"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´</tr>´)
docum
ent.write(´</table>´)
document.write(´<table width="138" border="0" cellspacing="0" cellpadding="0">´)
document.write(´<tr>´)
document.write(
´<td width="8" height="24"> </td>´)
document.write(´<td background="interface/barr_p.gif" height="24" valign="middle"><img src="interface/pix.gif" width="26" height="5"><font class="cool"><b>artenaires</b></font></td>´)
document.write(´</
tr>´)
document.write(´<tr>´)
document.write(´<td width="8" height="4"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="4"><img src="interface/h_menu.gif" width="130" height="4"></td>´)
document.write(´</tr>´)
document.write(´<tr>´)
document.write(´<td width="8"> </td>´)
document.write(´<td background="interface/fond_menu.gif"><font face="arial" size="1" color="#00CCFF"><b><img src="ornements/puce1.gif" width="12" height="3"></b></font>´)
document.write(´<a href="Partenaire.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">Devenir partenaire</a>´)
document.write(´<p><a href="http://www.atelierwebzone.com" target="_blank"><center><img src="interface/kitdesign_awz.gif" width="62" height="36" border="0" alt="Création AWZ">
´)
document.write(´</center></a></p>´)
docum
ent.write(´</td>´)
document.write(´</tr>´)
d
ocument.write(´<tr>´)
document.write(´<td width="8" height="3"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="3"><img src="interface/b_menu.gif" width="130" height="4"></td>´)
document.write(´</tr>´)
document.write(´<tr>´)
document.write(´<td width="8" height="5"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="5"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´</tr>´)
document.write(´</table>´)
document.write(´<ta
ble width="138" border="0" cellspacing="0" cellpadding="0">´)
document.write(´<tr>´)
document.w
rite(´<td width="8" height="24"> </td>´)
document.write(´<td background="interface/barr_i.gif" height="24" valign="middle"> <font class="cool"><b>´)
document.write(´nteractif</b></font></td>´)
document.write
(´</tr>´)
document.write(´<tr>´)
document.write(´<td width="8" height="4"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="4"><img src="interface/h_menu.gif" width="130" height="4"></td>´)
document.write(´</tr>´)
document.write(´<tr>´)
document
.write(´<td width="8"> </td>´)
document.write(´<td background="interface/fond_menu.gif"><font face="arial" size="1" color="#00CCFF"><b><img src="ornements/puce1.gif" width="12" height="3"></b></font>´)
document.write(´<a href="http://tk.elitetom.free.fr/Site\%20web/kit5/ph
pBB-2.0.1/phpBB2/" class="menu" target="_blank" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">Forum</a><font face="arial" size="2"><font size="1" face="arial" color="#FFFFFF"><b>´)
document.write(´
´)
document.write(´</b></font><font face="arial" size="1" color="#00CCFF"><b><img src="ornements/puce1.gif" width="12" height="3"></b></font></font>´)
document.write(´<a href="suggestions.htm" class="menu" onMouseOver="msg(´SSP - Screenshot Palace V.1.0´);return true;" onMouseOut="return true;">Suggestions</a><font size="1" face="arial" color="#FFFFFF"><b>
´)
document.write(´</b></
font>´)
document.write(´</td>´)
document.write(´</tr>´)
document.write(´<tr>´)
document.write(´<td width="8" height="3"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="3"><img src="interface/b_menu.gif" width="130" height="4"></td>´)
document.write(´</tr>´)
document.write(´<tr>´)
document.write(´<td width="8" height="5"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´<td height="5"><img src="interface/pix.gif" width="3" height="3"></td>´)
document.write(´</tr>´)
document.write(´</table>´)
docu
ment.write(´</td>´)

electron_libre
electron_libre
Niveau 10
18 juin 2002 à 18:48:51

il faut des point-virgule à la fin de chaque ligne

sinon g effectivement oublié le nom de la fonction:
function menu()
{
...
}

electron_libre
electron_libre
Niveau 10
18 juin 2002 à 18:51:02

g pas tout regardé dans le detail, mais ta 1ere ligne est inutile ici je pense

Sous forums
  • Aide à l'achat Mac
  • Steam Deck
  • Création de sites web
  • Création de Jeux
  • Linux
  • Programmation
  • Internet
  • Macintosh
  • Hardware
La vidéo du moment