File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ <h2>Smooth Scroll jQuery Plugin with Back Button Support</h2>
39
39
< a href ="#nav "> back to nav</ a >
40
40
41
41
</ div >
42
- < script src ="http://code.jquery .com/jquery-latest .min.js "> </ script >
42
+ < script src ="http://ajax.googleapis .com/ajax/libs/ jquery/1.4.4/jquery .min.js "> </ script >
43
43
< script > ! window . jQuery && document . write ( unescape ( '%3Cscript src="/lib/jquery.js"%3E%3C/script%3E' ) ) ; </ script >
44
44
< script src ="../jquery.smooth-scroll.js "> </ script >
45
45
< script src ="../lib/jquery.ba-bbq.js "> </ script >
Original file line number Diff line number Diff line change 15
15
border : 1px solid # 999 ;
16
16
}
17
17
</ style >
18
- < script src ="http://code.jquery .com/jquery-latest .min.js "> </ script >
18
+ < script src ="http://ajax.googleapis .com/ajax/libs/ jquery/1.4.4/jquery .min.js "> </ script >
19
19
< script > ! window . jQuery && document . write ( unescape ( '%3Cscript src="/lib/jquery.js"%3E%3C/script%3E' ) ) ; </ script >
20
20
21
21
< script src ="../jquery.smooth-scroll.js " type ="text/javascript "> </ script >
22
22
< script type ="text/javascript ">
23
23
$ ( document ) . ready ( function ( ) {
24
- $ ( 'li a' ) . smoothScroll ( {
25
- afterScroll : function ( ) {
26
- /* location.hash = this.hash; */
27
- }
28
- } ) ;
24
+ $ ( 'ul.mainnav a' ) . smoothScroll ( ) ;
29
25
30
26
$ ( 'p.subnav a' ) . click ( function ( event ) {
31
27
event . preventDefault ( ) ;
49
45
< body >
50
46
< div class ="container ">
51
47
< p > Scroll the Document to one of the following paragraphs:</ p >
52
- < ul >
48
+ < ul class =" mainnav " >
53
49
< li > < a href ="#p1 "> p1</ a > </ li >
54
50
< li > < a href ="#p2 "> p2</ a > </ li >
55
51
< li > < a href ="#p3 "> p3</ a > </ li >
You can’t perform that action at this time.
0 commit comments