ok once again I am getting an error that makes no sense to me...this project isn't going very well..can you tell?
here is a part of the code:
document.write("<div align="center" id="1divMover" + i + "style="position: absolute; top: " + distance + "%"/>"
;
this is supposed make a division with a table, then spit out 82 divisions into the table...I get an error (object expected ')' ) on the bold line..I don't know why.
thanks for any help
-Greg
here is a part of the code:
Code:
<script language="javascript">
function loadDivs1() {
distance = 0
for (i=0; i<83; i++) {
distance++
document.write("<div align="center" id="1divMover" + i + "style="position: absolute; top: " + distance + "%"/>"
Code:
document.write("<img border="0" src="tapdance.gif" width="30" height="69"/>");
document.write("</div/>");
}
document.write("</td/>");
document.write("</tr/>");
document.write("</table/>");
document.write("</div/>");
}
function loadDivsSetup() {
document.write("<div align="center" id="parentDiv" style="position: relative; background-color: #FFFFFF; height: 100%; width: 100%"/>");
document.write("<table align="center" border="0" cellspacing="0" cellpadding="0" width="100%" height="100%"/>");
document.write("<tr/>");
document.write("<td/>");
loadDivs1();
}
var num, countHide, countShow
num = 83
countHide = 1
countShow = 2
function startLoopSet() {
document.getElementById('divMover' + countHide).style.visibility ='hidden';
document.getElementById('divMover' + countShow).style.visibility = 'visible';
countHide++
countShow++
if (countShow != num) {
setTimeout('startLoopSet()', 1)
}
}
loadDivs1();
</script>
this is supposed make a division with a table, then spit out 82 divisions into the table...I get an error (object expected ')' ) on the bold line..I don't know why.
thanks for any help
-Greg