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

JavaScript Discussion :

croiser 2js de manière dynamique


Sujet :

JavaScript

  1. #1
    Membre éclairé
    Inscrit en
    Septembre 2004
    Messages
    387
    Détails du profil
    Informations forums :
    Inscription : Septembre 2004
    Messages : 387
    Par défaut croiser 2js de manière dynamique
    Bonjour à tous,

    Voilà mon problème:
    J'utilise un javascript repomper sur seloger.com, qui permet d'afficher un image, et en dessous 5 petite vignette correspondant au autres images du produit.
    Lorsque l'on clique sur un des vignettes l'images principale 1 se modifit au profit de l'image "vignette".
    dont voici le code

    Donc dans mon product_info.php, j'ai mis:
    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
    <?php
    $img = $product_info['products_image'] ;
    $img1 = $product_info['products_subimage1'];
    $img2 = $product_info['products_subimage2'];
    $img3 = $product_info['products_subimage3'];
    $img4 = $product_info['products_subimage4'];
    $img5 = $product_info['products_subimage5'];
    $img6 = $product_info['products_subimage6'];
     
     
    echo "<a name='grand'><img src='images/$img' vspace='10' hspace='5' id='big' alt='$products_alt' title='$products_alt' style='border:1px solid black' width='200'></a><BR>";
    ?>
     
    <a href="java script:changeImgAnnonce('images/<?php echo $img ?> ','1');">
    <IMG alt="<?php echo $products_alt .' 1';?>" title="<?php echo $products_alt .' 1';?>" src="images/<?php echo $img ?>" style="border:1px solid black" width="40"></a>
    <?php if ( $img1 <> "")confused.gif>
    <a href="java script:changeImgAnnonce('images/<?php echo $img1 ?> ','2');">
    <IMG alt="<?php echo $products_alt .' 2';?>" title="<?php echo $products_alt .' 2';?>" src="images/<?php echo $img1 ?>" style="border:1px solid black" width="40"></a>
    <?php endif ?>
    <?php if ( $img2 <> "")confused.gif>
    <a href="java script:changeImgAnnonce('images/<?php echo $img2 ?> ','3');">
    <IMG alt="<?php echo $products_alt .' 2';?>" title="<?php echo $products_alt .' 3';?>" src="images/<?php echo $img2 ?>" style="border:1px solid black" width="40"></a>
    <?php endif ?>
    <?php if ( $img3 <> "")confused.gif>
    <a href="java script:changeImgAnnonce('images/<?php echo $img3 ?> ','4');">
    <IMG alt="<?php echo $products_alt .' 3';?>" title="<?php echo $products_alt .' 4';?>" src="images/<?php echo $img3 ?>" style="border:1px solid black" width="40"></a>
    <?php endif ?>
    <?php if ( $img4 <> "")confused.gif>
    <a href="java script:changeImgAnnonce('images/<?php echo $img4 ?> ','5');">
    <IMG alt="<?php echo $products_alt .' 4';?>" title="<?php echo $products_alt .' 5';?>" src="images/<?php echo $img4 ?>" style="border:1px solid black" width="40"></a>
    <?php endif ?>
    <?php if ( $img5 <> "")confused.gif>
    <a href="java script:changeImgAnnonce('images/<?php echo $img5 ?> ','6');">
    <IMG alt="<?php echo $products_alt .' 5';?>" title="<?php echo $products_alt .' 6';?>" src="images/<?php echo $img5 ?>" style="border:1px solid black" width="40"></a>
    <?php endif ?>
    <?php if ( $img6 <> "")confused.gif>
    <a href="java script:changeImgAnnonce('images/<?php echo $img6 ?> ','7');">
    <IMG alt="<?php echo $products_alt .' 6';?>" title="<?php echo $products_alt .' 7';?>" src="images/<?php echo $img6 ?>" style="border:1px solid black" width="40"></a>
    <?php endif ?>
     
    <script LANGUAGE="JavaScript" TYPE="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
     
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
     
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
     
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    MM_preloadImages('images/<?php echo $img;?>', 'images/<?php echo $img1;?>', 'images/<?php echo $img2;?>','images/<?php echo $img3;?>','images/<?php echo $img4;?>','images/<?php echo $img5;?>','images/<?php echo $img6;?>');
    function changeImgAnnonce(srcimg,idimg){
    var img = document.getElementById('big');
    var legende_dest = document.getElementById('legende_ph_base');
    var legende_source = document.getElementById('legende_ph_th_'+idimg);
    img.src = srcimg;
    if( legende_dest && legende_source){
    legende_dest.innerHTML = legende_source.innerHTML;
    }
    }
    // -->
    </SCRIPT>
    J'aurais aimé mettre une lightbox afin que lorsque l'on click sur l'image principale, elle s'affiche en plus grand dans une lightbox

    J'ai donc insérer mes fichier, les liens nécessaire dans le header pour charger les fichier js.
    ainsi que remplacer:
    Code
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    echo "<a name='grand' href='images/$img' title='$products_alt'><img src='images/$img' vspace='10' hspace='5' id='big' alt='$products_alt' title='$products_alt' style='border:1px solid black' width='200'></a><BR>";
    par:
    Code
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    echo "<div id='gallery'><a name='grand' href='images/$img' title='$products_alt'><img src='images/$img' vspace='10' hspace='5' id='big' alt='$products_alt' title='$products_alt' style='border:1px solid black' width='200'></a></div><BR>";

    Lorsque j'ouvre la fiche prod. et que je click sur l'image principale, nikel, la lightbox s'ouvre.
    Le problème: c'est que si je click sur la vignettes "2", l'image principale passe bien à l'image "2", mais quand je click alors sur l'image, la lightbox affiche l'image "1".

    En clair, le javascript n'etant pas dynamique, il reste toujours sur la même image?
    Comment pourrais-je faire.

    Merci à vous

  2. #2
    Membre éclairé
    Inscrit en
    Septembre 2004
    Messages
    387
    Détails du profil
    Informations forums :
    Inscription : Septembre 2004
    Messages : 387
    Par défaut
    Après réflexion je me dis que le plus simple serais sans doute mettre un bouton zoom en dessous, et que ma fonction changeImgAnnonce modif le lien de cette image mais comment le faire?
    (Désolé je me débrouille en php, mais javascript....)

    donc j'ai:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    echo "<a name='grand' title='$products_alt'><img src='images/$img' vspace='10' hspace='5' id='big' alt='$products_alt' title='$products_alt' style='border:1px solid black' width='200'></a><BR>";
    echo "<div id='gallery'><a name='grand' href='images/zoom.gif' title='$products_alt' id='lien'><img src='images/zoom.gif' vspace='10' hspace='5' alt='$products_alt' title='$products_alt' style='border:1px solid black' width='70'></a></div><BR>";
    et
    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
      <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
      <!--
      function MM_preloadImages() { //v3.0
     
        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
     
          var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
     
          if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 
      }
      MM_preloadImages('images/<?php echo $img;?>', 'images/<?php echo $img1;?>', 'images/<?php echo $img2;?>','images/<?php echo $img3;?>','images/<?php echo $img4;?>','images/<?php echo $img5;?>','images/<?php echo $img6;?>');
      function changeImgProduit(srcimg,idimg){ 
       var img = document.getElementById('big');
       var legende_dest = document.getElementById('legende_ph_base');
       var legende_source = document.getElementById('legende_ph_th_'+idimg);
       img.src = srcimg;
    	if( legende_dest && legende_source){
        legende_dest.innerHTML = legende_source.innerHTML;
       }
     
      }
       // -->
      </SCRIPT>
    Donc que ma fonction changeimgAnnonce, modifi le lien de l'image id=lien.

    Si quelqu'un pouvais m'aidez je lui serais pleinement reconnaissant.

    Merci à vous

  3. #3
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Billets dans le blog
    20
    Par défaut
    Serait-il possible de voir le code html généré plutôt que le php ?
    Pas de question technique par MP !
    Tout le monde peut participer à developpez.com, vous avez une idée, contactez-moi !
    Mes formations video2brain : La formation complète sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
    Mon livre sur jQuery
    Module Firefox / Chrome d'intégration de JSFiddle et CodePen sur le forum

  4. #4
    Membre éclairé
    Inscrit en
    Septembre 2004
    Messages
    387
    Détails du profil
    Informations forums :
    Inscription : Septembre 2004
    Messages : 387
    Par défaut
    Et voici mon le code généré
    Merci à toi de te pencher sur mon problème
    J'ai mis la partit nous concernant en bleu

    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
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html dir="LTR" lang="fr">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Nom du site</title>
    <base href="http://xxx.xxx.xxx.xxx/catalog/">
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
    
    
        
        <!-- Arquivos utilizados pelo jQuery lightBox plugin -->
        <script type="text/javascript" src="jq/js/jquery.js"></script>
        <script type="text/javascript" src="jq/js/jquery.lightbox-0.5.js"></script>
    
        <link rel="stylesheet" type="text/css" href="jq/css/jquery.lightbox-0.5.css" media="screen" />
        <!-- / fim dos arquivos utilizados pelo jQuery lightBox plugin -->
        
        <!-- Ativando o jQuery lightBox plugin -->
        <script type="text/javascript">
        $(function() {
            $('#gallery a').lightBox();
        });
        </script>
       	<style type="text/css">
    	/* jQuery lightBox plugin - Gallery style */
    	#gallery {
    		background-color: #ffff;
    		}
    	#gallery ul { list-style: none; }
    	#gallery ul li { display: inline; }
    	#gallery ul img {
    		border: 5px solid #3e3e3e;
    		border-width: 5px 5px 20px;
    	}
    	#gallery ul a:hover img {
    		border: 5px solid #fff;
    		border-width: 5px 5px 20px;
    		color: #fff;
    	}
    	#gallery ul a:hover { color: #fff; }
    	</style>
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
    <!-- header //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr class="header" width="100%" >
    	<td width="1" height="100%" bgcolor="#000000">
    		<img src="images/pixel_trans.gif" border="0" width="1" height="20">
    	</td>
    </tr>
    <tr class="header" width="100%" >
    	<td width="10" bgcolor="#000000">
    		<img src="images/pixel_trans.gif" border="0" width="10" height="1">
    
    	</td>
    	<td valign="middle" align="left" width="800">
    		<a href="http://xxx.xxx.xxx.xxx/catalog/index.php"><img src="includes/languages/french/images/logo.gif" border="0" alt=" Logo" title=""></a>	</td>
    	</tr>
      <tr class="header" width="100%" >
    	<td width="1" height="100%" bgcolor="#000000">
    		<img src="images/pixel_trans.gif" border="0" width="1" height="20">
    	</td>
    
    </tr>
    </table>
    <table border="0" width="100%" height="30" cellspacing="0" cellpadding="1" align="middle" valign="middle">
    
      <tr class="headerNavigation">
        <td class="headerNavigation" width="366"  height="27" border="1" >    
    
    <a href="http://xxx.xxx.xxx.xxx" class="headerNavigation">Accueil</a> &raquo; <a href="http://xxx.xxx.xxx.xxx/catalog/index.php" class="headerNavigation">Catalogue</a> &raquo; <a href="http://xxx.xxx.xxx.xxx/catalog/zen-c-25.html" class="headerNavigation">Zen</a> &raquo; <a href="http://xxx.xxx.xxx.xxx/catalog/produit-p-28.html?cPath=25" class="headerNavigation">H1Bouddha en pierre</a></td>
    
        <td align="right" class="headerNavigation" valign="top" >
    
    <a href="surmesure.php"  class="headerNavigation">Commande sur-mesure</a>&nbsp;|&nbsp;
    
    <a href="http://xxx.xxx.xxx.xxx/catalog/contact_us.php" class="headerNavigation">Contactez-nous </a>&nbsp;|&nbsp;<a href="http://xxx.xxx.xxx.xxx/catalog/newsletters.php" 	class="headerNavigation">Newsletter</a>
    	&nbsp;|&nbsp;
    	<a href="http://xxx.xxx.xxx.xxx/catalog/account.php" class="headerNavigation">Mon compte</a> &nbsp;|&nbsp;
    
    
     <a href="http://xxx.xxx.xxx.xxx/catalog/produit-p-28.html?language=en&cPath=25"><img src="includes/languages//english/images/icon.gif" border="0" alt="en" title=" en "></a>&nbsp;  <a href="http://xxx.xxx.xxx.xxx/catalog/produit-p-28.html?currency=USD&cPath=25"><span class='money'>$</span></a>&nbsp;             </td>
    
    
    
        
      </tr>
    </table>
    <!-- header_eof //-->
    
    <!-- body //-->
    <table border="0" bordercolor="#BBBB00" width="100%" cellspacing="3" cellpadding="3">
    
      <tr>
        <td width="100" valign="top"><table border="0" width="100" cellspacing="0" cellpadding="8">
    <!-- left_navigation //-->
    <!-- categories //-->
              <tr>
                <td>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td height="10" class="infoBoxHeading"><img src="images/boxmod/cornertleft.gif" border="0" alt="" width="10" height="10"></td>
        <td width="100%" height="10" class="infoBoxHeading"><img src="images/boxmod/lt.gif" border="0" alt="" width="100%" height="10"></td>
    
        <td height="10" class="infoBoxHeading" nowrap><img src="images/boxmod/cornertright.gif" border="0" alt="" width="10" height="10"></td>
      </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxContents">
      <tr>
        <td height="100%" class="infoBoxHeading"><img src="images/boxmod/ll.gif" border="0" alt="" width="10" height="100%"></td>
        <td width="100%" height="10", class="boxText">Ambiances<BR>&nbsp;&nbsp;<a href="http://xxx.xxx.xxx.xxx/catalog/zen-c-25.html" class="black"><b>Zen</b></a><br>&nbsp;&nbsp;<a href="http://xxx.xxx.xxx.xxx/catalog/rtro-c-24.html" class="black">Rétro</a><br>&nbsp;&nbsp;<a href="http://xxx.xxx.xxx.xxx/catalog/design-c-2.html" class="black">Design</a><br>&nbsp;&nbsp;<a href="http://xxx.xxx.xxx.xxx/catalog/lounge-c-21.html" class="black">Lounge</a><br></td>
    
        <td height="100%" class="infoBoxHeading" nowrap><img src="images/boxmod/lr.gif" border="0" alt="" width="10" height="100%"></td>
      </tr>
    </table>
    </td>
      </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td height="10" class="infoBoxHeading"><img src="images/boxmod/cornerbleft.gif" border="0" alt="" width="10" height="10"></td>
        <td width="100%" height="10" class="infoBoxBottom"><img src="images/boxmod/lb.gif" border="0" alt="" width="100%" height="10"></td>
        <td height="10" class="infoBoxHeading" nowrap><img src="images/boxmod/cornerbright.gif" border="0" alt="" width="10" height="10"></td>
    
      </tr>
    </table>
                </td>
              </tr>
    <!-- categories_eof //-->
    <!-- search //-->
              <tr>
                <td>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td height="10" class="infoBoxHeading"><img src="images/boxmod/cornertleft.gif" border="0" alt="" width="10" height="10"></td>
    
        <td width="100%" height="10" class="infoBoxHeading"><img src="images/boxmod/lt.gif" border="0" alt="" width="100%" height="10"></td>
        <td height="10" class="infoBoxHeading" nowrap><img src="images/boxmod/cornertright.gif" border="0" alt="" width="10" height="10"></td>
      </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxContents">
      <tr>
        <td height="100%" class="infoBoxHeading"><img src="images/boxmod/ll.gif" border="0" alt="" width="10" height="100%"></td>
        <td align="center" width="100%" height="10", class="boxText"><span class="black">Paiement<BR>S&eacute;curis&eacute;</span><BR><a href="http://xxx.xxx.xxx.xxx/catalog/paiement.php"><img src="images/cle.gif" border="0" alt="SSL" title=" SSL "><br><br><img src="images/carte.gif" border="0" alt="cd" title=" cd "><br></a></td>
    
        <td height="100%" class="infoBoxHeading" nowrap><img src="images/boxmod/lr.gif" border="0" alt="" width="10" height="100%"></td>
      </tr>
    </table>
    </td>
      </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td height="10" class="infoBoxHeading"><img src="images/boxmod/cornerbleft.gif" border="0" alt="" width="10" height="10"></td>
        <td width="100%" height="10" class="infoBoxBottom"><img src="images/boxmod/lb.gif" border="0" alt="" width="100%" height="10"></td>
        <td height="10" class="infoBoxHeading" nowrap><img src="images/boxmod/cornerbright.gif" border="0" alt="" width="10" height="10"></td>
    
      </tr>
    </table>
                </td>
              </tr>
    <!-- search_eof //-->
    <!-- tell_a_friend //-->
              <tr>
                <td>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td height="10" class="infoBoxHeading"><img src="images/boxmod/cornertleft.gif" border="0" alt="" width="10" height="10"></td>
    
        <td width="100%" height="10" class="infoBoxHeading"><img src="images/boxmod/lt.gif" border="0" alt="" width="100%" height="10"></td>
        <td height="10" class="infoBoxHeading" nowrap><img src="images/boxmod/cornertright.gif" border="0" alt="" width="10" height="10"></td>
      </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxContents">
      <tr>
        <td height="100%" class="infoBoxHeading"><img src="images/boxmod/ll.gif" border="0" alt="" width="10" height="100%"></td>
        <td align="center" width="100%" height="10", class="boxText"><form name="tell_a_friend" action="http://xxx.xxx.xxx.xxx/catalog/tell_a_friend.php" method="get"><input type="text" name="to_email_address" size="10" maxlength="30" style="width: 70px">&nbsp;<input type="image" src="includes/languages/french/images/buttons/button_tell_a_friend.gif" border="0" alt="Faire conna&icirc;tre" title=" Faire conna&icirc;tre "><input type="hidden" name="products_id" value="28"><br>Envoyer &agrave; un ami(e).</form></td>
    
        <td height="100%" class="infoBoxHeading" nowrap><img src="images/boxmod/lr.gif" border="0" alt="" width="10" height="100%"></td>
      </tr>
    </table>
    </td>
      </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td height="10" class="infoBoxHeading"><img src="images/boxmod/cornerbleft.gif" border="0" alt="" width="10" height="10"></td>
        <td width="100%" height="10" class="infoBoxBottom"><img src="images/boxmod/lb.gif" border="0" alt="" width="100%" height="10"></td>
        <td height="10" class="infoBoxHeading" nowrap><img src="images/boxmod/cornerbright.gif" border="0" alt="" width="10" height="10"></td>
    
      </tr>
    </table>
                </td>
              </tr>
    <!-- tell_a_friend_eof //-->
    
    <!-- search //-->
              <tr>
                <td class="freedeliverbox">
    <a href="freedeliver.php"><img src="includes/languages/french/images/freedeliver.gif" border="0" alt="Livraison gratuite" title=" Livraison gratuite "></a>            </td>
              </tr>
    
    <!-- search_eof //-->
    <!-- left_navigation_eof //-->
        </table></td>
    <!-- body_text //-->
    
        <td width="100%" border ="0" valign="top"><form name="cart_quantity" action="http://xxx.xxx.xxx.xxx/catalog/produit-p-28.html?action=add_product&cPath=25" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="0">
    <table border="0" bordercolor="#220F00" width="100%" cellspacing="3" cellpadding="3">
    <table border="0" bordercolor="#0BB00" width="100%" cellspacing="0" cellpadding="0" align="center" valign="top">
      <tr>
          <td class="pageHeading" width="50"  valign="top">
    <img src="images/pixel_trans.gif" width="1"></td>
    <td class="pageHeading" width="80%"  valign="top">
    <table border="0" bordercolor="#BBB00" width="100%" cellspacing="0" cellpadding="0" align="center" valign="top">
    
      <tr>
          <td class="pageHeading" valign="top">Bouddha en pierre</td>
                <td class="pageHeading" align="right" valign="top"><s>259&nbsp;€</s> <span class="productSpecialPrice">200&nbsp;€</span><BR></td>
    
          </td>
      </tr>
    
      <tr>
          <td width="250">
                     <a name='grand' title='Bouddha en pierre'><img src='images/1.jpg' vspace='10' hspace='5' id='big' alt='Bouddha en pierre' title='Bouddha en pierre' style='border:1px solid black' width='200'></a><BR><div id='gallery'><a name='grand' href='images/zoom.gif' title='Bouddha en pierre' id='lien'><img src='images/zoom.gif' vspace='10' hspace='5' alt='Bouddha en pierre' title='Bouddha en pierre' style='border:1px solid black' width='70'></a></div><BR>
    <a href="javascript:changeImgProduit('images/1.jpg ','1');">
     <IMG alt="Bouddha en pierre 1" title="Bouddha en pierre 1" src="images/1.jpg" style="border:1px solid black" width="40"></a>
          <a href="javascript:changeImgProduit('images/2.jpg ','2');">
           <IMG alt="Bouddha en pierre 2" title="Bouddha en pierre 2" src="images/2.jpg" style="border:1px solid black" width="40"></a>
          <a href="javascript:changeImgProduit('images/3.jpg ','3');">
           <IMG alt="Bouddha en pierre 2" title="Bouddha en pierre 3" src="images/3.jpg" style="border:1px solid black" width="40"></a>
    
          <a href="javascript:changeImgProduit('images/5.jpg ','4');">
           <IMG alt="Bouddha en pierre 3" title="Bouddha en pierre 4" src="images/5.jpg" style="border:1px solid black" width="40"></a>
          <a href="javascript:changeImgProduit('images/6.jpg ','5');">
           <IMG alt="Bouddha en pierre 4" title="Bouddha en pierre 5" src="images/6.jpg" style="border:1px solid black" width="40"></a>
    
      <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
      <!--
      function MM_preloadImages() { //v3.0
      
        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
      
          var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
      
          if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 
      }
      MM_preloadImages('images/1.jpg', 'images/2.jpg', 'images/3.jpg','images/5.jpg','images/6.jpg','images/','images/');
      function changeImgProduit(srcimg,idimg){ 
       var img = document.getElementById('big');
       var legende_dest = document.getElementById('legende_ph_base');
       var legende_source = document.getElementById('legende_ph_th_'+idimg);
       img.src = srcimg;
    	if( legende_dest && legende_source){
        legende_dest.innerHTML = legende_source.innerHTML;
       }
    
      }
       // -->
      </SCRIPT>
    
          </td>
          <td >
    
    		<Table border="0" bordercolor="#0000BB" width="100%" >
    
                <tr ><TD class="textproduct">
    			<Table border="0"  width="100%" ><tr ><TD class="textproduct">
                    Descriptif produit.<BR>
    Création originale et surprenante cette superbe réalisation de Bouddha en position allongée est conçue en véritable pierre.</TD><TD valign="TOP"></TD>
    <TABLE border ="0" ><BR><TR><TD width ="100"class="titletextproduct">Producteur : </TD><TD class="textproduct">QUE WOUÄH!!</TD></TR><TR><TD width ="80"class="titletextproduct"></TD><TD class="textproduct"><IMG SRC=images/tissu.jpg height=70></TD><TD class="textproduct"  valign="TOP">dscriptif producteur</I></TD></TR></TABLE><TABLE ><TR><TD width ="100"class="titletextproduct">Mati&egrave;re : </TD><TD class="textproduct">bois</TD></TR></TABLE><TABLE ><TR><TD width ="100"class="titletextproduct">Dimensions : </TD><TD class="textproduct">L150 X P40 X H40 cm</TD></TR></TABLE><TABLE ><TR><TD width ="100"class="titletextproduct">Poids : </TD><TD class="textproduct">45.00Kg</TD></TR></TABLE>
    
    	
    
              <table border="0" cellspacing="0" cellpadding="2">
                <tr>
                  <td class="smalltitle" colspan="2"><BR>Options disponibles :</td>
                </tr>
                <tr>
                  <td class="main">Taille:</td>
                  <td class="main"><select name="id[2]"><option value="14">Petit (-50&nbsp;€)</option><option value="15">Moyen</option><option value="16">Grand (+50&nbsp;€)</option></select></td>
    
                </tr>
    
    
              </table>
    
                
              </TD></tr>
              <tr>
              <tr>
            <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
          </tr>
    
          <tr>
            <td><table border="0" width="100%" cellspacing="1" cellpadding="2" >
              <tr>
                <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>
                    <td class="main"></td>
                    <td class="main" align="right"><input type="hidden" name="products_id" value="28"><input type="image" src="includes/languages/french/images/buttons/button_in_cart.gif" border="0" alt="Ajouter au panierBouddha en pierre" title=" Ajouter au panierBouddha en pierre "></td>
                    <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>
    
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          
    
              </tr></table>
          </td>
      </tr>
    
      </table>
    
    
    <table  border="0" width="100%" cellspacing="1" cellpadding="2" >
          <tr>
         	 <td>
    
    		<BR><a name=also></a><!-- also_purchased_products //-->
    <table border="0" bordercolor="#BBB00" width="100%" height="1" cellspacing="0" cellpadding="0" align="center" valign="top">
      <tr width="100%">
          <td valign="top"  height="1" width="139"><img src="includes/languages/french/images/buttons/onglet/1a.gif" border="0" alt="Article fr&eacute;quement achet&eacute; avec" title=" Article fr&eacute;quement achet&eacute; avec "></A></td>
    
          <td><img src="images/pixel_trans.gif" border="0" alt="" width="4" height="10"></td>
              <td valign="top"  height="1" width="132"><a href="http://xxx.xxx.xxx.xxx/catalog/produit-p-28.html?cPath=25#cross"><img src="includes/languages/french/images/buttons/onglet/2b.gif" border="0" alt="Ventes Croisées" title=" Ventes Croisées "></a></td>      <td align="right"  height="1"  width="100%" valign="top"></td>
     </tr>
      <tr width="100%">
          <td bgcolor="#84ae29"  height="1"></td>
          <td bgcolor="#84ae29"  height="1"></td>
          <td bgcolor="#84ae29"  height="1"></td>
          <td bgcolor="#84ae29"  height="1"></td>
    
     </tr>
    </table>
    
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
      </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="1" class="VcBox">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="4" class="VcBox">
      <tr>
    
        <td align="center" class="Vcbox" width="33%" valign="top"><a href="http://xxx.xxx.xxx.xxx/catalog/produit-p-59.html"><img src="images/1.jpg" border="0" alt="Bouddha en pierre" title=" Bouddha en pierre " width="100" height="80"></a><br><a href="http://xxx.xxx.xxx.xxx/catalog/produit-p-59.html">Bouddha en pierre</a></td>
        <td align="center" class="Vcbox" width="33%" valign="top"><a href="http://xxx.xxx.xxx.xxx/catalog/esssai-p-35.html"><img src="images/vc1.jpg" border="0" alt="esssai" title=" esssai " width="100" height="80"></a><br><a href="http://xxx.xxx.xxx.xxx/catalog/esssai-p-35.html">esssai</a></td>
        <td align="center" class="Vcbox" width="33%" valign="top"><a href="http://xxx.xxx.xxx.xxx/catalog/testplein-p-41.html"><img src="images/1.jpg" border="0" alt="test plein" title=" test plein " width="100" height="80"></a><br><a href="http://xxx.xxx.xxx.xxx/catalog/testplein-p-41.html">test plein</a></td>
      </tr>
      <tr>
        <td align="center" class="Vcbox" width="33%" valign="top"><a href="http://xxx.xxx.xxx.xxx/catalog/tableaubouddha3-p-50.html"><img src="images/11jpg" border="0" alt="Tableau bouddha3" title=" Tableau bouddha3 " width="100" height="80"></a><br><a href="http://xxx.xxx.xxx.xxx/catalog/tableaubouddha3-p-50.html">Tableau bouddha3</a></td>
        <td align="center" class="Vcbox" width="33%" valign="top"><a href="http://xxx.xxx.xxx.xxx/catalog/puboiscanon-p-33.html"><img src="images/12.jpg" border="0" alt="PU bois canon" title=" PU bois canon " width="100" height="80"></a><br><a href="http://xxx.xxx.xxx.xxx/catalog/puboiscanon-p-33.html">PU bois canon</a></td>
    
        <td align="center" class="Vcbox" width="33%" valign="top"><a href="http://xxx.xxx.xxx.xxx/catalog/coffretgourmandepic-p-39.html"><img src="images/coffret.jpg" border="0" alt="Coffret Gourmand Epicé" title=" Coffret Gourmand Epicé " width="100" height="80"></a><br><a href="http://xxx.xxx.xxx.xxx/catalog/coffretgourmandepic-p-39.html">Coffret Gourmand Epicé</a></td>
      </tr>
    </table>
    </td>
      </tr>
    </table>
    <!-- also_purchased_products_eof //-->
            </td>
          </tr>
          <tr>
    
           <td>
    
    	<a name=cross></a> 
    
    <!-- xsell_products //-->
    <table border="0" bordercolor="#BBB00" width="100%" height="1" cellspacing="0" cellpadding="0" align="center" valign="top">
      <tr width="100%">
    <td valign="top"  height="1" width="139"><a href="http://xxx.xxx.xxx.xxx/catalog/produit-p-28.html?cPath=25#also"><img src="includes/languages/french/images/buttons/onglet/1b.gif" border="0" alt="Article fr&eacute;quement achet&eacute; avec" title=" Article fr&eacute;quement achet&eacute; avec "></A></td><td><img src="images/pixel_trans.gif" border="0" alt="" width="4" height="10"></td>
    
          <td valign="top"  height="1" width="132"><img src="includes/languages/french/images/buttons/onglet/2a.gif" border="0" alt="Ventes Croisées" title=" Ventes Croisées "></a></td>
          <td align="right"  height="1"  width="100%" valign="top"></td>
     </tr>
    
      <tr width="100%">
          <td bgcolor="#84ae29"  height="1"></td>
          <td bgcolor="#84ae29"  height="1"></td>
          <td bgcolor="#84ae29"  height="1"></td>
          <td bgcolor="#84ae29"  height="1"></td>
     </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
      </tr>
    
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="1" class="VcBox">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="4" class="VcBox">
      <tr>
        <td align="center" class="Vcbox" width="33%" valign="top"><a href="http://xxx.xxx.xxx.xxx/catalog/esssai-p-35.html"><img src="images/vc1.jpg" border="0" alt="esssai" title=" esssai " width="100" height="80"></a><br><a href="http://xxx.xxx.xxx.xxx/catalog/esssai-p-35.html">esssai</a></td>
      </tr>
    </table>
    </td>
      </tr>
    
    </table>
    
    	</td>
          </tr>
    </table>
    </form>
    </td>
    <!-- body_text_eof //-->
    </td><td class="pageHeading" width="100" align="left" valign="top"><img src=includes/languages/french/images/buttons/limite.gif width="100"><br><img src="images/green.gif"> <font size="2">Edition limit&eacute;e<br><img src="images/pink.gif"> <font size="2">Pi&egrave;ce unique<br><img src="images/yellow.gif"> <font size="2">Dernier Article<BR>
    
    </td>
    </TR>
    </table>
      </tr>
    
    </table></TD>
    
    <!-- body_eof //-->
    
    <!-- footer //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="1">
      <tr class="footer" height="27">
        
    <td class="footer" class="headerNavigation"> <CENTER><a href="http://xxx.xxx.xxx.xxx/catalog/presentation.php" class="headerNavigation">Qui sommes nous?</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://xxx.xxx.xxx.xxx/catalog/conditions.php" class="headerNavigation">Conditions G&eacute;n&eacute;rales de Ventes</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://xxx.xxx.xxx.xxx/catalog/contact_us.php" class="headerNavigation">Contactez-nous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://xxx.xxx.xxx.xxx/catalog/partenaire.php" class="headerNavigation">Partenaires</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://xxx.xxx.xxx.xxx/catalog/sitemap.php" class="headerNavigation">Plan du site</a></CENTER></td>
    
      </tr>
    </table>
    <br>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" class="smallText">Copyright &copy; 2008 <a href="http://www.machintruc.com" target="_blank">Machintruc</a><br>Powered by Gotcha5832</a></td>
      </tr>
    </table>
    
    <br>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center"><td>
      </tr>
    </table>
    <!-- footer_eof //-->
    <br>
    </body>
    </html>

  5. #5
    Membre éclairé
    Inscrit en
    Septembre 2004
    Messages
    387
    Détails du profil
    Informations forums :
    Inscription : Septembre 2004
    Messages : 387
    Par défaut
    C'est bon je me suis débrouiller, j'ai réussit.

    Mais merci quand même à ceux qui se seront pencher sur le problème.

Discussions similaires

  1. Comment charger une DLL win32 en C# de manière dynamique
    Par Jayceblaster dans le forum Windows Forms
    Réponses: 4
    Dernier message: 10/06/2009, 18h38
  2. Réponses: 13
    Dernier message: 25/01/2007, 17h20
  3. Réponses: 1
    Dernier message: 11/01/2007, 22h57
  4. Créer une variable de manière dynamique
    Par Nelson74 dans le forum PHP & Base de données
    Réponses: 3
    Dernier message: 11/11/2006, 23h05
  5. [JTable] Changer les colonnes de manière dynamique
    Par gg2laba dans le forum Composants
    Réponses: 3
    Dernier message: 03/10/2005, 23h39

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