<center><spacer type=block height=200><br /> <font color=red size=7>WeBTV Bug!! <p>RELOAD PAGE</font></center>
DHTML Explained~2
by SimplySally
Script by tom357mag

There are five parts to this script
to make our objects move.




1.
document.all.one.style.posLeft=-400;


This part sets the object off the screen.
In this case our div is 400 pixels left of the screen.



2.

function move1() {
document.all.one.style.posLeft += 5;
if (document.all.one.style.posLeft < 10) {
setTimeout("move1()", 50); }
else { setTimeout("move2()", 200); } 


This section defines the movement.

Div one, will move 5 pixels every 50 milliseconds
until it is 10 pixels from the left side of the screen.
Lowering the move time from 50 will speed the action.

When it reaches 10 pixels from the left our second div
will move in 200 milliseconds.
Lowering this number will make the objects move closer together, timewise.



3.
<style type="text/css"> 
#one { position:absolute; z-index:1; top:0; } 

This is our friend positioning CSS.

We know our div is going to start 400 pixels left of the screen.

Then it will move across as we specified.

The CSS sets the placement of our div from the top of the screen.
In this case, our div will be 0 pixels from the top.



4. onLoad="bgn()">

This tells the browser when to commence the action.

In this case upon loading the page.



5.<div id="one"> <table bgcolor="green"border="3"> <tr><td bgcolor=000066 height=40 width=40> </td></tr></table> </div>

This is our div or object to be moved.

The div can be an image, table, gradtable,
audioscope, or a combination of any of them.




Now, let's see those tables moving!"









TooTs