www.webdeveloper.com
Results 1 to 3 of 3

Thread: flying images

  1. #1
    Join Date
    May 2009
    Posts
    2

    flying images

    I'm looking for a code that will make images fly in without using flash.

  2. #2
    Join Date
    Aug 2008
    Posts
    22
    Here's a function I made for just that.

    Code:
    function addTo(xx,yy,objid){
    var it=document.getElementById(objid);
    var itl=getLeft(objid);
    var itt=getTop(objid);
    var nitl=itl+xx;
    var nitt=itt+yy;
    moveIt(nitl,nitt,objid);
    }
    setInterval('addTo(5,5,[your object's id])',[how many milliseconds between redraws]);
    Just replace the text in the brackets with your object's id(you know, like <a id="blabla">) and a number, like 15. Oh, and if you want it to take longer, you can change the 5's to be higher as well.

  3. #3
    Join Date
    May 2009
    Posts
    2

    Flying images

    Thank you! I'll give it a try.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles