homepage Welcome to WebmasterWorld Guest from 54.204.249.184
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
animated gif
Gabby7




msg:4435360
 6:21 pm on Mar 30, 2012 (gmt 0)

Hi+
I found a free javascript program that animates a small bug to crawl across the screen. I changed the generic bug to a specific bug, then the bug started moving in jerky movements, disappears at times, and has even moved backwards...Another Forum Member (in a different forum class because I thought my issue was with the browser) clarified my problem to be that I'm using an animated gif of a bug, then applying script to it to move it around as well...So, I changed the gif to only 1 image of the new bug and now it 'crawls' a few steps and freezes. In case you can't tell, I'm very new with javascript...can someone please explain what I should do to fix my error? All guidance would be greatly appreciated.
+Thanks

 

rocknbil




msg:4436280
 4:54 pm on Apr 2, 2012 (gmt 0)

The **best** advice: Don't do "stupid web tricks." They will just annoy your visitors.

The get-it-working-advice: Start from the original working text page again and examine what you are changing a little more carefully. Does your new bug have a different image size? Read the documentation on the free script, if any.

It's also important to clear the cache between changes, this can also give you inconsistent results in testing.

Set up the buggy page (har har) where you can access it via FireFox and open the Error Console prior to loading the page. Load up the page and watch the Error Console carefully, and attempt to decipher it's meaning. It's sometimes vague, but will always report a line number if there are errors.

Gabby7




msg:4436301
 5:39 pm on Apr 2, 2012 (gmt 0)

Thank you for the information. Yes, I know! "No stupid tricks!" But, my client wants the bug on their home page. :( I will do as you suggest and see what I can figure out.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved