Je n'arrive pas a affecter un lien sur les noeuds enfants dans l'objet "Tree".
Je vous mets le code pour que vous puissiez voir.
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<script language="JavaScript">
var R111="http://www.toto.fr/index.htm";
var R211="http://www.toto.fr/Default2.htm";
var R212="http://www.toto.fr/Default.htm";
var R211="http://www.toto.fr/index2.htm";
function hyperlien(go)
{
parent.location=Menu.SelectedItem.Key;
}
</script>
</HEAD>
<BODY >
<P>
<OBJECT id=Menu
style="BORDER-TOP-WIDTH: 2px; BORDER-LEFT-WIDTH: 2px; BORDER-LEFT-COLOR: #000099; RIGHT: 0px; BORDER-BOTTOM-WIDTH: 2px; BORDER-BOTTOM-COLOR: #000099; MARGIN-LEFT: 0px; WIDTH: 200px; BORDER-TOP-COLOR: #000099; HEIGHT: 350px; BORDER-RIGHT-WIDTH: 2px; BORDER-RIGHT-COLOR: #000099"
classid=clsid:0713E8A2-850A-101B-AFC0-4210102A8DA7 width=200 height=350
VIEWASTEXT><PARAM NAME="_ExtentX" VALUE="5292"><PARAM NAME="_ExtentY" VALUE="9260"><PARAM NAME="_Version" VALUE="327682"><PARAM NAME="HideSelection" VALUE="1"><PARAM NAME="Indentation" VALUE="1005"><PARAM NAME="LabelEdit" VALUE="0"><PARAM NAME="LineStyle" VALUE="1"><PARAM NAME="PathSeparator" VALUE="\"><PARAM NAME="Sorted" VALUE="0"><PARAM NAME="Style" VALUE="7"><PARAM NAME="ImageList" VALUE=""><PARAM NAME="BorderStyle" VALUE="1"><PARAM NAME="Appearance" VALUE="0"><PARAM NAME="MousePointer" VALUE="0"><PARAM NAME="Enabled" VALUE="1"><PARAM NAME="OLEDragMode" VALUE="0"><PARAM NAME="OLEDropMode" VALUE="0"></OBJECT>
</P>
<script language="JavaScript">
Pt2 = Menu.Nodes.Add(null,4 ,"R1","Presentations" );
Pt2 = Menu.Nodes.Add("R1", 4,"R11","Offres" );
Menu.Nodes.Add("R11", 4,"R111","Argumentaires" );
Menu.Nodes.Add("R11", 4,"R112","E-mailings" );
Menu.Nodes.Add("R11", 4,"R113","Compétences/certifications" );
Menu.Nodes.Add("R11", 4,"R114","SLAconvention" );
Menu.Nodes.Add("R11", 4,"R115","Plans de services" );
Pt2 = Menu.Nodes.Add(null, 4,"R2","References clients" );
Pt2 = Menu.Nodes.Add("R2",4,"R21","Témoignages" );
Menu.Nodes.Add("R21", 4,"R211","Clients" );
Menu.Nodes.Add("R21", 4,"R212","Partenaires" );
Pt2 = Menu.Nodes.Add("R2", 4,"R22","Fiches References" );
Pt2 = Menu.Nodes.Add(null, 4,"R3","Catalogue prix" );
Pt2 = Menu.Nodes.Add(null, 4,"R4","Partenariats" );
Pt2 = Menu.Nodes.Add(null, 4,"R5","BDimages" );
onclick="hyperlien(Menu.SelectedItem.Key)";
</script>
<input type="button" onclick="hyperlien(Menu.SelectedItem.Key);">
</BODY>
</HTML>
QQun en a déjà réalisé?
[edit]--Message édité par LeMegaBlaireau--[/edit]