Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3413 connectés 

 


Dernière réponse
Sujet : Html - Menu déroulant
feer YAISSSE :)
 
ça marche merci à tous pour votre aide ;)
 
ça donne donc ça:
 
<FORM>  
<SELECT NAME="list">  
 <OPTION VALUE="th.htm">Th  
 <OPTION VALUE="http://www.forumaqua.fr.st">Gh
 <OPTION VALUE="th.htm">Charbon actif
</SELECT>  
<p align="left"><INPUT TYPE=BUTTON VALUE="Définition" onClick="window.open(this.form.list.options[this.form.list.selectedIndex].value,'','htm','Définition','toolbar=0,location=0,directories=0,status=1,scrollbars=1,resizable=1,copyhistory=0,menuBar=0,width=640,height=480')"></p>  
</FORM>

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
feer YAISSSE :)
 
ça marche merci à tous pour votre aide ;)
 
ça donne donc ça:
 
<FORM>  
<SELECT NAME="list">  
 <OPTION VALUE="th.htm">Th  
 <OPTION VALUE="http://www.forumaqua.fr.st">Gh
 <OPTION VALUE="th.htm">Charbon actif
</SELECT>  
<p align="left"><INPUT TYPE=BUTTON VALUE="Définition" onClick="window.open(this.form.list.options[this.form.list.selectedIndex].value,'','htm','Définition','toolbar=0,location=0,directories=0,status=1,scrollbars=1,resizable=1,copyhistory=0,menuBar=0,width=640,height=480')"></p>  
</FORM>
ethernal <FORM>  
<SELECT NAME="list">  
 <OPTION VALUE="th.htm">Th  
 <OPTION VALUE="http://www.forumaqua.fr.st">Gh
 <OPTION VALUE="th.htm">Charbon actif
</SELECT>  
<p align="left"><INPUT TYPE=BUTTON VALUE="Définition" onClick="window.open(this.form.list.options[this.form.list.selectedIndex].value,'','')"></p>  
</FORM>  
 
  :non: tu le mets dans les ' en rouge... tu as pas testé ???

 

[edtdd]--Message édité par ethernal--[/edtdd]

feer Merci ça marche avec le script modifié :)
 
maintenant j'aimerais bien que la page ouverte, s'affiche dans une page dépourvu des différents barres d'outils de Ie ou Netscape ... dans ce genre là --> ('htm','Définition','
;toolbar=0,location=0,directories=0,status=1,scrol
lbars=1,resizable=1,copyhistory=0,menuBar=0,width=
640,height=480');return(false) ...est-ce que c'est possible ?
 
je remet le script modifié:
 
<FORM>  
<SELECT NAME="list">  
 <OPTION VALUE="th.htm">Th  
 <OPTION VALUE="http://www.forumaqua.fr.st">Gh
 <OPTION VALUE="th.htm">Charbon actif
</SELECT>  
<p align="left"><INPUT TYPE=BUTTON VALUE="Définition" onClick="window.open(this.form.list.options[this.form.list.selectedIndex].value,'','')"></p>  
</FORM>
FLY LM Enlève les ' de :
 
window.open('this.form.list.options[this.form.list.selectedIndex].value','','')
 
->
 
window.open(this.form.list.options[this.form.list.selectedIndex].value,'','')

 

[edtdd]--Message édité par fly LM--[/edtdd]

feer ça marche po :( ... mais on ne doit pas en etre res loin.
 
la page externe s'ouvre bien, mais sans ouvrir le lien ou le site
 
merci de votre aide :)
ethernal <FORM>  
<SELECT NAME="list">  
  <OPTION VALUE="http://www.url.net">Gh  
  <OPTION VALUE="http://www.url2.com">TH  
</SELECT>  
<CENTER><INPUT TYPE=BUTTON VALUE="Définition" onClick="window.open('this.form.list.options[this.form.list.selectedIndex].value','','')"></CENTER>  
</FORM>  
 
je suis pas trop sûr avec les '
gizmo A mon avis, le problème n'est pas dans le select, mais dans la fonction onclick car tu indique comme destination top qui est ta fenetre courante. Il faudrait indiquezr d'ouvrir une nouvelle fenetre la, mais je connais pas assez le js pour t'aider plus.
feer Je souhaiterais faire un menu déroulant comme l'exemple ci-dessous, mais avec une contrainte, c'est quand cliquant sur le bouton action (définition en l'occurence) cela ouvre une seconde fenetre du browser(sans toutes les barres de menu)
 
<FORM>
<SELECT NAME="list">
   <OPTION VALUE="je place mon lien ici...mais sous quelle forme?">Gh
   <OPTION VALUE="">TH
   
</SELECT>
<BR><BR><BR>
<CENTER><INPUT TYPE=BUTTON VALUE="Définition" onClick="top.location.href=this.form.list.options[this.form.list.selectedIndex].value"></CENTER>
</FORM>
 
merci  :hello:

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)