JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 13th, 2012, 07:15 PM
kippie kippie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 297 kippie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 26 m 17 sec
Reputation Power: 12
How to make a stop for this autoscroll?

For my site I want to make a stop to autoscrollinging images. For this I want to use a link with <a> tags. The public method to be used for this is said to be:

$("#makeMeScrollable").smoothDivScroll("stopAutoScrolling")

I'm new to javascript. Can anyone help me with this?

Reply With Quote
  #2  
Old August 13th, 2012, 08:55 PM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,835 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Months 1 Day 22 h 11 m
Reputation Power: 4192
Not posting a link to the script makes it hard to help you. Here's the link for anyone else who reads this: http://www.smoothdivscroll.com/lab.html

Did you not see my reply to your earlier thread on this topic? Here's what I said:
Quote:
Originally Posted by Kravvitz
It must be using JavaScript. I would not recommend that you use that particular script though, because it may be as awful as the HTML it's used with.

Just because you can make pretty much any element clickable, doesn't mean that you should. Links and buttons are the proper elements for such a user interaction.

If you're using jQuery already, I recommend jCarousel Lite.
__________________
Spreading knowledge, one newbie at a time. I'm available for hire at Dynamic Site Solutions.

Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

Remember people spend most of their time on other people's sites (so don't violate web design conventions).

Reply With Quote
  #3  
Old August 14th, 2012, 03:17 AM
kippie kippie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 297 kippie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 26 m 17 sec
Reputation Power: 12
Quote:
Originally Posted by Kravvitz
Not posting a link to the script makes it hard to help you. Here's the link for anyone else who reads this: http://www.smoothdivscroll.com/lab.html

Did you not see my reply to your earlier thread on this topic? Here's what I said:


Hi Kravitz,

Yes I read your reaction, of coure, thanks a lot. The point is this. I try to make a page using smoothDivScroll of Thomas Kahn (see www.smoothdivscroll.com). On the labpage (www.smoothdivscroll.com/labpage.html) Kahn uses all kind of links and buttos to controll the scroller. I would like to use three of them: start, move to the right and move to the left.

On another page (http://www.smoothdivscroll.com/publicMethods.html) Kahn writes about the Public Methods he uses which you can use to create your own eventhandler. About the start of the autoscrolling he says: The public method to be used for this is:

$("#makeMeScrollable").smoothDivScroll("stopAutoScrolling");

So I thought maybe it is possible to make a simple button or link to start this autoscrolling. But the point is, I don't know how to do this.

I'm new to javascript so I don't know if this is possible at all, I hope my information is not too confused and I have explained this clear enough.

I hope someone can help.



to I want to make three buttons to start the autostart

Reply With Quote
  #4  
Old August 14th, 2012, 03:24 PM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,835 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Months 1 Day 22 h 11 m
Reputation Power: 4192
Of course it's possible. If it wasn't possible with this script, there are others.

This stops the auto scrolling:
Code:
$("#makeMeScrollable").smoothDivScroll("stopAutoScrolling");

This starts the auto scrolling:
Code:
$("#makeMeScrollable").smoothDivScroll("startAutoScrolling");

On line 463 of the lab page, you'll find this, which attaches the event handler to the link to start the autoscrolling:
Code:
		// Start auto scrolling
		$("#startAutoScrolling").click(function () {
			$("div#makeMeScrollable").smoothDivScroll("startAutoScrolling");
		});

I understand what you want, but you're trying to do intermediate level things without learning the basics first.

Last edited by Kravvitz : August 14th, 2012 at 08:55 PM. Reason: fixed the code tags

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > How to make a stop for this autoscroll?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap