Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <img id='ad' style="margin-left:0%;padding:0%;" type='text' src="001.png" width="100%" height="100%"/>
- <script>
- images = new Array;
- images[0] = "001.png";
- images[1] = "002.png";
- images[2] = "003.png";
- images[3] = "004.png";
- images[4] = "005.png";
- images[5] = "006.png";
- images[6] = "007.png";
- images[7] = "008.png";
- images[8] = "009.png";
- images[9] = "010.png";
- setInterval(function() {changeImage()},80);
- x = 0;
- function changeImage() {
- document.getElementById('ad').src = images[x];
- if (x<9) {
- x+=1;
- }
- else if (x=10) {
- x=104;
- }
- }
- <script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement