View Single Post
Old 08-13-2009, 05:49 PM   PM User | #3
rigaleb
New to the CF scene

 
Join Date: Aug 2009
Location: Bucharest, RO
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
rigaleb is an unknown quantity at this point
Ok, so I got this
Code:
<body>   
   <p id = "intrare"  onclick = "moveRight()">INTRARE</p>
   <img src="one.gif" id="soare" class="sun">
</body>

var userWidth = window.screen.width;
function moveRight()
{
	var pp= document.getElementById("soare");
	var lft = parseInt(pp.style.left);
	var tim = setTimeout("moveRight()",50);
	lft = left+50;
	pp.style.left = lft+"px";
	if (lft > userWidth + 439)
{
	pp.style.left = -878;  
	clearTimeout(tim);
}
}
Nothing happens in firefox and when I click the text in IE I get an "error on page" message in the status bar. What's wrong ?
rigaleb is offline   Reply With Quote