...
|
...
|
@@ -32,6 +32,7 @@ function appJump(where, option) { |
|
|
|
|
|
|
|
|
var page = {
|
|
|
rollTimer: null,
|
|
|
init: function() {
|
|
|
this.domInit();
|
|
|
this.bindEvents();
|
...
|
...
|
@@ -178,6 +179,7 @@ var page = { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
window.clearTimeout(this.rollTimer);
|
|
|
var $frag = $('<ul></ul>'),
|
|
|
$fragClone;
|
|
|
|
...
|
...
|
@@ -192,6 +194,7 @@ var page = { |
|
|
$fragClone = $frag.clone();
|
|
|
|
|
|
$msgRoll
|
|
|
.html('')
|
|
|
.append($frag, $frag.clone());
|
|
|
|
|
|
// .css({ visibility: 'visible' });
|
...
|
...
|
@@ -206,7 +209,7 @@ var page = { |
|
|
|
|
|
function rolling() {
|
|
|
|
|
|
$msgRoll.animate({
|
|
|
$msgRoll.delay(2000).animate({
|
|
|
scrollTop: '+='.concat(oneMsgH)
|
|
|
}, 400, function() {
|
|
|
var curT = $msgRoll[0].scrollTop;
|
...
|
...
|
@@ -215,7 +218,7 @@ var page = { |
|
|
$msgRoll[0].scrollTop = curT - $frag[0].getBoundingClientRect().height;
|
|
|
}
|
|
|
|
|
|
setTimeout(rolling, 1000);
|
|
|
self.rollTimer = setTimeout(rolling, 2000);
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|