Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 Stop motion for beginners

View previous topic View next topic Go down 
AuthorMessage
Scream
Member
Member
avatar

Posts : 8
Join date : 2011-03-09

Stop motion for beginners  Empty
PostSubject: Stop motion for beginners    Stop motion for beginners  EmptyWed Mar 09, 2011 11:54 pm

saw a code in the internet and translated it for beginners

<script type="text/javascript">
var a=0;
var t;
var counter=0
function runone()
{
a=a+1;
t=setTimeout("runone()",500);
two();
}
function runtwo()
{
i=a%32;
runthree();
}
function stopit()
{
clearTimeout(t);
counter=0;
}
function runthree()
{
if(i==1)
{
document.getElementById('b1').src="first.jpg";
}
else if (i==2)
{
document.getElementById('b1').src="second.jpg";
}
else if (i==3)
{
document.getElementById('b1').src="third.jpg";
}
else if (i==4)
{
document.getElementById('b1').src="fourth.jpg";
}
else if (i==5)
{
document.getElementById('b1').src="fifth.jpg";
}
else if (i==6)
{
document.getElementById('b1').src="sixth.jpg";
}
else if (i==7)
{
document.getElementById('b1').src="seventh.jpg";
}
else if (i==8)
{
document.getElementById('b1').src="eighth.jpg";
}
else if (i==9)
{
document.getElementById('b1').src="ninth.jpg";
}
else if (i==10)
{
document.getElementById('b1').src="tenth.jpg";
}
else
{
document.getElementById('b1').src="eleventh.jpg";
}

}
</script>

works for me. comment if ther's anything wrong.
Back to top Go down
Corverta
Member
Member
avatar

Posts : 20
Join date : 2011-03-09

Stop motion for beginners  Empty
PostSubject: Re: Stop motion for beginners    Stop motion for beginners  EmptyWed Mar 09, 2011 11:55 pm

what does it do?
Back to top Go down
 

Stop motion for beginners

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Water Cooling Guide For Beginners

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: Stop motion for beginners  Edit-trash Useless :: Trash-