IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

HTML Discussion :

menu déroulant et iframe


Sujet :

HTML

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre émérite Avatar de FraK
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2005
    Messages
    828
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Juin 2005
    Messages : 828
    Par défaut menu déroulant et iframe
    Hello
    je vous pose mon petit problème
    en fait
    j'ai mon menu déroulant fait sous dhtml menu builder
    et mon iframe
    quand je clique sur un sous lien du menu, j aimerai qu'il s'ouvre dans la frame
    mais je vois pas du tout comment faire :/

    je vous met les 2 pages nécessaires

    index.html
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Document sans nom</title>
    </head>
     
     
    <body bgcolor="#FFFFFF" leftmargin="0" marginwidth="0" marginheight="0">
    <!-- ImageReady Slices (test.psd) -->
    <table width="875" border="0" cellpadding="0" cellspacing="0">
     
    </table>
     
    <table width="871" height="139" border="0" align="center" cellpadding="0" cellspacing="0" >
      <tr>
        <td height="64" valign="top">&nbsp;</td>
        <td width="199" height="139" rowspan="2" cellpadding="0" cellspacing="0"><img src="images/postit.png" width="199" height="139" /></td>
      </tr>
     
     
      <tr>
        <td height="75" background="images/fond.png" border="0" cellpadding="0" cellspacing="0"><img src="images/logo.png" width="344" height="75" /></td>
      </tr>
    </table>
    <table width="871" border="0" align="center" cellpadding="0" cellspacing="0" id="Tableau_01">
      <tr>
     
      </tr>
      <tr>
        <td><script type="text/javascript" src="./menu_scr.js">
    </script>
            <table style="line-height:0px" cellpadding='0' cellspacing='0'>
              <tr>
                <td><img id="lm1tlm0" src="./menu_m1_b.png" alt="" /></td>
                <td><a id="m1tlm0a" href="javascript:void(0);" onMouseOver="exM(m1,'m1mn1','m1tlm0',event);chgBg(m1,'m1tlm0',3)" onMouseOut="coM(m1,'m1mn1','m1tlm0');chgBg(m1,'m1tlm0',0)"><img style="border-style:none" id="m1tlm0" src="./menu_m1_i0.png" alt="" /></a></td>
                <td><img id="lm1tlm1" src="./menu_m1_s.png" alt="" /></td>
                <td><a id="m1tlm1a" href="javascript:void(0);" onMouseOver="exM(m1,'m1mn2','m1tlm1',event);chgBg(m1,'m1tlm1',3)" onMouseOut="coM(m1,'m1mn2','m1tlm1');chgBg(m1,'m1tlm1',0)"><img style="border-style:none" id="m1tlm1" src="./menu_m1_i1.png" alt="" /></a></td>
                <td><img id="lm1tlm2" src="./menu_m1_s.png" alt="" /></td>
                <td><a id="m1tlm2a" href="javascript:void(0);" onMouseOver="exM(m1,'m1mn3','m1tlm2',event);chgBg(m1,'m1tlm2',3)" onMouseOut="coM(m1,'m1mn3','m1tlm2');chgBg(m1,'m1tlm2',0)"><img style="border-style:none" id="m1tlm2" src="./menu_m1_i2.png" alt="" /></a></td>
                <td><img id="lm1tlm3" src="./menu_m1_s.png" alt="" /></td>
                <td><a id="m1tlm3a" href="javascript:void(0);" onMouseOver="exM(m1,'m1mn4','m1tlm3',event);chgBg(m1,'m1tlm3',3)" onMouseOut="coM(m1,'m1mn4','m1tlm3');chgBg(m1,'m1tlm3',0)"><img style="border-style:none" id="m1tlm3" src="./menu_m1_i3.png" alt="" /></a></td>
                <td><img id="lm1tlm4" src="./menu_m1_s.png" alt="" /></td>
                <td><a id="m1tlm4a" href="javascript:void(0);" onMouseOver="exM(m1,'m1mn5','m1tlm4',event);chgBg(m1,'m1tlm4',3)" onMouseOut="coM(m1,'m1mn5','m1tlm4');chgBg(m1,'m1tlm4',0)"><img style="border-style:none" id="m1tlm4" src="./menu_m1_i4.png" alt="" /></a></td>
                <td><img id="lm1tlm5" src="./menu_m1_s.png" alt="" /></td>
                <td><a id="m1tlm5a" href="javascript:void(0);" onMouseOver="exM(m1,'m1mn6','m1tlm5',event);chgBg(m1,'m1tlm5',3)" onMouseOut="coM(m1,'m1mn6','m1tlm5');chgBg(m1,'m1tlm5',0)"><img style="border-style:none" id="m1tlm5" src="./menu_m1_i5.png" alt="" /></a></td>
                <td><img id="lm1tlm6" src="./menu_m1_s.png" alt="" /></td>
                <td><a id="m1tlm6a" href="javascript:void(0);" onMouseOver="exM(m1,'m1mn7','m1tlm6',event);chgBg(m1,'m1tlm6',3)" onMouseOut="coM(m1,'m1mn7','m1tlm6');chgBg(m1,'m1tlm6',0)"><img style="border-style:none" id="m1tlm6" src="./menu_m1_i6.png" alt="" /></a></td>
                <td><img id="lm1tlm7" src="./menu_m1_e.png" alt="" /></td>
              </tr>
            </table>
      </tr>
      <tr> </tr>
    </table>
    <table width="871" height="420" border="0" align="center" cellpadding="0" cellspacing="0" background="images/grandfond.png">
      <tr>
        <td height="10" colspan="3">&nbsp;</td>
      </tr>
      <tr>
        <td width="10">&nbsp;</td>
        <td height="400" background="images/frame.png" bgcolor="#FFFFFF"><iframe name="frame" id="frame1" scrolling="no" src="accueil.html" border=0 frameborder=0 height=400 width=851 allowtransparency="true"></iframe></td>
        <td width="10">&nbsp;</td>
      </tr>
      <tr>
        <td height="10" colspan="3">&nbsp;</td>
      </tr>
    </table>
    </body>
    </html>
    menu_scr.js
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    var ver='4.0.3D'
    var m1=new Object
    m1.name='m1'
    m1.fnm='menu_m1'
    if(!window.lastm||window.lastm<1)lastm=1
    m1.v17=null
    m1.v17Timeout=''
    var maxZ=1000
    m1.v18
    m1.targetFrame
    var docLoaded=false
    m1.bIncBorder=true
    m1.v29=null
    m1.v29Str=''
    m1.v55=50
    m1.scrollStep=10
    m1.fadingSteps=8
    m1.itemOverDelay=0
    m1.transTLO=0
    m1.fixSB=0
    m1.v62=0
    m1.v21="."
    m1.maxlev=3
    m1.v22=0
    m1.sepH=10
    m1.bHlNL=1
    m1.showA=1
    m1.bVarWidth=0
    m1.bShowDel=0
    m1.scrDel=0
    m1.v23=160
    m1.levelOffset=20
    m1.bord=1
    m1.vertSpace=4
    m1.sep=0
    m1.v19=false
    m1.bkv=0
    m1.rev=0
    m1.shs=4
    m1.shc='#C0C0C0'
    m1.xOff=0
    m1.yOff=0
    m1.xSOff=0
    m1.ySOff=2
    m1.v20=false
    m1.cntFrame=""
    m1.menuFrame=""
    m1.v24=""
    m1.mout=true
    m1.iconSize=8
    m1.closeDelay=500
    m1.tlmOrigBg="#8CA2B4"
    m1.tlmOrigCol="White"
    m1.v25=true
    m1.v52=true
    m1.v60=0
    m1.v11=true
    m1.bord=0
    m1.v10=8
    m1.ppLeftPad=2
    m1.v54=0
    m1.v01=2
    m1.tlmHlBg="#C8D3DD"
    m1.tlmHlCol="White"
    m1.borderCol="Black"
    m1.menuHorizontal=true
    m1.scrollHeight=6
    m1.attr=new Array("12px",false,false,"White","#8CA2B4","Black","Verdana,Arial,Helvetica","#C8D3DD","White","#8CA2B4")
    m1mn1=new Array
    (
    "Easyscreen","#",0,"",""
    ,"**** L","#",1,"",""
    ,"**** S","#",0,"",""
    ,"**** M","#",0,"",""
    ,"**** SM","#",1,"",""
    ,"**** ZS","#",0,"",""
    ,"Roll-Up","#",0,"",""
    ,"Stores","#",0,"",""
    )
    m1mn1_2=new Array
    (
    "PEL1","#",0,"",""
    ,"PEL2","#",0,"",""
    ,"PEL3","#",0,"",""
    ,"PEL4","#",0,"",""
    ,"PEL5","#",0,"",""
    )
    m1mn1_5=new Array
    (
    "SM1","#",0,"",""
    ,"SM2","#",0,"",""
    ,"SM3","#",0,"",""
    ,"SM4","#",0,"",""
    ,"SM3T","#",0,"",""
    ,"SM4T","#",0,"",""
    )
    m1mn2=new Array
    (
    "Drapeaux","#",1,"",""
    ,"Stop Trottoir","#",0,"",""
    ,"Drapeaux Pied à eau","#",1,"",""
    ,"Stands Exterieurs","#",0,"",""
    )
    m1mn2_1=new Array
    (
    "Bowhead","#",1,"",""
    ,"Flybeach","#",1,"",""
    ,"Geant","#",1,"",""
    ,"Topfly","#",1,"",""
    )
    m1mn2_1_1=new Array
    (
    "BH1","#",0,"",""
    ,"BH2","#",0,"",""
    ,"BH3","#",0,"",""
    ,"BH4","#",0,"",""
    )
    m1mn2_1_2=new Array
    (
    "DR160","#",0,"",""
    ,"DR220","#",0,"",""
    ,"DR340","#",0,"",""
    ,"DR440","#",0,"",""
    )
    m1mn2_1_3=new Array
    (
    "DG","#",0,"",""
    ,"DGT","#",0,"",""
    )
    m1mn2_1_4=new Array
    (
    "TOP170","#",0,"",""
    ,"TOP270","#",0,"",""
    ,"TOP370","#",0,"",""
    )
    m1mn2_3=new Array
    (
    "DRAP1","#",0,"",""
    ,"DRAP2","#",0,"",""
    )
    m1mn3=new Array
    (
    "Comptoirs","#",1,"",""
    ,"Stands Parapluies","#",1,"",""
    ,"Stands Horizontaux","#",0,"",""
    ,"Supports d'Affiches","#",0,"",""
    )
    m1mn3_1=new Array
    (
    "COMPT","#",0,"",""
    ,"POPC","#",0,"",""
    )
    m1mn3_2=new Array
    (
    "POP 1x3","#",0,"",""
    ,"POP 2x3","#",0,"",""
    ,"POP 3x3","#",0,"",""
    ,"POP 4x3","#",0,"",""
    ,"POPT","#",0,"",""
    )
    m1mn4=new Array
    (
    "Classiques","#",1,"",""
    ,"Lumineux","#",1,"",""
    ,"Porte Affiches","#",0,"",""
    ,"T Stand Double","#",0,"",""
    )
    m1mn4_1=new Array
    (
    "PL60","#",0,"",""
    ,"PL90","#",0,"",""
    ,"PL100","#",0,"",""
    ,"SL","#",0,"",""
    ,"T60","#",0,"",""
    ,"T80","#",0,"",""
    ,"X60","#",0,"",""
    ,"X100","#",0,"",""
    )
    m1mn4_2=new Array
    (
    "TF","#",0,"",""
    ,"TP","#",0,"",""
    ,"A4","#",0,"",""
    )
    m1mn5=new Array
    (
    "Porte Documents","#",1,"",""
    ,"Porte Structures","#",0,"",""
    )
    m1mn5_1=new Array
    (
    "DOC","#",0,"",""
    ,"DOCT","#",0,"",""
    ,"PDA3","#",0,"",""
    ,"PDA4","#",0,"",""
    )
    m1mn6=new Array
    (
    "Stylo","#",0,"",""
    ,"Sac à Dos","#",0,"",""
    )
    m1mn7=new Array
    (
    "Contact","#",0,"",""
    ,"Tarifs","#",0,"",""
    ,"Transfert de fichiers","#",0,"",""
    ,"Galleries","#",0,"",""
    ,"Rappel Gratuit","#",0,"",""
    ,"Devis","#",0,"",""
    ,"RIB","#",0,"",""
    ,"Carte Bancaire","#",0,"",""
    ,"Ajoutez aux Favoris","#",0,"",""
    )
    absPath=""
    if(m1.v19&&!m1.v20){
    if(window.location.href.lastIndexOf("\\")>window.location.href.lastIndexOf("/")) {sepCh = "\\" ;} else {sepCh = "/" ;}
    absPath=window.location.href.substring(0,window.location.href.lastIndexOf(sepCh)+1)}
    m1.v02=m1.v23
    var stp="<img id="
    var stq=" width='1' height='1' style='display:none' src='./menu_m1"
    document.write(stp+"'m1menubg4'"+stq+"bg4.png'>")
    document.write(stp+"'m1menubg5'"+stq+"bg5.png'>")
    document.write(stp+"'m1menubg6'"+stq+"bg6.png'>")
    document.write(stp+"'m1_bh'"+stq+"_bh.png'>")
    document.write(stp+"'m1_b'"+stq+"_b.png'>")
    document.write(stp+"'m1_eh'"+stq+"_eh.png'>")
    document.write(stp+"'m1_e'"+stq+"_e.png'>")
    document.write(stp+"'m1_slh'"+stq+"_slh.png'>")
    document.write(stp+"'m1_srh'"+stq+"_srh.png'>")
    document.write(stp+"'m1_s'"+stq+"_s.png'>")
    document.write(stp+"'pre0m1tlm0'"+stq+"_i0.png'>")
    document.write(stp+"'pre1m1tlm0'"+stq+"_i0h.png'>")
    document.write(stp+"'pre0m1tlm1'"+stq+"_i1.png'>")
    document.write(stp+"'pre1m1tlm1'"+stq+"_i1h.png'>")
    document.write(stp+"'pre0m1tlm2'"+stq+"_i2.png'>")
    document.write(stp+"'pre1m1tlm2'"+stq+"_i2h.png'>")
    document.write(stp+"'pre0m1tlm3'"+stq+"_i3.png'>")
    document.write(stp+"'pre1m1tlm3'"+stq+"_i3h.png'>")
    document.write(stp+"'pre0m1tlm4'"+stq+"_i4.png'>")
    document.write(stp+"'pre1m1tlm4'"+stq+"_i4h.png'>")
    document.write(stp+"'pre0m1tlm5'"+stq+"_i5.png'>")
    document.write(stp+"'pre1m1tlm5'"+stq+"_i5h.png'>")
    document.write(stp+"'pre0m1tlm6'"+stq+"_i6.png'>")
    document.write(stp+"'pre1m1tlm6'"+stq+"_i6h.png'>")
    document.write("<style type='text/css'>\n.m1CL0,.m1CL0:link{text-decoration:none;color:White; }\n.m1CL0:visited{color:White}\n.m1mit{padding-left:6px;padding-right:6px;color:White; font-family:Verdana,Arial,Helvetica; font-size:12px; }\n"+"</"+"style>")
    document.write("<script type='text/javascript' src='./menu_dom.js'></"+"script>")
    merci d'avance
    Infographiste / Webdesigner / Intégrateur (un peu Développeur aussi si on peut dire ;p)
    On me trouve souvent dans la partie Hardware, Systèmes et Logiciels ou encore Webmasters - Développement Web et surtout dans le forum Wordpress.
    »» Mon Blog Musical (drumnbass)

  2. #2
    Membre éprouvé
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    145
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 145
    Par défaut
    Je ne vois aucun lien dans ton script DHTML.

    Je ne connais pas "dhtml menu builder" mais au moment où tu bosses dessus, avant de le générer, tu dois pouvoir mettre les liens et les target (cible où tu veux que ta page s'ouvre).

    Pour la target, mets le nom de ta Iframe. L'id et le name de ta iframe doivent être les mêmes, soit "frame" ou "frame1" (que je préfèrerais).

  3. #3
    Membre émérite Avatar de FraK
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2005
    Messages
    828
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Juin 2005
    Messages : 828
    Par défaut
    erf ^^
    les liens sont les petits "#" dans la page (lien vide par défaut, meme en html ...)
    du coup, apres avoir mailé le staff du logiciel, je résoud le problème par la meme occasion
    je cite :
    The version of DHTML menu builder that you have is a demo, so, you can't make hyperlinks (you can in full version)
    ...
    ils auraient pu le marquer ou prévenir dans le logiciel :'(
    Infographiste / Webdesigner / Intégrateur (un peu Développeur aussi si on peut dire ;p)
    On me trouve souvent dans la partie Hardware, Systèmes et Logiciels ou encore Webmasters - Développement Web et surtout dans le forum Wordpress.
    »» Mon Blog Musical (drumnbass)

  4. #4
    Membre éprouvé
    Profil pro
    Inscrit en
    Novembre 2005
    Messages
    145
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2005
    Messages : 145
    Par défaut
    y'a pu qu'à le faire à la mano

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. menu déroulant CSS + IFRAME
    Par Invité dans le forum Mise en page CSS
    Réponses: 5
    Dernier message: 20/05/2009, 13h19
  2. Asp/Php + iframe/menu déroulant
    Par taly dans le forum ASP
    Réponses: 3
    Dernier message: 20/07/2006, 16h03
  3. [mise à jour d'une iframe à partir d'un menu déroulant]
    Par Lady_jade dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 21/10/2005, 11h50
  4. Menu déroulant valeur par défaut
    Par Gourouni dans le forum ASP
    Réponses: 11
    Dernier message: 06/12/2004, 16h31
  5. Menu déroulant suite au passage sur un TMenuItem
    Par James_ dans le forum C++Builder
    Réponses: 2
    Dernier message: 05/05/2004, 14h31

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo