Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($) {
- $.ajax("/marquee.text.txt")
- .done(function(text) {
- $('div.marquee').html(text);
- $('div.marquee').marquee("marquee").mouseover(function () {
- $(this).trigger('stop')
- }).mouseout(function () {
- $(this).trigger('start')
- }).mousemove(function (event) {
- if ($(this).data('drag') == true) {
- this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX)
- }
- }).mousedown(function (event) {
- $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft)
- }).mouseup(function () {
- $(this).data('drag', false)
- })
- })
- .fail(function(){
- alert("There was a problem with fetching the marquee text.\nQuick! Call NigNog!");
- });
- }(jQuery));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement