Ouvrir une page dans un cadre donné...

Signaler
Messages postés
2
Date d'inscription
lundi 12 novembre 2007
Statut
Membre
Dernière intervention
31 janvier 2008
-
Messages postés
2
Date d'inscription
lundi 12 novembre 2007
Statut
Membre
Dernière intervention
31 janvier 2008
-
Bonjour,

Pour un site Internet à 4 cadres : haut, gauche, bas et centre.

Le menu est dans le cadre du bas et je ne parviens pas à ouvrir les pages dans le cadre central.

La commande à été générée avec le logiciel : Sothink DHTML, dont voici le code :

<script type="text/javascript">
<!--
stm_bm(["menu6b59",800,"","blank.gif",0,"","",0,0,200,0,1000,1,0,0,"","",0,0,1,2,"default","hand",""],this);
stm_bp("p0",[0,4,0,0,0,0,18,0,100,"",-2,"",-2,50,0,0,"#799BD8","transparent","tclback.gif",3,0,0,"#000000"]);
stm_ai("p0i0",[0,"Autres Rubriques","","",-1,-1,0,"fdl_fr/centre.html","_self","","","","tclarrow.gif",18,7,0,"","",0,0,0,2,1,"#FFFFF7",1,"#B5BED6",1,"","tclbackup.gif",3,3,0,0,"#FFFFF7","#000000","#FFFF00","#FFFF00","bold 14pt Graphite Std","bold 14pt Graphite Std",0,0],40,17);
stm_bpx("p1","p0",[0,1,0,0,0,0,18,0,100,"",-2,"",-2,50,0,0,"#799BD8","#EEEEEE","tclbackmove.gif"]);
stm_aix("p1i0","p0i0",[0,"","","",-1,-1,0,"","_self","","","","tclarrowblack.gif",18,7,0,"","",0,0,0,0,1,"#FFFFF7",1,"#B5BED6",1,"","",3,3,0,0,"#FFFFF7","#000000","#336699","#000000","12pt Arial","12pt Arial"],112,30);
stm_aix("p1i1","p1i0",[0,"Lettres","","",-1,-1,0,"rubriques/lettres/page.html"],112,30);
stm_aix("p1i2","p1i0",[0,"Contact","","",-1,-1,0,"rubriques/contact/page.html"],112,30);
stm_aix("p1i3","p1i2",[0,"Galerie Photos"],160,30);
stm_aix("p1i4","p1i0",[0,"Archives","","",-1,-1,0,"rubriques/archives/page.html"],112,30);
stm_aix("p1i5","p1i0",[0,"------------","","",-1,-1,0,"centre.html"],148,30);
stm_aix("p1i6","p1i5",[],148,30);
stm_aix("p1i7","p1i5",[],100,30);
stm_ep();
stm_ep();
stm_em();
//-->
</script>

J'ai essayé plusieurs possibilités, "mainframe", "frame"... sans succès !

Merci de m'aider.
Cordialement.

2 réponses

Messages postés
1251
Date d'inscription
mercredi 7 août 2002
Statut
Modérateur
Dernière intervention
10 avril 2013

Bonjour,

ne sachant pas ce qui se cache derrière ton code (ce que tu nous montres n'est que la partie paramètre du menu), tu devrais regarder au niveau de la doc de ce menu s'il existe une propriété "Target". Si elle existe, c'est là que tu devras y mettre la valeur du cadre centrale.

Alors que j'écris ces mots, je constate que tu as un de tes menus avec comme valeur "_self", à mon avis c'est là la propriété "Target".
Donc sur base de cette constatation, ceci :
stm_aix("p1i0","p0i0",[0,"","","",-1,-1,0,"","_self","","","","tclarrowblack.gif",18,7,0,"","",0,0,0,0,1,"#FFFFF7",1,"#B5BED6",1,"","",3,3,0,0,"#FFFFF7","#000000","#336699","#000000","12pt Arial","12pt Arial"],112,30);

deviens :
stm_aix("p1i0","p0i0",[0,"","","",-1,-1,0,"","central","","","","tclarrowblack.gif",18,7,0,"","",0,0,0,0,1,"#FFFFF7",1,"#B5BED6",1,"","",3,3,0,0,"#FFFFF7","#000000","#336699","#000000","12pt Arial","12pt Arial"],112,30);

En admettant que ta frame ai pour ID "central".

Nickadele
----------------------------------------------
non, ma belle ne s'appel pas Adèle
Messages postés
2
Date d'inscription
lundi 12 novembre 2007
Statut
Membre
Dernière intervention
31 janvier 2008

Bonsoir,

Avec retard, merci de votre réponse.
Cela ne résout pas mon problème, aussi, je reste à l'ancienne version de ce maudit menu ! Moins esthétique mais qui fonctionne.

Sur le site du Zéro, il m'a été répondu que les menus en DHTML n'étaient pas compatibles avec les frames, alors...

Cordialement.