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 :

fonction javascript DOM


Sujet :

JavaScript

  1. #1
    Membre averti
    Inscrit en
    Mai 2010
    Messages
    23
    Détails du profil
    Informations forums :
    Inscription : Mai 2010
    Messages : 23
    Par défaut fonction javascript DOM
    voila je veux afficher une page html a partir d' un fichier javascript qui est celui de d'une autre page!!!
    pouvez vous m'aider! merci

  2. #2
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 658
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 658
    Billets dans le blog
    1
    Par défaut
    peux tu expliciter ?
    Je ne comprends pas ton besoin ...
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  3. #3
    Membre averti
    Inscrit en
    Mai 2010
    Messages
    23
    Détails du profil
    Informations forums :
    Inscription : Mai 2010
    Messages : 23
    Par défaut
    voila je veux afficher une page html a partir d' un fichier javascript qui est celui de d'une autre page!!!
    pouvez vous m'aider! merci

  4. #4
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 658
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 658
    Billets dans le blog
    1
    Par défaut
    tu as quoi dans le fichier js ?
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  5. #5
    Membre averti
    Inscrit en
    Mai 2010
    Messages
    23
    Détails du profil
    Informations forums :
    Inscription : Mai 2010
    Messages : 23
    Par défaut
    au lieu de mettre un code html interpréter en javascript je veux charger directement une page 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
    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
    document.write("	<div id=\"font\">");
    document.write("			<div id=\"nav_top\"><div id=\"text_top\"><a>Look For Shop<\/a><\/div><\/div>");
    document.write("		    <div id=\"loader\"><img src='img\/loading.gif' border='0' height=\"40\" width=\"40\" alt=''\/><\/div>");
    document.write("			<div id=\"content\">");
    document.write("			<a>Chargement de l'application...<\/a><br\/><br\/>");
    document.write("			<br\/>&nbsp;<br\/>&nbsp;<br\/>&nbsp;<br\/>&nbsp;<br\/>&nbsp;<br\/>");
    document.write("			<a>version : 1.1<\/a>");
    document.write("			<\/div>");
    document.write("		<\/div>");
     
    //*************************************************************************************************************************
     
    document.write( '<div id=\"font1\">\n' );
    document.write( '	<div id=\"nav_champs\"></div>\n' );
    document.write( '	<div id=\"nav_top\">\n' );
    document.write( '			<div id=\"nav_right\"><img alt=\"\" src=\"img/bouton_rechercher.png\"></div>\n' );
    document.write( '			<div id=\"nav_center\"><a>Look For Shop</a></div>\n' );
    document.write( '			<div id=\"nav_center_2\"><a style=\"color: rgb(255, 255, 255); text-decoration: none;\">accueil</a></div>\n' );
    document.write( '			<div id=\"nav_left\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/home.png\"></a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	<div id=\"nav_localisation\">\n' );
    document.write( '			<div id=\"nav_right\"><button style=\'background: url(img/bouton_localisation.png); border:none; width:30px; height:30px;\' onclick=\'doGeolocAuto()\'></button></div>\n' );
    document.write( '			<div id=\"nav_center_3\"><a style=\"color: gray;\">Autour de votre position :</a><br>\n' );
    document.write( '									<a>173, Boulevard Jean Jaurès - 92100 Boulogne Bil...</a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '		<div id=\"cont_geolocalisation2\">\n' );
    document.write( '	<div id=\"confirme\">\n' );
    document.write( '	<div style=\"margin-top: 55px;margin-bottom: 20px;text-align: center;\"><a style=\"font-family: arial;font-size: 16px;color: white;\">Voulez-vous être géolocalisé ?</a></div>\n' );
    document.write( '	<div style=\"height: 35px;\">\n' );
    document.write( '	<div style=\"float: right;margin-right: 25px;\"><input type=\"button\" id=\"bouton1\" class=\"submit7\" value=\"Non\" onclick=\"boup5(\'cont_geolocalisation2\'),doGeolocAuto();\"></div>\n' );
    document.write( '	<div style=\"float: left;margin-left: 25px;\"><input type=\"button\" id=\"bouton1\" class=\"submit8\" value=\"Oui\" onclick=\"boup5(\'cont_geolocalisation2\')\"></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	</div>\n' );
    document.write( '	</div>\n' );
    document.write( '	<div id=\"cont\">\n' );
    document.write( '			<div id=\"pub_gray\" onclick=\"doPromo()\">\n' );
    document.write( '			<div id=\"clic_pub\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/font_pub3_02.png\"></a></div>\n' );
    document.write( '			<div id=\"info_pub\"><a style=\"color: rgb(226,14,174);font-family: arial;font-size: 15px;font-weight: bold;\">Vente Privée</a><br>\n' );
    document.write( '			<a style=\"color:white;font-family: arial;font-size: 14px;font-weight: bold;\">LEVIS</a></div>\n' );
    document.write( '			<div id=\"img_pub\"><img alt=\"\" src=\"img/levis.png\"> </div>\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '			<div id=\"pub_black\" onclick=\"doIscription()\">\n' );
    document.write( '			<div id=\"clic_pub\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/font_pub4_02.png\"></a></div>\n' );
    document.write( '			<div id=\"info_pub\"><a style=\"color: rgb(226,14,174);font-family: arial;font-size: 15px;font-weight: bold;\">Vente Privée</a><br>\n' );
    document.write( '			<a style=\"color:white;font-family: arial;font-size: 14px;font-weight: bold;\">FNAC</a></div>\n' );
    document.write( '			<div id=\"img_pub\"><img alt=\"\" src=\"img/fnac.png\"> </div>\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '			<div id=\"pub_gray\" onclick=\"doPromo()\">\n' );
    document.write( '			<div id=\"clic_pub\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/font_pub3_02.png\"></a></div>\n' );
    document.write( '			<div id=\"info_pub\"><a style=\"color: rgb(226,14,174);font-family: arial;font-size: 15px;font-weight: bold;\">Vente Privée</a><br>\n' );
    document.write( '			<a style=\"color:white;font-family: arial;font-size: 14px;font-weight: bold;\">DARJEELING</a></div>\n' );
    document.write( '			<div id=\"img_pub\"><img alt=\"\" src=\"img/draj.png\"> </div>\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '			<div id=\"pub_black\" onclick=\"doIscription()\">\n' );
    document.write( '			<div id=\"clic_pub\"\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/font_pub4_02.png\"></a></div>\n' );
    document.write( '			<div id=\"info_pub\"><a style=\"color: rgb(226,14,174);font-family: arial;font-size: 15px;font-weight: bold;\">Vente Privée</a><br>\n' );
    document.write( '			<a style=\"color:white;font-family: arial;font-size: 14px;font-weight: bold;\">SEPHORA</a></div>\n' );
    document.write( '			<div id=\"img_pub\"><img alt=\"\" src=\"img/sephora.png\"> </div>\n' );
    document.write( '			</div>\n' );
    document.write( '	\n' );
    document.write( '			<div id=\"pub_gray\" onclick=\"doPromo()\">\n' );
    document.write( '			<div id=\"clic_pub\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/font_pub3_02.png\"></a></div>\n' );
    document.write( '			<div id=\"info_pub\"><a style=\"color: rgb(226,14,174);font-family: arial;font-size: 15px;font-weight: bold;\">Vente Privée</a><br>\n' );
    document.write( '			<a style=\"color:white;font-family: arial;font-size: 14px;font-weight: bold;\">FNAC</a></div>\n' );
    document.write( '			<div id=\"img_pub\"><img alt=\"\" src=\"img/fnac.png\"> </div>\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '\n' );
    document.write( '\n' );
    document.write( '			\n' );
    document.write( '	</div>\n' );
    document.write( '</div>' );
     
     
    //*******************************************************************************************************
     
    document.write( '<div id=\"font3\">\n' );
    document.write( '	<div id=\"nav_champs\"></div>\n' );
    document.write( '	<div id=\"nav_top\">\n' );
    document.write( '			<div id=\"nav_right1\"></div>\n' );
    document.write( '			<div id=\"nav_center1\"><a>Look For Shop</a></div>\n' );
    document.write( '			<div id=\"nav_center_4\"><a href=\"index1.html\"  style=\"color: rgb(255, 255, 255); text-decoration: none;\">Promo</a></div>\n' );
    document.write( '			<div id=\"nav_left\"><a href=\"index1.html\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/img12.png\"></a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
     
    document.write( '<div id=\"cont_geolocalisation4\">\n' );
    document.write( '	<div id=\"promo2\">\n' );
    document.write( '	\n' );
    document.write( '		<div style=\"margin-top: 5px;height: 36px;\">\n' );
    document.write( '	<div style=\"float:left;margin-right: 10px;\"><a style=\"color: transparent;\" onclick=\"boup5(\'cont_geolocalisation4\')\"><img alt=\"\" src=\"img/chat.png\"></a></div>\n' );
    document.write( '	<div style=\"float: left;font-family: arial;font-size: 14px;margin-top: 7px;\"><a style=\"color: rgb(255, 255, 255); text-decoration: none;\" onclick=\"boup5(\'cont_geolocalisation4\')\">Ajouter aux favoris</a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '	<div style=\"height: 36px;\">\n' );
    document.write( '	<div style=\"float:left;margin-right: 10px;\"><a onclick=\"boup5(\'cont_geolocalisation4\')\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/coeur.png\"></a></div>\n' );
    document.write( '	<div style=\"float: left;font-family: arial;font-size: 14px;margin-top: 7px;\"><a onclick=\"boup5(\'cont_geolocalisation4\')\"  style=\"color: rgb(255, 255, 255); text-decoration: none;\">Envoyer par SMS</a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '	<div style=\"height: 36px;\">\n' );
    document.write( '	<div style=\"float:left;margin-right: 10px;\"><a onclick=\"boup5(\'cont_geolocalisation4\')\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/lettre.png\"></a></div>\n' );
    document.write( '	<div style=\"float: left;font-family: arial;font-size: 14px;margin-top: 7px;\"><a onclick=\"boup5(\'cont_geolocalisation4\')\"  style=\"color: rgb(255, 255, 255); text-decoration: none;\">Envoyer par E-mail</a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '	<div style=\"height: 36px;\">\n' );
    document.write( '	<div style=\"float:left;margin-right: 10px;\"><a onclick=\"boup5(\'cont_geolocalisation4\')\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/facebook.png\"></a></div>\n' );
    document.write( '	<div style=\"float: left;font-family: arial;font-size: 14px;margin-top: 7px;\"><a onclick=\"boup5(\'cont_geolocalisation4\')\"  style=\"color: rgb(255, 255, 255); text-decoration: none;\">Poster sur Facebook</a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '	<div style=\"height: 36px;\">\n' );
    document.write( '	<div style=\"float:left;margin-right: 10px;\"><a onclick=\"boup5(\'cont_geolocalisation4\')\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/twitter.png\"></a></div>\n' );
    document.write( '	<div style=\"float: left;font-family: arial;font-size: 14px;margin-top: 7px;\"><a onclick=\"boup5(\'cont_geolocalisation4\')\"  style=\"color: rgb(255, 255, 255); text-decoration: none;\">Poster sur Twitter</a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '	\n' );
    document.write( '	</div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '<div id=\"cont_geolocalisation\">\n' );
    document.write( '			<div id=\"itineraire\">\n' );
    document.write( '			<div id=\"id_right\"><button style=\'background: url(img/bouton3.png); border:none; width:30px; height:30px;\' onclick=\"bip5(\'cont_geolocalisation4\')\"></button></div>\n' );
    document.write( '			<div id=\"id_left\"><button style=\'background: url(img/plan.png); border:none; width:72px; height:30px;\' onclick=\'doGeolocAuto()\'></button></div>\n' );
    document.write( '			<div id=\"id_center\"><button style=\'background: url(img/Iteneraire.png); border:none; width:72px; height:30px;\' onclick=\'doGeolocAuto()\'></button></div>\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '			<div id=\"itineraire1\">\n' );
    document.write( '			<div id=\"id_right1\"><button style=\'background: url(img/bouton_call.png); border:none; width:30px; height:30px;\' onclick=\'doGeolocAuto()\'></button></div>\n' );
    document.write( '			<div id=\"id_left1\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/sephora2.png\"></a></div>\n' );
    document.write( '			<div id=\"id_center1\"><a>Forum des Halles,<br> 11 rue de l\'Arc en Ciel 75001 Paris - France</a></div>\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '			<div id=\"itineraire2\">\n' );
    document.write( '			<div id=\"id_right2\"><a href=\"index1.html\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/next.png\"></a></div>\n' );
    document.write( '			<div id=\"id_center2\"><a>suivant</a></div>\n' );
    document.write( '			<div id=\"id_left2\"><a href=\"index1.html\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/back.png\"></a></div>\n' );
    document.write( '			\n' );
    document.write( '			<div id=\"id_center_2\"><a>precedent</a></div>\n' );
    document.write( '			<div id=\"id_center_txt\">1 coffret offert</div>\n' );
    document.write( '			</div>\n' );
    document.write( '		\n' );
    document.write( '			<div id=\"itineraire3\">\n' );
    document.write( '			<div id=\"id_right3\"><a style=\"font-family: arial;font-size: 12px;\">Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.</a></div>\n' );
    document.write( '			<div id=\"id_left3\">\n' );
    document.write( '\n' );
    document.write( ' <a onclick=\"bip5(\'cont_geolocalisation3\')\" target=\"_blank\"><img src=\"img/parfum.png\" /></a>\n' );
    document.write( ' \n' );
    document.write( '			</div>\n' );
    document.write( '			</div>\n' );
    document.write( '			<div id=\"itineraire4\">\n' );
    document.write( '			<div id=\"id_right4\" style=\"color: rgb(226,14,174);font-family: arial;font-size: 10px;font-weight: bold;\"><a>au 31/12/02</a></div>\n' );
    document.write( '			<div id=\"id_left4\" style=\"color: rgb(226,14,174);font-family: arial;font-size: 10px;font-weight: bold;\"><a>du 07/10/09</a></div>\n' );
    document.write( '			<div id=\"id_center4\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/barre_date_02.png\"></a></div>\n' );
    document.write( '			\n' );
    document.write( '			<noscript id=\"cadre\"></noscript>\n' );
    document.write( '			<div id=\"cadre\" id=\"cadre\">\n' );
    document.write( '			<div id=\"barre\">\n' );
    document.write( '\n' );
    document.write( '			<span id=\"texte\"></span>\n' );
    document.write( '			</div>\n' );
    document.write( '\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '			<div id=\"id_center444\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/barre_date_04.png\"></a></div>\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '</div>\n' );
    document.write( '<div id=\"cont_geolocalisation3\">\n' );
    document.write( '<div style=\"margin-top: 40px;\"><a onclick=\"boup5(\'cont_geolocalisation3\')\"><img alt=\"\" src=\"img/parfum1.png\">  </a></div>\n' );
    document.write( '</div>\n' );
    document.write( '</div>' );
     
     
     
     
    //*************************************************************************************************************************
     
    document.write( '<div id=\"font4\">\n' );
    document.write( '	<div id=\"nav_champs\"></div>\n' );
    document.write( '	<div id=\"nav_top\">\n' );
    document.write( '			<div id=\"nav_right1\"></div>\n' );
    document.write( '			<div id=\"nav_center1\"><a>Look For Shop</a></div>\n' );
    document.write( '			<div id=\"nav_center_5\"><a href=\"index.html\"  style=\"color: rgb(255, 255, 255); text-decoration: none;\">Ventes Privées</a></div>\n' );
    document.write( '			<div id=\"nav_left\"><a href=\"index1.html\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/etoile.png\"></a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '<div id=\"cont_geolocalisation7\">\n' );
    document.write( '	<div id=\"promo2\">\n' );
    document.write( '	\n' );
    document.write( '		<div style=\"margin-top: 5px;height: 36px;\">\n' );
    document.write( '	<div style=\"float:left;margin-right: 10px;\"><a style=\"color: transparent;\" onclick=\"boup5(\'cont_geolocalisation7\')\"><img alt=\"\" src=\"img/chat.png\"></a></div>\n' );
    document.write( '	<div style=\"float: left;font-family: arial;font-size: 14px;margin-top: 7px;\"><a style=\"color: rgb(255, 255, 255); text-decoration: none;\" onclick=\"boup5(\'cont_geolocalisation7\')\">Ajouter aux favoris</a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '	<div style=\"height: 36px;\">\n' );
    document.write( '	<div style=\"float:left;margin-right: 10px;\"><a onclick=\"boup5(\'cont_geolocalisation7\')\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/coeur.png\"></a></div>\n' );
    document.write( '	<div style=\"float: left;font-family: arial;font-size: 14px;margin-top: 7px;\"><a onclick=\"boup5(\'cont_geolocalisation7\')\"  style=\"color: rgb(255, 255, 255); text-decoration: none;\">Envoyer par SMS</a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '	<div style=\"height: 36px;\">\n' );
    document.write( '	<div style=\"float:left;margin-right: 10px;\"><a onclick=\"boup5(\'cont_geolocalisation7\')\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/lettre.png\"></a></div>\n' );
    document.write( '	<div style=\"float: left;font-family: arial;font-size: 14px;margin-top: 7px;\"><a onclick=\"boup5(\'cont_geolocalisation7\')\"  style=\"color: rgb(255, 255, 255); text-decoration: none;\">Envoyer par E-mail</a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '	<div style=\"height: 36px;\">\n' );
    document.write( '	<div style=\"float:left;margin-right: 10px;\"><a onclick=\"boup5(\'cont_geolocalisation7\')\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/facebook.png\"></a></div>\n' );
    document.write( '	<div style=\"float: left;font-family: arial;font-size: 14px;margin-top: 7px;\"><a onclick=\"boup5(\'cont_geolocalisation7\')\"  style=\"color: rgb(255, 255, 255); text-decoration: none;\">Poster sur Facebook</a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '	<div style=\"height: 36px;\">\n' );
    document.write( '	<div style=\"float:left;margin-right: 10px;\"><a onclick=\"boup5(\'cont_geolocalisation7\')\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/twitter.png\"></a></div>\n' );
    document.write( '	<div style=\"float: left;font-family: arial;font-size: 14px;margin-top: 7px;\"><a onclick=\"boup5(\'cont_geolocalisation7\')\"  style=\"color: rgb(255, 255, 255); text-decoration: none;\">Poster sur Twitter</a></div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '	\n' );
    document.write( '	</div>\n' );
    document.write( '	</div>\n' );
    document.write( '	\n' );
    document.write( '<div id=\"cont_geolocalisation1\">\n' );
    document.write( '			<div id=\"itineraire\">\n' );
    document.write( '			<div id=\"id_right\"><button style=\'background: url(img/bouton3.png); border:none; width:30px; height:30px;\' onclick=\"bip5(\'cont_geolocalisation7\')\"></button></div>\n' );
    document.write( '			<div id=\"id_left\"><button style=\'background: url(img/plan.png); border:none; width:72px; height:30px;\' onclick=\'doGeolocAuto()\'></button></div>\n' );
    document.write( '			<div id=\"id_center\"><button style=\'background: url(img/Iteneraire.png); border:none; width:72px; height:30px;\' onclick=\'doGeolocAuto()\'></button></div>\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '			<div id=\"itineraire5\">\n' );
    document.write( '			<div id=\"id_right1\"><button style=\'background: url(img/bouton_call.png); border:none; width:30px; height:30px;\' onclick=\'doGeolocAuto()\'></button></div>\n' );
    document.write( '			<div id=\"id_left1\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/draj2.png\"></a></div>\n' );
    document.write( '			<div id=\"id_center5\"><a>173, Boulevard Jean Jaurès\n' );
    document.write( '<br>92100 Boulogne Billancourt</a></div>\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '			<div id=\"itineraire6\">\n' );
    document.write( '			<div id=\"id_right2\"><a href=\"index1.html\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/next.png\"></a></div>\n' );
    document.write( '			<div id=\"id_center2\"><a>suivant</a></div>\n' );
    document.write( '			<div id=\"id_left2\"><a href=\"index1.html\"  style=\"color: transparent;\"><img alt=\"\" src=\"img/back.png\"></a></div>\n' );
    document.write( '			\n' );
    document.write( '			<div id=\"id_center_2\"><a>precedent</a></div>\n' );
    document.write( '			<div id=\"id_center_txt\">Invitation  aux ventes privées d\'automne</div>\n' );
    document.write( '			</div>\n' );
    document.write( '		\n' );
    document.write( '			<div id=\"itineraire7\">\n' );
    document.write( '			<div id=\"id_right3\"><a style=\"font-family: arial;font-size: 12px;color:white;\">Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.Paco Rabanne 1 Million, \n' );
    document.write( 'coffret pour l\'achat du parfum 61,50 euros.</a></div>\n' );
    document.write( '			<div id=\"id_left3\">\n' );
    document.write( '\n' );
    document.write( ' <a onclick=\"bip5(\'cont_geolocalisation6\')\" target=\"_blank\"><img src=\"img/DARJEELING.png\" /></a>\n' );
    document.write( ' \n' );
    document.write( '			</div>\n' );
    document.write( '			</div>\n' );
    document.write( '			<div id=\"itineraire8\">\n' );
    document.write( '			<div id=\"id_right4\" style=\"color: #E22E91;font-family: arial;font-size: 10px;font-weight: bold;\"><a>au 31/12/02</a></div>\n' );
    document.write( '			<div id=\"id_left4\" style=\"color: #E22E91;font-family: arial;font-size: 10px;font-weight: bold;\"><a>du 07/10/09</a></div>\n' );
    document.write( '			<div id=\"id_center4\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/barre_date_02.png\"></a></div>\n' );
    document.write( '			\n' );
    document.write( '			<noscript id=\"cadre\"></noscript>\n' );
    document.write( '			<div id=\"cadre\" id=\"cadre\">\n' );
    document.write( '			<div id=\"barre\">\n' );
    document.write( '\n' );
    document.write( '			<span id=\"texte\"></span>\n' );
    document.write( '			</div>\n' );
    document.write( '\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '			<div id=\"id_center444\"><a style=\"color: transparent;\"><img alt=\"\" src=\"img/barre_date_04.png\"></a></div>\n' );
    document.write( '			</div>\n' );
    document.write( '			\n' );
    document.write( '</div>\n' );
    document.write( '<div id=\"cont_geolocalisation6\">\n' );
    document.write( '<div style=\"margin-top: 40px;\"><a onclick=\"boup5(\'cont_geolocalisation6\')\"><img alt=\"\" src=\"img/DARJEELING2.png\">  </a></div>\n' );
    document.write( '</div>\n' );
    document.write( '</div>' );
     
     
    //********************************************************************************************************
     
     
    function init() {
    	$("#font").show();
    	$("#loader").show();
    	$("#font1").hide();
    	$("#font2").hide();
    	$("#font3").hide();
    	$("#font4").hide();
     
     
    }
     
    function buildAccueil(){
    	$("#font").hide();
    	$("#font2").hide();
    	$("#loader").hide();
    	$("#font1").show(); 
    	$("#font3").hide();
    	$("#font4").hide();
     
    }
     
     
    function doGeolocAuto(){
    	$("#font").hide();
    	$("#font1").hide();
    	$("#loader").hide();
    	$("#font2").show(); 
    	$("#font3").hide();
    	$("#font4").hide();
     
    }
     
    function doPromo(){
    	$("#font3").show();
    	$("#font").hide();
    	$("#font1").hide();
    	$("#loader").hide();
    	$("#font2").hide(); 
    	$("#font4").hide();
     
    }
     
    function doPrive(){
    	$("#font4").show();
    	$("#font3").hide();
    	$("#font").hide();
    	$("#font1").hide();
    	$("#loader").hide();
    	$("#font2").hide();
     
    }

  6. #6
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 658
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 658
    Billets dans le blog
    1
    Par défaut
    pitié !!
    pas de document.write !!!
    à la grande limite:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    monhtml='	<div id="font">';
    monhtml+='			<div id="nav_top"><div id="text_top"><a>Look For Shop</a></div></div>';
    monhtml+='		    <div id="loader"><img src="img/loading.gif" border="0" height="40" width="40" alt=""></div>';
    monhtml+='			<div id="content">';
    monhtml+='			<a>Chargement de l\'application...</a><br/><br/>';
    monhtml+='			<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>';
    monhtml+='			<a>version : 1.1</a>';
    monhtml+='			</div>';
    monhtml+='		</div>';
    etc ...


    et dans le onload de ta page

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    onload='this.innerHTML=monhtml'
    en ayant mis une balise script pour linker le fichier js
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  7. #7
    Membre averti
    Inscrit en
    Mai 2010
    Messages
    23
    Détails du profil
    Informations forums :
    Inscription : Mai 2010
    Messages : 23
    Par défaut
    merci beaucoup!!!

  8. #8
    Membre averti
    Inscrit en
    Mai 2010
    Messages
    23
    Détails du profil
    Informations forums :
    Inscription : Mai 2010
    Messages : 23
    Par défaut
    je viens de faite les tests malheureusement ça n'a pas marché!!!

  9. #9
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 658
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 658
    Billets dans le blog
    1
    Par défaut
    Je viens de faire les tests et heureusement ça a marché !!
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  10. #10
    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 : 54
    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
    @walidos21, tu pourrais nous expliciter cela :
    a partir d' un fichier javascript qui est celui de d'une autre page!!!
    ?
    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

  11. #11
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 658
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 658
    Billets dans le blog
    1
    Par défaut
    Au temps pour moi, j'ai testé avec document.body et pas this ...

    curieusement this ne pointe pas sur la balise body ???

    un exemple fonctionnel:

    le fichier html:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Nouvelle page 2</title>
     
    <script type="text/javascript" src="moncodehtml.js">
    </script>
    </head>
    <body onload='this.body.innerHTML=monhtml'>
     
    </body>
     
    </html>
    le fichier js nomme moncodehtml.js dans le mêms repertoire:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    monhtml='	<div id="font">';
    monhtml+='			<div id="nav_top"><div id="text_top"><a>Look For Shop</a></div></div>';
    monhtml+='		    <div id="loader"><img src="img/loading.gif" border="0" height="40" width="40" alt=""></div>';
    monhtml+='			<div id="content">';
    monhtml+='			<a>Chargement de l\'application...</a><br/><br/>';
    monhtml+='			<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>';
    monhtml+='			<a>version : 1.1</a>';
    monhtml+='			</div>';
    monhtml+='		</div>';
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  12. #12
    Membre averti
    Inscrit en
    Mai 2010
    Messages
    23
    Détails du profil
    Informations forums :
    Inscription : Mai 2010
    Messages : 23
    Par défaut
    merci beaucoup!!!

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

Discussions similaires

  1. retrouver un élément ajouté avec les fonction javascript-DOM
    Par adilsoft dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 27/02/2010, 16h16
  2. [DOM] transmission de fonction javascript
    Par nozostan dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 31/03/2008, 09h18
  3. [DOM] connaitre l'objet DOM appelant une fonction javascript
    Par HPmeteo dans le forum Général JavaScript
    Réponses: 4
    Dernier message: 02/09/2007, 18h03
  4. [DOM] fonction javascript dans html
    Par nopnop dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 23/04/2007, 09h53
  5. [DOM] lancer une fonction javascript dans un lien HTML
    Par cortex007 dans le forum Général JavaScript
    Réponses: 7
    Dernier message: 26/11/2006, 21h11

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