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 03-16-2009, 10:25 PM   PM User | #16
gsprague
New Coder

 
Join Date: Jan 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
gsprague is an unknown quantity at this point
Has anyone actually got this working properly with animation?
gsprague is offline   Reply With Quote
Old 05-04-2009, 08:10 AM   PM User | #17
carana
New to the CF scene

 
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
carana is an unknown quantity at this point
Maybe i can help you

I see a little difference, you put the code into the onclick tag but i put it into the title, try this:

Code:
<a title="$.scrollTo( '#productora', 800, {easing:'elasout'} );" href="#productora"onClick="DHTMLSound('sounds/click.mp3')" >La Productora</a>


you can see how it works here
carana is offline   Reply With Quote
Old 06-05-2009, 12:00 AM   PM User | #18
edn
New to the CF scene

 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
edn is an unknown quantity at this point
Unhappy still not working for me

Hi,

I am using this plugin to act as a scroll to top of page function, but despite trying all of these things, it's still just jumping to the top of the page (even when i tweak the duration) I also tried it with different elements on the page, and it's still just a plain jump....... I don't know if this is affecting it or if there's a way to get rid of this, but once i click the button the hash shows up in the URL.....Thanks!! Here are the basic elements I'm using:

target div at top of page:

<div id='menu-1'>
<div class='section-menu-1' style="cursorointer" onclick="tinker('top-menu');">this is the target element at page top
</div>
</div>

and then the button:

<div style="padding-top:80px;padding-bottom:80px;text-align:center;font-size:14px">
<a href='#' onclick="$.scrollTo( '#menu-1', 8000, {easing:'elasout'} ); return false;">back to top</a>
</div>
edn is offline   Reply With Quote
Old 06-08-2009, 07:17 PM   PM User | #19
lastlife
New to the CF scene

 
Join Date: Jun 2009
Location: austin, tx
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
lastlife is an unknown quantity at this point
I found this threat after suffering from the same defects as you all above.
I have linked jquery as well as the .scrollTo.js file in my html file.
My links manage to jump to the correct #div, but no animation!!! What gives?!

I am also new the the javascript/JQuery game but am good at following orders. I just cannot figure this one out.

Here is my test page:
http://www.lastlifegraphics.com/jqueryfun/scrollTo.html


Any advice would be grand! thank you in advance.

- j
lastlife is offline   Reply With Quote
Old 06-16-2009, 10:29 AM   PM User | #20
Buck
New to the CF scene

 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Buck is an unknown quantity at this point
Hi,

if you want to use the 'easing.elasout' function you need to define it first in the html <head> section as NancyJ stated earlier in this thread:

Code:
<script type="text/javascript">
<!--
jQuery(function( $ ){
		//borrowed from jQuery easing plugin
		//http://gsgd.co.uk/sandbox/jquery.easing.php
		$.scrollTo.defaults.axis = 'xy'; 
		$.easing.elasout = function(x, t, b, c, d) {
			var s=1.70158;var p=0;var a=c;
			if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
			if (a < Math.abs(c)) { a=c; var s=p/4; }
			else var s = p/(2*Math.PI) * Math.asin (c/a);
			return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
		};
		});
// -->
</script>
Change the 'title= ...' to 'onclick= ..."

Code:
<a href="#target-examples" onclick="$.scrollTo( '#target-examples', 8000, {easing:'elasout'} );">
to see how it works without the 'easing.elasout':

Code:
<a href="#target-examples" onclick="$.scrollTo( '#target-examples', 2000 );">
Hope it helps!
Buck is offline   Reply With Quote
Old 07-17-2009, 08:22 AM   PM User | #21
ilujahn
New to the CF scene

 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ilujahn is an unknown quantity at this point
Hey guys,

I spent many hours yesterday on this plug-in to make it work, but no luck. This morning I did it

Use jQuery 1.3.2, not 1.2.6, and scrollTo 1.4.2, not 1.4.0.


With the combination of jQuery 1.2.6 and scrollTo 1.4.0 nothing happened. I know I wrote the code correctly because I am very familiar with jQuery (even wrote plug-ins of my own).

So, use jQuery 1.3.2 and scrollTo 1.4.2. It worked for me.

Hope it helps.
ilujahn is offline   Reply With Quote
Old 09-09-2009, 06:32 PM   PM User | #22
Sloth86
New to the CF scene

 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Sloth86 is an unknown quantity at this point
Unhappy hello

Hey can anyone help me out? i know these post are kind of old but if anyone is still reading them can you please help me out? when i run the code firebug tells me what the issues are but i cant really figure out how to fix it. it says jquery is not defined ... i think i've followed the demo to a T and even looked their source code to see what my problem was, and i guess I'm just missing some thing. if anyone could help id appreciate it .
Sloth86 is offline   Reply With Quote
Old 09-09-2009, 07:58 PM   PM User | #23
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
Heya Sloth86,

Perhaps you could start a thread that describes your problem in full, including what code you've tried, and maybe even a link to your page that has the problem.

While you're at it, read the guidelines first:

http://www.codingforums.com/postguide.htm
__________________
Fumigator is offline   Reply With Quote
Old 09-09-2009, 09:40 PM   PM User | #24
Sloth86
New to the CF scene

 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Sloth86 is an unknown quantity at this point
Thank you

Thanks Fumigator ill do that now.
Sloth86 is offline   Reply With Quote
Old 12-09-2009, 01:04 PM   PM User | #25
naseem
New to the CF scene

 
Join Date: Dec 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
naseem is an unknown quantity at this point
Hy, just registered, I'm having some problem with the plugin as well, you can see code and problem at this page (work in progress), www.silentbreeze-yurt.com , what happens in firefox and some other browsers as well is that when the button up is pressed for a moment it blinks the header of page and then back to the movement ftom bottom up to top page, it's as if the link is followed first and then the plug in enters and perform the task afterwords, please help
naseem is offline   Reply With Quote
Old 12-09-2009, 03:14 PM   PM User | #26
Spudhead
Senior Coder

 
Spudhead's Avatar
 
Join Date: Jun 2002
Location: London, UK
Posts: 1,856
Thanks: 8
Thanked 110 Times in 109 Posts
Spudhead is on a distinguished road
Hi naseem - you might want to read Fumigator's post a couple of posts above yours

Quote:
Originally Posted by Fumigator View Post
Heya Sloth86,

Perhaps you could start a thread that describes your problem in full, including what code you've tried, and maybe even a link to your page that has the problem.

While you're at it, read the guidelines first:

http://www.codingforums.com/postguide.htm
Spudhead is offline   Reply With Quote
Old 03-12-2011, 12:58 PM   PM User | #27
Sputnik1
New to the CF scene

 
Join Date: Mar 2011
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Sputnik1 is an unknown quantity at this point
Problems implementing Fe

Kempobot, you're a saviour. I've spent a week trying to implement Flesler's ScrollTo script. It's a fantastic script but his instructions leave JavaScript beginners like me quaking at the knees. Yours was the only step-by-step instruction I could find, so thank you very much!

I was wondering if you (or anyone ) could help with something.
I need to queue the x-axis and y-axis motion. Some links will scroll first x, then y, others will do the opposite. This is what my link looks like:

Code:
<a onclick="$.scrollTo( '#C5', 2000, {queue:true}, {axis:'xy'}, {easing:'swing'} );" href="#">MyLink</a>
Here is a stripped down version of my page.

The scrolling works okay but the x/y axis separation doesn't. There's probably something really silly that I missed.
Also I've noticed strange behaviour. Firstly, there is a rapid flash that happens just as the scrolling starts. Secondly, if I click on a link, and then click on another befor the scrolling has stopped, it sems to try follow the "#" href. and then shoots off to the wrong place.

I included this JQuery easing script from this website which seems quite popular. Could that be the problem? I'm using Firefox V3.6.15.


Any help would be hugely appreciated!

Last edited by Sputnik1; 03-12-2011 at 02:35 PM.. Reason: I clicked Save too soon and then noticed some errors.
Sputnik1 is offline   Reply With Quote
Old 03-12-2011, 02:42 PM   PM User | #28
Sputnik1
New to the CF scene

 
Join Date: Mar 2011
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Sputnik1 is an unknown quantity at this point
Oops, my original post was at the end.
Kempobot, you're a saviour. I've spent a week trying to implement Flesler's ScrollTo script. It's a fantastic script but his instructions leave JavaScript beginners like me quaking at the knees. Yours was the only step-by-step instruction I could find, so thank you very much!

I was wondering if you (or anyone ) could help with something.
I need to queue the x-axis and y-axis motion. Some links will scroll first x, then y, others will do the opposite. This is what my link looks like:

Code:
<a onclick="$.scrollTo( '#C5', 2000, {queue:true}, {axis:'xy'}, {easing:'swing'} );" href="#">MyLink</a>
Here is a stripped down version of my page.

The scrolling works okay but the x/y axis separation doesn't. There's probably something really silly that I missed.
Also I've noticed strange behaviour. Firstly, there is a rapid flash that happens just as the scrolling starts. Secondly, if I click on a link, and then click on another befor the scrolling has stopped, it sems to try follow the "#" href. and then shoots off to the wrong place.

I included this JQuery easing script from this website which seems quite popular. Could that be the problem? I'm using Firefox V3.6.15.


Any help would be hugely appreciated!
Sputnik1 is offline   Reply With Quote
Reply

Bookmarks

Tags
javascript, jquery, scrollto, slide

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 09:20 AM.


Advertisement
Log in to turn off these ads.