Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-22-2012, 11:36 AM   PM User | #1
thelagreenski
New to the CF scene

 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
thelagreenski is an unknown quantity at this point
Macintosh Parallax effect does not work properly unless the window is refreshed.

Hey ya'll! I am inexperienced when it comes to javascript and am hoping to find a solution to an issue I am having with a parallax script.

Here is a link to my test page: http://lagreenski.com/para
I also provided a link so that you can download all of the files if necessary.

As you can see, the script does not want to work when the window is first loaded or when the cache is cleared. However, if you load the page again, the effect works (at least in Firefox and Safari).

Any ideas as to why this is happening? I really appreciate your help. Thanks!

-Nick
thelagreenski is offline   Reply With Quote
Old 10-22-2012, 03:59 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,364
Thanks: 18
Thanked 348 Times in 347 Posts
sunfighter is on a distinguished road
If it is supposed to work by mouse movement then it works the first time in ff. But I did notice you have no doctype and the <div id="wrapper"> has no closing tag.
sunfighter is offline   Reply With Quote
Old 10-22-2012, 10:45 PM   PM User | #3
thelagreenski
New to the CF scene

 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
thelagreenski is an unknown quantity at this point
Thanks for the help!

For some reason Chrome and Safari need to be reloaded but FF doesn't have a problem with the script.

Thank you for pointing out the div tag that was open as well.
thelagreenski is offline   Reply With Quote
Reply

Bookmarks

Tags
animation, background-position, hover, mootools, parralax

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:06 AM.


Advertisement
Log in to turn off these ads.