F
foolsmart2005
I am now writing a function that when a page is loaded, at intervals
of a certain seconds(e.g. 5 seconds), first row of a column will be
displayed, then after the second intervals, the second row of the
column will be displayed and so on. I think I need to use setTimeout
to do this. But I want to ask as the column is in div form, how can I
make it into javascript? for example.
<--code here-->
<div id="col">
<div id="row1">
<div id="row_image1"><img src="image path" alt=""/></div>
<div id="text1"><h1><a href="Media.html">title</a></h1>
<p>content</p>
</div>
</div>
<div id="row2">
<div id="row_image2"><img src="../image/mp3_icon2.png" alt=""/></
div>
<div id="text2"><h1><a href="Media.html">title</a></h1>
<p>content</p>
</div>
</div>
</div>
how to make it into javascript? can I do something var row1 =
document.write("<img src="..."")...etc?
of a certain seconds(e.g. 5 seconds), first row of a column will be
displayed, then after the second intervals, the second row of the
column will be displayed and so on. I think I need to use setTimeout
to do this. But I want to ask as the column is in div form, how can I
make it into javascript? for example.
<--code here-->
<div id="col">
<div id="row1">
<div id="row_image1"><img src="image path" alt=""/></div>
<div id="text1"><h1><a href="Media.html">title</a></h1>
<p>content</p>
</div>
</div>
<div id="row2">
<div id="row_image2"><img src="../image/mp3_icon2.png" alt=""/></
div>
<div id="text2"><h1><a href="Media.html">title</a></h1>
<p>content</p>
</div>
</div>
</div>
how to make it into javascript? can I do something var row1 =
document.write("<img src="..."")...etc?