HELP Prob code HTML

Fermé
tanguy - 26 mars 2004 à 13:32
 tmin - 27 mars 2004 à 12:40
Salut à tous,

Voilà je bloque sur une page html.

J'aimerais rediriger l'action des sous menu ( description des techniques, moyens technique, références) non pas sur le cadre supérieur haut de ma page comme c'est le cas à présent mais dans la mainframe.

Je met le code de ma page ci dessous si quelqu'un pouvais me donner un petit coup de main ca serai sympas.

Merci d'avance à tous.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Document sans nom</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE=JavaScript>
//www.a1javascripts.com)
menu=new Array()
menu[0]=new Array()
menu[1]=new Array()
menu[2]=new Array()
menu[3]=new Array()
//Chaque ligne de chaque menu est paramétrée ci-dessous ("titre","URL")
menu[0][0]=new Option("Description des techniques","construction.htm")
menu[0][1]=new Option("Moyens techniques","construction.htm")
menu[0][2]=new Option("Choix des références","construction.htm")

menu[1][0]=new Option("Description des techniques","construction.htm")
menu[1][1]=new Option("Moyens techniques","construction.htm")
menu[1][2]=new Option("Choix des références","construction.htm")

menu[2][0]=new Option("Description des techniques","construction.htm")
menu[2][1]=new Option("Moyens techniques","construction.htm")
menu[2][2]=new Option("Choix des références","construction.htm")

menu[3][0]=new Option("Description des techniques","construction.htm")
menu[3][1]=new Option("Moyens techniques","construction.htm")
menu[3][2]=new Option("Choix des références","construction.htm")

function fillList(z)

for (a=document.f.s.options.length-1;a>0;a--){document.f.s.options[a]=null}
for (a=0;a<menu[z].length;a++){document.f.s.options[a]=new
Option(menu[z][a].text,menu[z][a].value)
}
document.f.s.selectedIndex=0
}
</SCRIPT>
<style type="text/css">
<!--
body {
background-color: #66CCFF;
}
-->
</style></head>

<body>
<FORM NAME=f>
<A HREF=Javascript:fillList(0)><IMG SRC=gc.jpg alt=Menu1 width=220 height=110 border=0></A>
<A HREF=Javascript:fillList(1)><IMG SRC=btp.jpg alt=Menu2 width=220 height=110 border=0></A>
<A HREF=Javascript:fillList(2)><IMG SRC=energie.jpg alt=Menu3 width=220 height=110 border=0></A>
<A HREF=Javascript:fillList(3)><IMG SRC=environnement.jpg alt=Menu3 width=220 height=110 border=0></A>
<BR>
<select name=s size="1" style="width:200">
<option value="#">Cliquer sur le métier qui vous interesses.

</select>
<INPUT TYPE=button onclick="location=document.f.s.options[document.f.s.selectedIndex].value" VALUE="Accès">
</FORM>
</body>
</html>
A voir également:

1 réponse

<A HREF=Javascript:fillList(0)><IMG SRC=gc.jpg alt=Menu1 width=220 height=110 border=0></A>
<A HREF=Javascript:fillList(1)><IMG SRC=btp.jpg alt=Menu2 width=220 height=110 border=0></A>
<A HREF=Javascript:fillList(2)><IMG SRC=energie.jpg alt=Menu3 width=220 height=110 border=0></A>
<A HREF=Javascript:fillList(3)><IMG SRC=environnement.jpg alt=Menu3 width=220 height=110 border=0></A>


ta essayer d'utiliser l'attribut targer dans des balise <A>???

<A HREF=Javascript:fillList(0) targer="mainframe"><IMG SRC=gc.jpg alt=Menu1 width=220 height=110 border=0></A>
<A HREF=Javascript:fillList(1) targer="mainframe"><IMG SRC=btp.jpg alt=Menu2 width=220 height=110 border=0></A>
<A HREF=Javascript:fillList(2) targer="mainframe"><IMG SRC=energie.jpg alt=Menu3 width=220 height=110 border=0></A>
<A HREF=Javascript:fillList(3) targer="mainframe"><IMG SRC=environnement.jpg alt=Menu3 width=220 height=110 border=0></A>
0