Results 1 to 2 of 2

Thread: movement speed

  1. #1
    gencoglu
    Guest

    movement speed

    hello,
    In VB we use STEP to determine the SPEED of a movement
    ( for x= 1 to 5000 step 1: label1.move x,y:next..)
    But I dont know this in JavaScript..I wanted to enlarge the width of a window..slowly but it failed!!
    (mmm=window.open('test.html','';'width=x height=300') HERE I used FOR-looping to make the "width"(X)bigger gradually..but it did not work..and let it get SMALLER too..
    **will you please tell me How I can CHANGE THE WIDTH OR AND HEIGHT OF A WINDOW/PICTURE OR ..using JAVASCRIPT...

  2. #2
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    probably just a problem with your for loop. try messing with your conditional, making it bigger by 1000 or something, and just have i increment by 1 (i++)

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width