Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

code woes

Options
  • 08-03-2010 9:21pm
    #1
    Registered Users Posts: 41


    hay all,
    im doing up a website but its been a few years sense i learned my html etc,

    does any1 know some code that makes an object (a set of eyes in this case) follow the arrow around the screen?
    hope you can help:confused:


Comments

  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    Doesn't sound like anything that would be of use in a website, and it definitely wouldn't be anything in HTML.

    Is it for a Flash game or anything ? Maybe there's a library for that.


  • Registered Users Posts: 106 ✭✭Moonstar


    There's one here -
    http://www.javascriptkit.com/script/script2/xeye.shtml

    In a nutshell, you attach your own function to the onmousemove trigger of the document on the page.

    You can then get the mouse co-ordinates each time it's moved, and use them to change the position (left and top) of image elements on the page.


  • Registered Users Posts: 2,781 ✭✭✭amen


    and it definitely wouldn't be anything in HTM

    you could use some dynamic html

    http://www.elizium.nu/scripts/lemmings/
    all written in HTML

    you can do loads of fun things with html


  • Registered Users Posts: 41 macbeth3


    thanks to all for the help:D


Advertisement