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 :

affichage Scrollbar


Sujet :

JavaScript

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Étudiant
    Inscrit en
    Décembre 2006
    Messages
    65
    Détails du profil
    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Décembre 2006
    Messages : 65
    Par défaut affichage Scrollbar
    Bonjour

    j'aimerais rajouter une scroll bar dans le code suivant comment faire

    function resize() {
    window.resizeTo(1024, 760);
    }

  2. #2
    Modérateur
    Avatar de Bisûnûrs
    Profil pro
    Développeur Web
    Inscrit en
    Janvier 2004
    Messages
    9 931
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Janvier 2004
    Messages : 9 931
    Par défaut
    Scrollbar où ça ? Une scrollbar ne s'ajoute pas à du code, mais à une fenêtre ... Quelle est ta fenêtre ?

  3. #3
    Membre confirmé
    Étudiant
    Inscrit en
    Décembre 2006
    Messages
    65
    Détails du profil
    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Décembre 2006
    Messages : 65
    Par défaut
    en gros voici le code de ma page

    ccc_more_info.php
    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
     
    <?php
    /*
      Custom Computer Creator 
      Version 9.1.1
      ccc_more_info.php
      Designed And Coded By: Stephen Walker
      
      You Are Free To Edit This File However You Would Like
      Custom Computer Creator Is Coded For A Base In OsCommerce Shopping Cart
      Released under the GNU General Public License
    */
     
      require('includes/application_top.php');
      require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
      $image_query = tep_db_query('select * from products p, products_description pd where p.products_id = pd.products_id and p.products_id ="'.$_GET['path'].'"');
      $image_fetch = tep_db_fetch_array($image_query);
      $image = $image_fetch['products_description'];
    ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <script language="javascript"><!--
    function resize() {
    window.scrollBy(0,100);
    window.resizeTo(1024, 760);
    }
    //--></script>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> 
    <title><?php echo TITLE; ?></title>
    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
    <script language="javascript" src="includes/general.js"></script>
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onLoad="resize()">
    <!-- header //-->
    <?php //require(DIR_WS_INCLUDES . 'header.php'); 
    ?>
    <!-- header_eof //-->
    <!-- body //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
    <!-- body_text //-->
        <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td class="main"><font style="font-family: Arial (sans-serif); font-size: 18pt; font-weight: bold"><?php echo $image_fetch['products_name'];?></font></td>
                <td class="pageHeading" align="right"></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
          <tr>
            <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
             <tr>
                <td class="main" width="100%"><div id="description" STYLE="position: width=auto; height=auto;"><?php echo $image;?></div></td>
              </tr>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
              </tr>
              <tr>
                <td class="main"></td>
              </tr>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
              </tr>
              <tr>
                <td class="main"></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
     
    <!-- body_text_eof //-->
      </tr>
    </table>
    <!-- body_eof //-->
    <!-- footer //-->
    <?php //require(DIR_WS_INCLUDES . 'footer.php'); 
    ?>
    <!-- footer_eof //-->
    <br>
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
    je comprends pas tres bien ce que tu veux dire , peux tu etre plus clair

    merci

Discussions similaires

  1. Bug affichage scrollbar
    Par mckilleron dans le forum Balisage (X)HTML et validation W3C
    Réponses: 6
    Dernier message: 17/01/2011, 16h28
  2. [CS4] Affichage scrollbar dans un tableau
    Par Vincezzio dans le forum Dreamweaver
    Réponses: 0
    Dernier message: 16/01/2011, 19h18
  3. [CSS] forcer affichage scrollbar verticale (sans frames!!)
    Par cortex024 dans le forum Mise en page CSS
    Réponses: 38
    Dernier message: 29/06/2010, 21h26
  4. Affichage scrollbar sur firefox (ckeditor)
    Par zounounous dans le forum Général JavaScript
    Réponses: 0
    Dernier message: 01/01/2010, 21h52
  5. Problème affichage scrollbar
    Par nadalator dans le forum Balisage (X)HTML et validation W3C
    Réponses: 8
    Dernier message: 12/05/2006, 18h14

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