elwell
08-05-2003, 09:11 PM
I need to fix this it is so annoying. I have been working on it for a little bit now. I want to make a pic move then stop at a certain point. I know this is DHTML but no one is at the DHTML forum right now. Heres WHAT i have currently:
<html><head><title>Dow Jon®</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide
function slide() {
document.all.mover.style.pixelLeft+= 10
if (document.all.mover.style.pixelLeft < document.all.rightfore.style.pixelLeft) {
setTimeout("slide()" ,10)
}
}
// End -->
</script>
<style type="text/css">
<!--
#mover {position: absolute; top:220px; left:-200px; z-index:30}
#rightfore {position: absolute; top:200px; left:260px; z-index:20}
//nj injin-->
</style>
</head>
<body OnLoad="slide()">
<span style="position: absolute; top:100px; left:233px; font-family: Trebuchet MS, sans-serif; color:black; font-size: 72; z-index:30">Dow Jon</span>
<div id="rightfore">
<img src="blackcircle.gif" />
</div>
<div id="mover">
<img src="blankcircle.gif" />
</div>
</body>
</html>
<html><head><title>Dow Jon®</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide
function slide() {
document.all.mover.style.pixelLeft+= 10
if (document.all.mover.style.pixelLeft < document.all.rightfore.style.pixelLeft) {
setTimeout("slide()" ,10)
}
}
// End -->
</script>
<style type="text/css">
<!--
#mover {position: absolute; top:220px; left:-200px; z-index:30}
#rightfore {position: absolute; top:200px; left:260px; z-index:20}
//nj injin-->
</style>
</head>
<body OnLoad="slide()">
<span style="position: absolute; top:100px; left:233px; font-family: Trebuchet MS, sans-serif; color:black; font-size: 72; z-index:30">Dow Jon</span>
<div id="rightfore">
<img src="blackcircle.gif" />
</div>
<div id="mover">
<img src="blankcircle.gif" />
</div>
</body>
</html>