ok..here is my code:
I'm getting an object required error on the bold lines..is it not calling the same div that was created?
thanks for any help...
-Greg :-Q
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.getElementById('1divMover' + i).style.visibility ='hidden';
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() {
Code:
document.getElementById('1divMover' + countHide).style.visibility ='hidden';
document.getElementById('1divMover' + countShow).style.visibility = 'visible';
Code:
countHide++
countShow++
if (countShow != num) {
setTimeout('startLoopSet()', 1)
}
}
loadDivs1();
</script>
</head>
<body bgColor="FF0000" onLoad="startLoopSet()">
</body>
I'm getting an object required error on the bold lines..is it not calling the same div that was created?
thanks for any help...
-Greg :-Q