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 ?