Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: DOM Animate

  1. #1
    Senior Member kirman's Avatar
    Join Date
    May 2003
    Location
    UK England
    Posts
    765
    Member #
    1499
    Liked
    2 times
    Been reading my book and well i created this but i can't seem to get it to work...

    any help please

    o and the external .js file needs to be checked aswel if you may thanks ..
    Dream like you'll live forever. Live like you're gonna die 2morrow!

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Ok, I found a few errors.

    You forgot "language=javascript" in your script calls.

    You forgot to put the id "madhatter" in quotes (so it looks for an object named madhatter).

    You misspelled "withStyle" as "withSytle".

    You had a case issue on the call to the function "animateObject"... you had a lower case "O". JS is case sensitive.

    Your "fx" and "fy" declarations had case problems, too. I changed them to "fX" and "fY".

    And voila !!! Now it moves! Not sure if it's doing what you want it to do, though... LOL

    File is attached
    Your formatting was a little messy... I cleaned it up for you.

  4. #3
    Senior Member kirman's Avatar
    Join Date
    May 2003
    Location
    UK England
    Posts
    765
    Member #
    1499
    Liked
    2 times
    cool thanks transio

    lol the book i got kinda set the whole script out dead weird and it was hard to follow lol..

    but thanks
    Dream like you'll live forever. Live like you're gonna die 2morrow!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:16 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com