PDA

View Full Version : For (.....) problem


D2K2
07-13-2002, 10:25 PM
Hi, have a problem with my script to move windows around, and it keeps complaining about missing ;s on a for () line. Can anyone tell me where i'm going wrong? I've tried semicolons everywhere. :(



var goiup = ((window.screen.availHeight/2)-(99))
for (goiup <= onego; goiup += heightspeed);


Ta
D2K2

joh6nn
07-13-2002, 10:51 PM
var goiup = (window.screen.availHeight/2) - 99;

for (goiup; goiup <= onego; goiup += heightspeed);

haft to have 3 arguments in a for loop.

D2K2
07-13-2002, 10:55 PM
Thanks

Works now.

I should think before i post :o

joh6nn
07-13-2002, 11:02 PM
heh. make a deal with you: you think before you post, and i'll think before i answer. ::grin::