Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul class="scroll">
- <li><a href="linkToMovie"></a></li>
- <li><a href="linkToMovie"></a></li>
- <ul>
- var $scroll = (".scroll");
- var $movie = $scroll.children($("movie")
- $scroll.on("mousedown", function(e) {
- e.preventDefault()
- $(this).on("mousemove", function() {
- //drag horizontally
- });
- });
- $scroll.on("mouseup", function(){
- //...
- });
- $movie.on("click", function(){
- //open movie
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement