Signin  Pricing  Support

Libraries > roll2.js

roll2.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://www.china12315.com.cn/statics/js/js/roll2.js


Libraries on www.china12315.com.cn


jquery.js

main.js

roll2.js

setimg.js

sy-nav1.js

sy-nav.js

YLMarquee-1.1.min.js

m.js



Explore More


jquery-1.10.2.min.js

bootstrap.min.js

count-to.js

dataTables.bootstrap.js

roll2.js
				
Size=$('.sell_order li').size();
$('.sell_order').width(Size*145)
ph$ = {
	bindEvt : function() {
		var o = {};
		o.btn_sell_l = $("#pageLeft");
		if (o.btn_sell_l.length > 0) {
			o.btn_sell_l.bind("click", function() {
				ph$.scrollLveSell('right');
			});
		}
		o.btn_sell_r = $("#pageRight");
		if (o.btn_sell_r.length > 0) {
			o.btn_sell_r.bind("click", function() {
				ph$.scrollLveSell('left');
			});
		}
	},
	scrollLveSell : function(o) {
		if (this.cfg.lv_flag == 0)
			return false;
		var tar = $("#sell_order");
		var tar2 = $("#sell_order_t");
		tar.stop();
		tar2.stop();
		var max_num = $("#sell_order>li").length/2;
		var width = 290;
		var left = 0;
		var pos = tar.position();
		
		if (o == "left") {
			if (Math.abs(pos.left)+width > (width*(max_num))-1) {
				pos.left=0+width
			}
			left = pos.left - width;
			
		} else if (o == "right") {
			
			if (pos.left >= 0) {
				return false;
			}
			left = pos.left + width;
		}
		left = left + "px";
		ph$.cfg.lv_flag = 0;
		tar.animate({
			left: left
		}, 500);
		tar2.animate({
			left: left
		}, 00, function() {
			ph$.cfg.lv_flag = 21;
		});
	},
	cfg : {

	},
	init : function() {
		this.bindEvt();
	}
};
datetime1 = setInterval(function(){
	ph$.scrollLveSell('left');
},6000);

$('.c_title').hover(function(){
	clearInterval(datetime1)					
},function(){
	datetime1 = setInterval(function(){
		ph$.scrollLveSell('left');
	},6000);
})


jQuery(function($) {
	ph$.init();
});


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z