Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="slider">
- <div id="pro1"></div>
- <div id="pro2"></div>
- <div id="pro3"></div>
- </div>
- <div id="thumb">
- <a href="#pro1"> <img id="tpro1" src="projects/tpro5.jpg" style="height: 100%;"></a>
- <a href="#pro2"> <img id="tpro2" src="projects/tpro5.jpg" style="height: 100%;"></a>
- <a href="#pro3"> <img id="tpro3" src="projects/tpro5.jpg" style="height: 100%;"></a>
- </div>
- $("#thethingyougonnaclick").click(function() {
- $('html, body').animate({ scrollTop:$("#theelementidtoscroll").offset().top}, 500);
- });
Add Comment
Please, Sign In to add comment