The Tiny Scrolling(s)
First published on March 25, 2006 and March 31, 2006
Start with an example is the better way to begin a javascript technique post: click one of the links above to see straight away - in two meanings - what i’m going to talk about.
- What is Tiny Scrolling?
- How can I use it?
- How does it works?
- Where I can download it?
- Someone to thanks?
- What about an “horizontal tiny scrolling“?
What is Tiny Scrolling?
Tiny Scrolling is a small script dedicated to support the navigation between the internal links and their destinations.
It replace that annoying and confusing jump from various part of a page with a smooth scroll of the page itself. The user will never say: “Ehi, but where am I now?” but “Oh, thanks for accompany me there!”
How can I use it?
An internal link is an anchor that refers to a fragment identifier, so to a part of the document inserted in an element with a particular “id” attribute.
For example, every title of this post is inserted in an heading with attribute “id” and has one (o more) anchors that links to it: the anchor <a href="#what">What is...</a> refers to the element <h3 id="#what">...</> The <h3> could be replaced by a <div>, a <p>, a <span> or one of the other elements.
To add the smooth scrolling effect you don’t need to modify any of the tag below: following the unobtruvise js first rule the only thing that you could do is to insert in the head of your HTML document a line like this:
<script type="text/javascript" src="tinyscrolling.js"></script>
The places for ideal use of this script are long documents subdivided in titled paragraphes (like this page already linked), or simply the footers containing links that “back to top” of the site.
How does it works?
The functioning is simple: using three principal function it searches the links inside the page with an “#” inside, look at the destination calculating its position, and “scrollTo” it.
(Here start the annoying section: go forward until you are in time!)
The first function searches all the links in the page, selects those with the hash “#” inside, controls for the pathname and the querystring, and attaches an onclick event handler:
init: function() {
var lnks = document.getElementsByTagName('a');
for(var i = 0, lnk; lnk = lnks[i]; i++) {
if ((lnk.href && lnk.href.indexOf('#') != -1) && ( (lnk.pathname == location.pathname) ||
('/'+lnk.pathname == location.pathname) ) && (lnk.search == location.search)) {
lnk.onclick = tinyScrolling.initScroll;
}
}
},
This is the second function, that: 1)prepares to read informations about the event; 2)extract the string after the “#”; 3) set a variable related to the element that has as “id” the string itself; 4)searches the relative position of that element in the document.
initScroll: function(e){
var targ;
if (!e) var e = window.event;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
tinyScrolling.hash = targ.href.substr(targ.href.indexOf('#')+1,targ.href.length);
tinyScrolling.currentBlock = document.getElementById(tinyScrolling.hash);
if(!tinyScrolling.currentBlock) return;
tinyScrolling.requestedY = tinyScrolling.getElementYpos(tinyScrolling.currentBlock);
tinyScrolling.scroll();
return false;
},
The third and last principal function is more complicated. First sets a variable (”top”) with the position of scroll bar from the top of the window, then control If the relative position of the searched element (”requestedY”) is greater than this variable value: if yes, it means that the page must to scroll down.
The “offset” is the distance that the scroll bar must to cover, and is calculated using two important variables: “endDistance” and “maxStep”. The first is obtained using the document and the window height; this is interesting for the anchors that refers to a part of the document at the bottom of the page, where sometimes the height of this part is less than the height of the window so the scroll bar can’t positioning the top of this part at the top of the window, as happens with the other parts of a document.
The second “endDistance”, instead, refers to a simply distance from the position of scroll bar to the requested element. The variable “maxStep” is used from long pages: for a certain distance the scroll bar has a uniform motion, and slow down when is arriving to the destination, while brakeK is an abitrary “coefficient of slowing down”.
If “requestedY” is less than the top, the page must to scroll up: there isn’t the problem with the height of page so the offset is calculated in one step. The shift will be execute by the function “scrollTo”, and the last lines stop this motion if the distance has been covered. If that’s not, there’s a recursive call to the same function that starts from the begin.
scroll: function(){
var top = tinyScrolling.getScrollTop();
tinyScrolling.lastY = top;
if(tinyScrolling.requestedY > top) {
var endDistance = Math.round((tinyScrolling.getDocumentHeight() - (top + tinyScrolling.getWindowHeight())) / tinyScrolling.brakeK);
endDistance = Math.min(Math.round((tinyScrolling.requestedY-top)/ tinyScrolling.brakeK), endDistance);
var offset = Math.max(2, Math.min(endDistance, tinyScrolling.maxStep));
} else { var offset = - Math.min(Math.abs(Math.round((tinyScrolling.requestedY-top)/ tinyScrolling.brakeK)), tinyScrolling.maxStep);
} window.scrollTo(0, top + offset);
if(Math.abs(top-tinyScrolling.requestedY) < = 1 || tinyScrolling.getScrollTop() == top) {
tinyScrolling.lastY = -1;
window.scrollTo(0, tinyScrolling.requestedY);
if(!document.all) location.hash = tinyScrolling.hash;
tinyScrolling.hash = null;
} else setTimeout(tinyScrolling.scroll,tinyScrolling.speed);
}
Where I can download it?
Here. You can download the standalone javascript or a .zip with a example html page inside.
- Download the script (.js)
- Download the script with sample (.zip)
Another online example is located here.
Someone to thanks?
Tiny Scrolling is an optimization of two previous “smooth scrolling” techniques played by Travis Beckham and Brian McAllister.
A very big thanks to my magister Skid X for the fix of two relevant bugs.
Thanks also toTakeshi Takatsudo for a jQuery version of the script.
You can find other interesting “smooth scrolling” solutions in the scripts by Stuart Landgridge, Dave Lindquist and Valerio Proietti.
The Horizontal Tiny Scrolling
Some time ago, in a italian post called “Who is afraid of the horizontal scrolling?“, I started to be interesting in an unusual layout that “force” to scroll a page from left to right (a bit magazine-like) instead of from top to bottom as in the classic mode.
To avoid to move the bottom scrollbar with mouse every time, I thinked to modify the Tiny Scrolling to help this particular motion using equally internal links.
I called this version “Horizontal Tiny Scrolling”, a name decided after six hours of dramatic brainstorming.
I will not bore you as in the previous post, only because the working of the ’smooth scrolling’ is pretty the same: the script searches for an internal link (with a ‘#’ inside), control the position of the respective element and make a scroll to this at a variable speed, replacing the usual confusing direct jump.
This time naturally the motion will be from left to right, and back.
As you can see in the online example, building a “standard” horizontal layout I placed the paragraphs side by side, applying the float property; at the click of one of the internal link, the scroll will stop the requested paragraph at the left extremity of the page.
(it can be add the temporary lighting of the interested element through the Fade Anithing Technique) .
After the different working of the “scrollTo” the functions don’t refers any more to relative Y position and the height of the document or the window, but naturally to X position e widths. (see here)
Update: Thanks to Michael Ionita-Ganea (mizi) for two bug fixes and all the “community” below that tested the scripts :-)
wow thank you for this, I have been looking everywhere for a script to do this!
the only problem is in Firefox it scrolls very slowly. In Safari it seems fine but in Firefox it’s horrible! :(
do you know why?
I would love to use this script but that one thing needs to be fixed.
very nice script! thx a lot! although I have some troubles executing it from flash…
@skull_lab: i will take a look soon to fix this problem.
@PseudoPlacedo: mmm, I haven’t tried with Flash: did you already made an example?
I have added a function which one can call to jump to a specific horizontal Position even via Flash.
It works on the document.getElementById basis.
Nothing complicated.
http://www.ladybird.at/mizi/horizontalScrolling/THW_template_0.6.rar
Just download this rar and look at:
-the “goto” button at the bottom.
It calls the added function “gotoit” and jumps to a specific layer with the id given.
In Flash:
You just have to call getURL(”javascript:gotoit(’desired layerId’))”;
Hope it’s useful.
Enjoy.
Hi
This is a great script. The only thing stopping me from using it is the fact that it doesn’t support the browser ‘back’ button. Is this something that is fixable?
Many thanks
Sam
Bug fixed: Speed of Script while going to the right.
http://www.ladybird.at/mizi/horizontalScrolling/THW_template_0.6.rar
It is possible to go back with Browser Back button. You have to capture the event “back” and goto the last position. You can save the positions in an array.
But I don’t know how to code this.
Sorry,
mizi.
Hi
skull_lab said:
the only problem is in Firefox it scrolls very slowly.
It solved this problem?
Please give me some hints!
I really want to use this script, but its scrolls very slow to the right and sometimes it says the internal likes are “gone” displaying a missing page, any ideias ? Thk
[…] looks like is a script called tiny scrolling using the protoype framework __________________ In the meantime, I got this plan. It’s called […]
Hey, I’m trying to make tinyscroll.js work with images as links, but i can’t seem to get it to work. I’m working in dreamweaver and i can get my text links to work but not my image links. I really need help on this. Thanks
Hi,
Thanks for this awesome script. It open a lot of perspective for me !
I’m just trying to find a way to make the smooth move elastic like the flash class.
Do you have an idea to make my dream come true ;-) ?
Thanks a lot !
Hi I would like to ask that same question as no. 10. How can this work with image as link?
Thanks a million!! I have been trying to dig through a bunch of horizontal sites for this project, and your message board (found through kirupa) & code snippet are off the wall!
Thanks!
There is a problem, if you set the body and the html height=100%. Then it scrolls up normal an down very slowly! Any ideas to fix the bug? (I can’t miss the 100% for body and html)
Hi
Thanks for the amazing script!!! Does anyone help me to implement the STOP SCROLL function? I want to scroll my webpage slowly and have a button on it which STOPS the scrolling anytime. Please help :)
First off, this is fantastic stuff! :)) I ran into one snag though, as 10 and 12 did, where images won’t work to trigger the scroll, though text works perfectly. Has anyone figured out the tweak by chance?
hello all.
to make this script scroll back to top we should do this:
call the page with an anchor you’ll put on top. http://www.page.com/test.php#begin
then when you click on and item, the #begin scrolls down and then is replaced by the new item #itemmenunumber5
now, if I click back button and it goes to #begin which has the current position then it should scroll back again up because when page loads, it scrolls up to that anchor.
am I talking nonsense?
if I’m already and the top, and it scrolls up I wont notice anything.
[…] こちらからダウンロードしてください。 […]
thank you!
however for me it only works half the time for some reason!
i have a “skip to content” link a the top of my page and a “back to top” link at the bottom of the page.
the “back to top” link works (scrolls smoothly) but the “skip to content” link just jumps to the appropriate location as if the script wasn’t there at all…
what is going on here?!
Hi, thanks for the great script.
I have a problem (like #10) : when I try to do this with images as links it doesnt work…
Thank you for developing this script. Like others above me, I did run into some problems with the right-scrolling (very slow). Mizi’s fix worked with the speed, but at the expense of the arrow scrolling (it stopped working somehow).
Never mind. Mizi’s fix was the solution. I just needed to uncomment scrolltips. :)
[…] The Tiny Scrolling(s) - from The Lab of the weblog Central Scrutinizer Category: Worcester Blogs […]
I am trying to get this to scroll down to a div id instead of a h3 id - but am having no luck. has any one done this and can you shed some light?
would it be possible to combine the horizontal and vertical tiny scrollings?
hi, great script. just one thing, in firefox when i click on the link of the name of the section and it hasn’t scrolled to the right section yet and i click on a different section link, it reloads the whole page. any ideas? http://moourl.com/temp0
[…] Some glyphs probably loved by Peter Beard. - Bryan Katzel and his one page site (using my Vertical Tiny Scrolling […]
Good for people to know.
I’m trying to add a 300 pixel top margin to the scroller because I have a fixed position div at the top that is 300 pixels high. I’ve tried a few things to edit the javascript with some success but just can’t get it right….any suggestions?
hey awsome script just wondering if i can link to an anchor on another page? i am using scroll in a iframe and want the outside page to have a link which resets scroll? any help would be much appreciated.
Great script. It seems the script does not work when the page is not in the root directory. Any work around it?
To be more precise, ln mod rewritten URLs
[…] ProtoType Horizontal Tiny Scrolling JQuery Serial Scroll MooFx ScrollTo Demo Creating a side scrolling page effect with Scriptaculous […]
hi
roq273fjuu5bp89p
good luck
hi
hsdmcms7rcasyuom
good luck
hi
roq273fjuu5bp89p
good luck
IMAGES, IMAGES, IMAGES…
I don’t know if anyone is still interested in how to use this with an IMAGE, but after a few hours of “I just know there is a way”… I will try to be as specific as I can, and some comments do not allow code. but here goes.
1. Create an image 30w x 20h (px.). 2. in the line I want the image, enter
3. make CSS style tags of:
a.desc2:link, a.desc2:visited, a.desc2:hover {font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
font-weight: normal;
color: #333333;
text-align: right;
text-decoration: none;
padding: 2px 2px 1px 20px; background: #ffffff url(/icon_down.gif) right center no-repeat;
}
.desc2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 1px;
font-weight: normal;
color: #ffffff;
text-align: right;
text-decoration: none;
}
4. this simply puts a background image under a tiny space. Works perfectly in ie7 and ff.
Darn, it got most of it… just messed up step #2… I will try it again…
If this does not work, just use the contact form on my site http://www.pagesbytom.com and I will send you a file.
AND to whomever put this original code here, EXCELLENT!! I tried, I don’t know how many different smooth scrollers, before I got one to work in an Iframe inside a parent page that would not affect the parent (except FF which I dont like anyways :) ).
this is a great script.
I’m tryin to fix the right scrolling speed, but I can’t open mizi’s bug fix! can someone help me!?!
Has the scroll speed in IE and FF been fixed yet at all?
Cheers
Si
mizi’s rar file (comment #78) also fixes another firefox issue for me, where after scrolling, the page would “pop down” to the top of the text rather than the top of the div’s.
Hi, I’d like to know if is possible to put between the floating arrows all the menu that appear only in first page, and of course how I must change in the code thanks.
Hey! I’m curious if anyone can tell me why the div’si have targeted as the containers will not style with the css? I have each div labeled one, two, three, and so forth, and to trget them, they are and so forth. Do i need to add class to the containers to get them to style correctly?
thanks in advance. this script is awesome.
never mind. it was a stupid mistake on my part.
i will post a link back to the site when live.
thanks again to all who have complied this.
Hi there,
I love your script. Thank you very much for your work! Im looking for mizis ra file which could solve the slow speed scrolling. Cant find it. Please help?
“mizi’s rar file (comment #78) also fixes another firefox issue for me, where after scrolling, the page would “pop down” to the top of the text rather than the top of the div’s.”
Hello.
It works fine with me, but what if I want the div which is the container of the content to scroll up and down, not the whole window, because i have a fixed background.
Any ideas?
Thanks
Thanks, found the rar-file!
Hi, anyone knows how to integrate the script to a flash menu wich calls the anchors with a getURL. I’m using
getURL(”javascript:window.location.href=’http://www.mypage.com/index.html#anchor’;void(0);”); to link the flash menu to the corresponent anchor… But the scroll doesn’t work… :(
Anybody could help me?
It works fine when scrolling from right to left, but it works too slow when scrolling to left to right…
Does anyone know how to fix it?? I’ve tried many options but I couldn’t make it work.
Any help may be welcome
thanks in advance!
Ivan
This is a fantastic script! This is a little over my head, but would it be possible to combine the two Tiny Scrolling scripts so that works in x and y at the same time? I appreciate any thoughts.
IMAGE FIX
Look at the file for horizontal scrolling. There is a fix mentioned in there. Its marked FIX. Its only one line long and has one associated function. Copy those into the tiny scrolling file and change the names to work.
Hello here,
Juste a quick comment to thank you all, for the script (horizontal for me) and especialy Mizi: a big thanks to you for the slow speed fix.
When loaded in firefox, the smooth scroll doesn’t work properly upon first attempt. After a few clicks of the links, it will then work properly, but other than that, it jumps from container to container. If anyone could assist me in why this may be i would appreciate it.
Could you give us a link to watch it? ;-) (A more easy way to understand what’s wrong.)
Great Script!!!
[…] Update 2: (caps-lock fury on): THIS POST IS CLOSED: SCRIPTS UPDATED AND BUG FIXES HERE ON THE LAB!! […]
It seem to not work in IE. How do I fix it? Pls. help me. Thanks.
[…] Avec la démocratisation des frameworks JavaScript (JQuery et Mootools notamment), des designs à défilement horizontal (horizontal scrolling) ont vu le jour. Voici 3 exemples de ces designs, le premier utilise JQuery, le second utilise Mootools et le 3ème un plugin JavaScript : Tiny Horizontal Scrolling. […]
Thank you so much!!!!! we are using it for a project with some students of architecture in australia. Much appreciated as we are not getting paid for helping the guys with the exhibition site and it speed a lot our work.
Thanks again!!!!!
basis half emit sea thus gas
how do i get my website to have the menu on the side just like
http://www.ericryananderson.com/
how do i go about doing this?
Just wanted to say THANKS for making this so easy.. not only did you write an awesome plugin, but you offered up and website framework for designing a horizontal website.. I do plan on doing mine a little different, but it was PERFECT to start with!!!!
I do have a question.. is there a max width for any particular browser?? for instance, how long REALLY can you go with this??
hey dude.. I’m back and I have a little bit of an issue.. i have been able to use your addon with an image based menu, but when I use an image menu that get’s it’s links from a map (like coordinates) it does not work. I’m assuming its because of the lack of the anchor.. Instead my link looks like this:
Is there a place in the code where I can account for the area shape too? I would like to have both there if possible
Oh yea,, and I uploaded what I am working on, so you can see it here:
http://bscphoto.com/design
joseph.. to get a fixed navigation, all you do is create a and in the css add the following:
position:fixed;
that will keep it in that position no matter where you scroll.
alright.. I havent gotten a respond on this yet, but I am still very happy with this plugin. None the less, I have created a hacky type of fix.. What I did was created CSS style hotspots instead of dreamweaver image maps.. So i added the picture as normal inside of a containing div, and then created another div that contains a list of links with nothing in them (no anchor text). Then I gave each individual link its own class that placed it directly over the area that I want to be clickable.
Thisis really NOT idea for me, as I would like to have some type of hover effect too, but i cant to it this way..
It also is going to create a HUGE css file filled with these css hotspots because I am going to have a different set of navigation links on every page, so theyw ill ALL need their own classes..
So I am STILL hoping for a javascript fix for this.. so please.. PLEASE, if you are still supporting this addon, please post here or email me and give me some type of direction!! You can see my progress here:
design.bscphoto.com
very thank u
does anyone work on this blog anymore??
Great script… but I have a question.
I have a Container… within that I have a Header (that I want to stay center browser), Content (images that scroll horizontally), and a Footer (that I want to stay center browser).
I understand how to get things to stay center browser, but what happens when I apply this script and the Content gets really wide (and I assume I have to set the width in the Body) the Header and the Footer centers to the width (way right) and not to the browser window.
Is there a CSS work-around for this?
Thanks! Email me if you like.
Hi, first of all, congrats for the script!
Now the problem…
Look at this test page: http://www.espiritodoferro.com/teste/
The demo pages are working well on my Firefox 3.5.3 @ Mac OS Leopard, but not this test page.
It don’t slide down, only do the effect when sliding up. (it works totally on Safari)
Can anyone help me?
I’ve already tested on Internet Explorer and Firefox on PC too, and have the same problem!
Please help me, it’s urgent :/
Thanks in advance
Ciao usando il tuo script v0.8 mi viene fuori errore nella riga 147 sia su firefox 3.5 che su explorer 6
Lo script funziona ma da questi errori che sono abbastanza fastidiosi.
Su firefox :
Errore: obj is null
File sorgente: http://…/js/thw.js
Riga: 147
Su ie
IE7:
linea 148
carattere 2
errore Necessario oggetto
codice 0
Si può fare qualcosa?
Grazie
PS complimentii per lo script cercavo da tempo una cosa simile.
[…] progressif dans les liens “ancre” d’une page. Il s’agit de “Tiny scrolling“. Un exemple de site utilisant ce javascript : Horizontal way ou encore celui-ci qui est plus […]
Hi There,
This is indeed a great script as many have mentioned. Is there any way to control the speed of scrolling on the Left and Right Arrows? There are settings in the .js file for the scrolling on links to the various sections of the page, but these don’t seem to change the speed of scrolling on the arrows.
Hey there,
I’m trying to put a delay before the scrolling effect is activated… and I can’t figure out how. Just a few seconds after a link is clicked before it scrolls. Any help?
Is there a way to use your own horizontal scrollbar rather than the browsers. Similar to this site: http://www.sarahrhoads.com/blog/
Hi, this is a great script, I’m wondering if anyone knows of a way to use the Horizontal way but only have it scroll a div that is part of the page, so your only scrolling a section? Also is there a way to have it scroll continuous and have the arrows control the direction, mouse over content to pause?
Thanks!
ROB
I had a problem with an IE error showing up and I figured it out. I thought some of you would benefit if I posted.
If you use the thw.js and omit the forward and back arrow functionality you will get that error in IE unless you omit the code for it in the .js file. You have to comment out the scrollTips.init(); in the beginning and then the actual function scrollTips.init();
[…] tinyscrollingから「Download the script with sample (.zip)」をダウンロードし、解凍したのちフォルダごとサーバーへアップします。 […]
A violet-colored soil is born,
Compassion wing ger, such as man …
One promised in the realm of spirits,
You’re giving back to the words, such as man …
Yours is wet stone hearts in
Hopes disappear in rose petals,
Friends can be lying in the market,
Find immortal man, as man …
Dessert at the end of every day,
This loop has a price in life,
If the name of Islamic identity, the
Into account the self-check, such as man …
Can bodies are entrusted in the country,
When people are shot in coffee,
A wounded bird fluttering on the soul,
Into the grave without dying, like the man …
Who on earth you’ve visited?
You benefit from all those who favor?
Read the call to prayer, the bells play who?
Bedtime each day thinking, man, like …
Although the load hit the back waist,
She goes to lie rızkım,
The head upright, these are the essence to comply,
Anyone submission, such as man …
Ben seni;
I dropped all the masks, the
In the purest form of my emotions,
Deceive myself from
Do you mind I see someone without
I shed tears as I liked …
Sometimes I felt myself weak,
Sometimes solitary,
My dough is already my heart,
And every drop of my eyes was a charity,
I pray to Allah, while you,
I shed tears as I liked …
Words can not describe the trouble sometimes,
Get ya self one is condemned to silence,
Where the last bit of lyrics HOPE,
I’ve shed my tears I love you like …
Neat Script. Thanks. I was wondering if anyone has had any experience with getting it to work when shadowbox is present on the same page. The scrip seems to break shadowbox when it is called before shadowbox in the . ??? : )
anyone have any insight on this?
thanks!
[…] ułatwienia przewijania naszej strony zastosowałam skrypt Horizontal Tiny Scrolling. Pozwala on automatycznie przewinąć stronę do boxa dzięki kliknięciu w odpowiedni link w menu. […]
Hi there. I’ve sent an email to you and posted on your Facebook page (which you deleted) and haven’t heard a thing from you. This is a great script, but it clearly has issues in Safari, Chrome and Opera with the mouse wheel scrolling and the scrolling arrows disappearing and I am wondering if this is something that you plan on addressing or not?
Hi there, realy cool script but i have one problem. When i use “position: absolute;” in my css files the scrolling doenst work downwords. Is there a way around this? Because i realy need to use absolute psitions and i would like to use your script. Thx in advance
Do you think it would be possible to adapt this script into having the anchor tags located in variously located absolutely positioned containers throughout the page so you can make interesting transitions? sort of how http://www.sursly.com is, but more mapped out all over the page.
awesome script, using it for a client site right now. bit fiddly working out the best place for the anchors but aside from that worked without modification.
I have a fixed menu on the left side and the script makes the sliding content to slide “under” the menu si the text becomes invisible. Is there a way to tell the script not to scroll all the way to the beginning of the website?
Hi!
Is there some way to disable the .js on certain a href? There are some links that I would like to not animate - and some that don’t work ‘cos of the horizontal tiny scroll since they are supposed to scroll vertically (ie only).
Has anyone made it possible to combine tiny scroll and horizontal tiny scroll btw?
Hey, I’m super happy I can use this script! I’m not so good in building the sites, better in thinking of something difficult I want ;)
Is there someone who figured out how to make the scrolling go a little bit slower? I saw some people already asking but didn’t see any answer. I hope this is possible, it would work nicely on my design.
Thanks so much!
Ok, I see you can change it in the javascript, that you have already put instructions there. Yee! Thanks again!
Hi, I would like to use your horizontal tiny scrolling on a Right-to-left website. What do you think should be changed in the script?
Thanks
I just wanted to saw thanks a lot for this, you have been a live saver. I thought I was going to have to write my own javascript for this! It so simple as well!
Hi! First of, I just want to thank you for a great script, it’s just AWESOME! I’m planning on going the “Horizontal Way” for an upcoming project I’ll be working on and I was wondering how could I make the internal links show up in the address bar, like “index.html#about”? Any suggestions?
Is there a way for the scroller to load immediately and not when the page has finished loading. I have a lot of images on my page, so the buttons don’t start working until all the images have loaded, which crate a usability problem.
[…] The Tiny Scrolling(s) – from The Lab of the weblog Central Scrutinizer – […]
hello, I have a problem with the script. Works fine in IE but not firefox. Help!
Here the link: http://vicom.com.uy/ancla/index.html
hi all,
i have implemented tiny scrolling on my site correctly, but for some reason, it doesnt scroll, ive used the correct identifier for links to the sections on the page (E.G “#portfolioBlock”) with a link element linking to that DIV ID, but still doesnt work, im COMPLETELY stumped as to why this isnt working. i even created a blank page with one link and one div element to link to, and it works fine! so strange! anyway, if anyone could provide some help on this:
http://www.baysickdesign.com
you should be able to see the source and find why it isnt working, thanks in advance to anyone who can have a look!
Justin Moser
[…] website. I don’t really know much about Java Script, but I downloaded this script called Horizontal Tiny Scroller. The script basically lets you scroll the website horizontally, without using the scroll […]
[…] 使用tinyscrolling可以很方便的做到这一点,而且保证各个浏览器中都可以兼容。 […]
THANKS THANKS THANKS THANKS!
vertical scroling
about problem in Firefox and opera- scrolls up normal an down very slowly!
//var offset = Math.max(2, Math.min(endDistance, tinyScrolling.maxStep));
var offset = Math.min(Math.abs(Math.round((tinyScrolling.requestedY-top)/ tinyScrolling.brakeK)), tinyScrolling.maxStep);
after this change it works fine.
Thanks!
Hello all,
after searching through all the comments and questions i’m unure if anyone has managed to find the fix for the virtical sliding. On a Mac - saffari, it works fine in firefox the page almost refreshes for a second and the snaps to the relevant part of the page, if the link is higher in the page the slide works. Has anyone managed to fix this issue?
I’ve tried to use the THW script but thius is set up for the Horizontal?
any help would be great. my email is steve@fullydesigned.co.uk
many thanks
Ok the fix is above which has been added as I was typing.
the code is found on about line 63 and works fine
A BIG WELL DONE TO TAU
THANK YOU THANK YOU THANK YOU
Cant get the scrolling to work going forward just backward. Check out my website and let me know where I went wrong. Thanks!
[…] ページ内アンカーを滑らかにスクロールして移動するJavascriptライブラリTiny Scrollingをご紹介します。 »The Tiny Scrolling(s) – from The Lab of the weblog Central Scrutinizer […]
Thanks for creating this script, it has given my site’s experience a much needed lift.
I was trying to tweak the speed of the hover scroll and can’t seem to find the proper code to alter. Can someone please help me with this?
Also, I was trying to add a “back to front” button adjacent to the hover scroll because I’ve deleted the “next” and “prev” functions. I’m trying to recreate something along the lines of the original “left” button if that makes any sense. I’m not sure how to write the code for that because I’m a bit of a n00b if you haven’t noticed.
Thanks for your time and help. Hope to hear from you soon.
[…] a look at Horizontal Way and the smooth scroll/slider script they’ve had available for some time - The Tiny Scrolling(s) - from The Lab of the weblog Central Scrutinizer along with the .zip of the Horizontal Way template + the smooth scroll script HTH Greg […]
[…] a look at Horizontal Way and the smooth scroll/slider script they’ve had available for some time - The Tiny Scrolling(s) - from The Lab of the weblog Central Scrutinizer along with the .zip of the Horizontal Way template + the smooth scroll script HTH Greg […]
is there an easy way to automate the scrolling?
Is there any way keep the horizontal sliding (as in pages slide left-right), but keep the mouse wheel scrolling vertical?
Hi! Thank you for a great script. Recently I was building a site on The Horizontal Way Template and came across an issue in Google Chrome browser (7.0.517.41 - linux). Not Arrows nor Mouse wheel slide was working. I have slightly edited the The Horizontal Tiny Scrolling script in order to get it fixed. Here’s how:
1) I have commented out the dx variable on line 117 (this line caused the problem with arrows)
2) I’ve put these two lines after the line 127 (into init function of scrollTips) :
var body = document.getElementsByTagName(’body’)[0];
body.setAttribute(’onmousewheel’, ‘chromeMouseScroll()’);
3) And finally defined this simple function right after the scrollTips variable (on line 146, respectively 144 before adding formal two lines of code):
function chromeMouseScroll() {scrollTips.mouseScroll(); }
That’s it! Now working like a charm also in Google Chrome. Tested on Google Chrome, Opera and FF, not IE. Please let me know, whether it works also in IE after apliing the hack.
Dude! Great scripts! I had the pleasure of designing a website with your horizontal scrolling script. Such great stuff. Thank you so much for making this public! I had a lot of fun designing something new and unique for my client. Check out The Horizontal Way in action http://airship37.com
Thanks again.
[…] Scrolling,才几k,真是精华,地址 http://lab.centralscrutinizer.it/the-tiny-scrollings/ […]
[…] scrolling and the only one that has worked so far is the Tiny Scrollings Script (taken from: The Tiny Scrolling(s) - from The Lab of the weblog Central Scrutinizer). I actually used a modified version of this script taken off of (The Horizontal Way – SXSW […]
Thanx for the script..really love it.
Although, it works absolutely fine in IE and Safari its not the case in firefox and opera. In firefox and Opera the scrolling is fine but once done scrolling the website jumps to the top of the browser. can anyone help me fix this?
I’m using The Horizontal tiny Scrolling script
Thanx
Where can I download the fixed version of the horizontal script?
Hi,
I got a problem on my horizontal site, and I think many of you have the same problem. It’s that it scrolls very slow in Firefox. Is there anyone solve this problem? Please email me the solution. Thanks so much!
So awesome! was looking for this every where. Very simple to install for a noob like me :)
Thanks!
[…] Sumber : The Tiny Scrolling[s] […]
Call me crazy but if I want to make it horizontal do I just change all the ‘Y’ values in tinyscrolling.js to ‘X’?
Or is there somewhere I can just download the horizontal source? (or is it available here and I am just blind?)
Thanks
[…] Tiny Scrolling(s) カテゴリー: その他 パーマリンク ← Yahoo! […]
love the way this works - if only i could figure out how to implement it on my site, where i have a horizontal scrolling div and want to add arrows (because a lot of people can’t seem to figure out that it scrolls). Tried a bunch of things but i’m just not following the implementation, or if i have to modify something to get it to scroll just that “window” instead of the whole page.
Hello,
i’m desperately trying to find a link to download Mizi’s left to right slow scrolling bugfix.
can somebody help please ?
thanks in advance,
em
[…] To create a one page design website you’ll need to add some jQuery code called Tiny Scrolling. […]
I’ve got troubles installing the tinybar one :(
Does anyone have a working script where you can use images as anchors to initiate scroll???? IMAGES IMAGES!
[…] To create a one page design website you’ll need to add some jQuery code called Tiny Scrolling. […]
Not sure if anyone is still hanging around here, but “Cheese” actually posted information about an image fix in 2009. It’s really easy. The fix is in the Horz Tiny Scrolling code, built in. You just need to copy a few lines from there. The first is on my lines 42-46. Prob different depending on the version of the file. It starts with getTarget: function(target) and ends with },
Just copy that and past it in the same general spot on your tiny scrolling file. Then on my line 71 copy the code: targ = tinyScrolling.getTarget(targ); //a fix by Skid X
and paste it into your Tiny Scrolling code. You have find where it fits, for me it was line 56. Just look for similar code around it. If you need help or want my files just email me.
Thanks Joel, worked as a charm! =)
[…] decided to implement it across the entire website. I have installed both Central Scrutinizer’s The Horizontal Way and Particle Tree’s Lightbox Gone Wild. There were problems, of course. For one, Lightbox Gone […]
the only way is …
[…] user will never say: “Ehi, but where am I now?” but “Oh, thanks for accompany me there!” Read more… Posted by admin at 5:03 […]
Qualcuno mi aiuta?
Vorrei mettere dei links allineati, come in questo sito http://goo.gl/SxlPV
In file di 3 oppure 4, ovviamente al posto delle scritte::Lorem ipsum dolor etc etc!
Vi prego aiutatemi, ho provato in tutte le maniere ma non riesco ad allinearli come vorrei!
Grazie tante, Monica
Experience shows that success is due less to ability than to zeal. The winner is he who gives himself to his work, body and soul.
copy dvds Virtual CloneDrive content scrambling system
***Horizontal scrolling*** Hi, I’ve just created my website using the tinyscroll, it’s brill, so thanks a tonne for sharing! However, it works well on chrome and safari, but jumps and has a different speed on FIREFOX…is there a way to fix this?
Thanks