|
-
Mar 22nd, 2003, 10:07 AM
#1
Thread Starter
Fanatic Member
changing position randomly
hi there,
this is the layer..
<style>
#mem{color:white;background-color:"black";position:absolute;top:20;left:30;}
</style>
..and this is the "random number"..
rn=Math.floor(Math.random()*400)+1
--now I want to change the position of my "mem-layer" randomly
each time I refresh my page..I want to change the position of both"top(y) and left(x)"according
to the number selected randomly(rn)
can you help me? I wrote.."top:rn;left:rn;" but it did not work
thanks a lot indeed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|