jQuery localscroll
- Started
- Last post
- 6 Responses
- bort
Anyone used this before: http://flesler.blogspot.com/2007…
Seems dead simple, but I'm pretty green when it comes to jQuery and am having trouble implementing it. Basically I have a single page full of anchors that I want to scroll to. The author says all you need to do is add $.localScroll(); inside a document.ready, but I'm not sure where to put the document.ready. When I put it in the <head> it does nothing.
Little help?
- bort0
Nevermind.
- Stugoo0
hahaha, im sorry to laugh but ive been playing with this the whole freakin day!
it can get a bit clunky, get a test page up and ill see if i can help from there.
- Stugoo0
oh oh well
- janne760
put it inside javascript tags
- janne760
<script>
$(document).ready(function() {
YOUR SCRIPT HERER
});
</script>
- bort0
Yeah. I made a small typo in the document ready call. Sorry! Thanks though.