div problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lam

    div problem


    hi
    i have a problem with DIV

    i make a DIV like this :

    [color=blue]
    > <div id="lienmenu1" class="lienmenu "><img src="images/e_hg.gif" alt="Gauche" border="0"></a></div>
    > <div id="lienmenu2" class="lienmenu "><img src="images/e_hd.gif" alt="Haut" border="0"></a></div>
    > <div id="lienmenu3" class="lienmenu "><img src="images/e_bg.gif" alt="Gauche" border="0"></a></div>
    > <div id="lienmenu4" class="lienmenu "><img src="images/e_bd.gif" alt="Haut" border="0"></a></div>[/color]


    et i use a variable :
    [color=blue]
    > var objlien = new Array(lienmenu1 ,lienmenu2,lien menu3,lienmenu4 );[/color]

    so my objlien is an array which represente a frame (4 positions) :
    [color=blue]
    > objlien[0].left = x ;
    > objlien[0].top = y ;
    > objlien[0].width = w;
    > objlien[0].visibility = 'visible';[/color]


    i have differents functions upon this frame :

    go_left() : which move all the object to the left (we see on the page
    the 4 positions move to the left together

    go_back, go_up, and go_right

    i have also 2 functions to increase or decrease the dimensions of the
    frame
    all this functions works perfectly

    but now i would like to make another thing
    when i increase the dimensions, the frame is discontinuous ! because,
    width and height of the image in each position of the global object
    doesn't change !
    does anybody who if it is possible to modify widht of the image to
    make my frame always continuuous ?


    thanks for any help :)

    --
    Lam
Working...