View Single Post
  #3 (permalink)  
Old April 6th, 2005, 06:58 AM
vinod_yadav1919 vinod_yadav1919 is offline
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii Interrupt!!
 With parseInt
Following is working fine
<DIV ID="movethis" STYLE="position:absolute; width:auto; height:auto; left:20px;
top:50px; background-color:white;font-size:2">hello</div>
<input type=button name=vin1 value="moveit" onclick="moving2()" >
<script>
function moving2(){
if(parseInt(movethis.style.pixelLeft)<200){
movethis.style.pixelLeft=parseInt(movethis.style.p ixelLeft)+5
movethis.style.fontSize=parseInt(movethis.style.fo ntSize)+1
moveid2=setTimeout("moving2()", 20)}
}

</script>
Hope this will hep you

Cheers :)

vinod
Reply With Quote