Changeset 5914 for trunk/plugins/scrollTo/index.html
- Timestamp:
- 10/27/08 20:14:12 (2 months ago)
- Files:
-
- 1 modified
-
trunk/plugins/scrollTo/index.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/scrollTo/index.html
r4989 r5914 9 9 <link type="text/css" rel="stylesheet" href="css/style.css" /> 10 10 <script type="text/javascript" src="jquery.js"></script> 11 <script type="text/javascript" src="jquery.scrollTo .js"></script>11 <script type="text/javascript" src="jquery.scrollTo-min.js"></script> 12 12 <script type="text/javascript"> 13 13 jQuery(function( $ ){ … … 139 139 }); 140 140 }); 141 142 /* This can be used to test scroll on Iframes and window 143 $('body').append('<iframe src="/" />'); 144 setTimeout(function(){ 145 //$(window).scrollTo( 1e8, 1000 ).scrollTo( 0, 1000 ); 146 $(window).scrollTo( 1e8, 1000, function(){ 147 $('iframe').scrollTo( 1e8, 1000 ).scrollTo( 0, 1000 ); 148 }); 149 }, 3000 ); 150 /* 151 setTimeout(function(){ 152 $('#foo').scrollTo( '#two', 1000 ); 153 //$.scrollTo( '#two' ); 154 }, 2000 ); 155 /* */ 141 156 }); 142 157 </script> … … 209 224 <p class="message">Don't use a hash for the target to scroll only one axis, use the option 'axis' instead. The hash is used to scroll both axes with different positions.</p> 210 225 </div> 226 <!-- This HTML is needed for the test on Iframes -> 227 <div id="foo" style="position:absolute;bottom:50;left:150;height:200px;width:200px;overflow:auto;border:1px black solid;diplay:block;"> 228 <div id="one" style="height:400px;width:300px;background:green;"> </div> 229 <div id="two" style="background:blue">HI!</div> 230 <div id="three" style="height:6000px;width:300px;background:red;"> </div> 231 </div> 232 <!-- --> 211 233 </body> 212 234 </html>
