The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

So then I tried to clean it up a bit. I thought I would have a variable holding the number of boxes I wanted, then in my function I would simply have one piece of code inside a loop.
something like this...

Code:

for (count=1 to number of boxes)
eval("box"+count+".style.left") = newposition
count++
next

but I encountered this error: cannot assign a value to a funtion result....

So, my question is this.... how can I get around this. is there a way? or do I really need to "hardcode" all the code for each of the boxes?

hope someone can help me

cheers

Last edited by spartan; Jul 10, 2002 at 23:33.

Spartan
---------------------
It's like our sergeant told us before one trip into the jungle. Men! Fifty of you are leaving on a mission. Twenty-five of you ain't coming back.
-Mr.Payne