PageSourceSearch

http://ploiestiulpatrianoastra.com/jp/images/global.js

js ploiestiulpatrianoastra.com collected 2026-10-03 01:14:34 UTC 7,849 bytes, 246 lines download raw bytes

1// JavaScript Document///////////////////////////////////////////////////
2document.createElement("header");
3document.createElement("nav");
4document.createElement("article");
5document.createElement("footer");
6document.createElement("time");
7document.createElement("section");
8///////////////////////////////////////////////////
9function dropMenu(obj){
10	if (  $(obj) ){
11	$(obj).each(function(){
12		var theSpan = $(this);
13		var theMenu = theSpan.find(".menuListBox");
14		var tarHeight = theMenu.height();
15		//
16		theMenu.css({height:0,opacity:0});
17		theSpan.hover(
18			function(){
19				$(this).addClass("menuLiBnameover");
20				theMenu.stop().show().animate({height:tarHeight,opacity:1},400);
21			},
22			function(){
23				$(this).removeClass("menuLiBnameover");
24				theMenu.stop().animate({height:0,opacity:0},400,function(){$(this).css({display:"none"});
25				});
26			}
27		);
28	});
29}
30}
31
32///////////////////////////////////////////////////¹ö¶¯
33///////////////////////////////////////////////////
34//	Direction ·½Ïò(×óÓÒÉÏÏÂ, 1234 )
35//	mask »î¶¯ÇøÓò
36//	main »î¶¯Ö÷Ìå
37//	Arrow1 ¼ýÍ·×ó/ÉÏ 
38//	Arrow2 ¼ýÍ·ÓÒ/ÏÂ 
39//	length ×ÜÆÁÊý
40//	position Ò»ÆÁÒ»¸öµã 
41//	positionOver µ±Ç°ÆÁ/µã 
42//	positiontxt ¶¨Î»ÎÄ×Ö
43///////////////////////////////////////////////////
44function rollObj( Direction, mask, main, Arrow1, Arrow2, length, position, positionover, positiontxt ){
45	var sport
46	var n = 0;//µ±Ç°µÄ
47	var on;
48	var mainDiv = $(main);
49	var _int
50	var Timing = 5000;
51	length=$(position).length;
52	if (length > 1 ){
53		//alert( "Direction, mask, main, Arrow1, Arrow2, length, position, positionover, positiontxt \n"+Direction +"  "+ mask +"  "+ main +"  "+ Arrow1 +"  "+ Arrow2 +"  "+ length +"  "+ position +"  "+ positionover +"  "+ positiontxt )
54		function fy(){
55			if (Direction == 1 ){//Ïò×ó
56				sport = $(mask).width();//100ÊÇ¿ò¸úÄÚÈݵIJî
57				var toX = -(n * sport);//50ÊDzîµÄÒ»°ë
58				$(main).stop().animate({ marginLeft:toX, opacity:1}, "slow");
59			}
60			if (Direction == 2 ){//ÏòÓÒ
61				sport = $(mask).width();
62				var toX = -(n * sport);
63				$(main).stop().animate({ marginLeft:toX, opacity:1}, "slow");
64				/**/
65			}
66			if (Direction == 3 ){//ÏòÉÏ
67				sport = $(mask).height();
68				var toX = -(n * sport);
69				$(main).stop().animate({ marginTop:toX, opacity:1}, "slow");
70			}
71			if (Direction == 4 ){//ÏòÏÂ
72				sport = $(mask).height();
73				$(main).css({marginTop:0})//CInfo.css({left:l,top:t});
74				var toX = - (length * sport) + (n * sport);
75				$(main).stop().animate({ marginTop:toX, opacity:1}, "slow");
76			}
77			if ( positiontxt ){
78				var Ptxt = new String()
79				Ptxt = (n+1)+"/"+ length
80				$(positiontxt).html( Ptxt );
81			}
82			if (position){
83				$(position).each(function(i, v) {
84					var d = $(this);
85					if ( i != n ){
86						d.removeClass(positionover);
87					}else{
88						d.addClass(positionover);
89					}
90				});
91			}
92		}
93		$(Arrow1).click(function(){
94			n = ( n > 0)? n-= 1: length-1;	
95			fy();
96			clearInterval(_int);_int = setInterval( autoshow,Math.ceil(Math.random()*(1000))+Timing);
97		});
98		$(Arrow2).click(function(){
99			n = ( n < length-1 )?  n+= 1 : 0;
100			fy();
101			clearInterval(_int);_int = setInterval( autoshow,Math.ceil(Math.random()*(1000))+Timing);
102		});
103		
104		if (position){
105			$(position).each(function(index, element) {
106				var d = $(this);
107				d.removeClass(positionover);
108				d.click(function(){
109					clearInterval(_int);_int = setInterval( autoshow,Math.ceil(Math.random()*(1000))+Timing);
110					n =index;
111					fy();
112				});
113			});
114		}
115		fy();
116		function autoshow(){
117			n = ( n < length-1 )?  n+= 1 : 0;
118			fy();
119		}
120		_int = setInterval( autoshow,Math.ceil(Math.random()*(1000))+Timing);
121	}
122}
123///////////////////////////////////////////////////END
124
125/*--------------·ÖÏí----------------*/
126window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
127
128
129///////////////////////////////////////////////////
130///////////////////////////////////////////////////Ñ¡ÏЧ¹û
131function tab( t, o, box ){
132	var title = $(t);
133	var tabBox = $(box);
134	
135	$(t).each(function(i, v) {
136        //var t = $(v);
137		tabBox.css({"opacity":0, "display":"none"})
138		$(v).mousemove(function(e){
139			showTab(i);
140		});
141    });
142	function showTab( N ){
143		title.each(function(i, v) {
144			if (i != N ){
145				tabBox.each(function(i,v) {
146					if( i != N ){
147						$(this).css({"opacity":0, "display":"none"});
148					}
149				});
150				$(v).removeClass( o );
151				
152			}else{
153				tabBox.each(function(i,v) {
154					if( i == N ){
155						$(this).css({ "display":"block"})
156						$(this).stop().animate({ opacity:1 }, "fast");
157					}
158				});
159				$(v).addClass( o );
160			}
161		})
162	}
163	showTab(0);
164}
165
166
167
168/*--------------Ê×Ò³ÍÆ¼öÏîÄ¿ÂÖ²¥Í¼----------------*/
169var TINY={};
170
171function T$(i){return document.getElementById(i)}
172function T$$(e,p){return p.getElementsByTagName(e)}
173
174TINY.slider=function(){
175	function slide(n,p){this.n=n; this.init(p)}
176	slide.prototype.init=function(p){
177		var s=T$(p.id), u=this.u=T$$('ul',s)[0], c=T$$('li',u), l=c.length, i=this.l=this.c=0;
178		if(p.navid&&p.activeclass){this.g=T$$('li',T$(p.navid)); this.s=p.activeclass}
179		this.a=p.auto||0; this.p=p.resume||0; this.v=p.vertical||0; s.style.overflow='hidden';
180		for(i;i<l;i++){if(c[i].parentNode==u){this.l++}}
181		if(this.v){;
182			u.style.top=0; this.h=p.height||c[0].offsetHeight; u.style.height=(this.l*this.h)+'px'
183		}else{
184			u.style.left=0; this.w=p.width||c[0].offsetWidth; u.style.width=(this.l*this.w)+'px'
185		}
186		this.pos(p.position||0,this.a?1:0)
187	},
188	slide.prototype.auto=function(){
189		this.u.ai=setInterval(new Function(this.n+'.move(1,1)'),this.a*1000)
190	},
191	slide.prototype.move=function(d,a){
192		var n=this.c+d, i=d==1?n==this.l?0:n:n<0?this.l-1:n; this.pos(i,a)
193	},
194	slide.prototype.pos=function(p,a){
195		clearInterval(this.u.ai); clearInterval(this.u.si);
196		var o=this.v?parseInt(this.u.style.top):parseInt(this.u.style.left),
197		t=this.v?p*this.h:p*this.w, d=t>Math.abs(o)?1:-1; t=t*-1; this.c=p;
198		if(this.g){for(var i=0;i<this.l;i++){this.g[i].className=i==p?this.s:''}}
199		this.u.si=setInterval(new Function(this.n+'.slide('+t+','+d+','+a+')'),20)
200	},
201	slide.prototype.slide=function(t,d,a){
202		var o=this.v?parseInt(this.u.style.top):parseInt(this.u.style.left);
203		if(o==t){
204			clearInterval(this.u.si); if(a||(this.a&&this.p)){this.auto()}
205		}else{
206			var v=o-Math.ceil(Math.abs(t-o)*.15)*d+'px';
207			this.v?this.u.style.top=v:this.u.style.left=v
208		}
209	};
210	return{slide:slide}
211}();
212
213/*----------------------------ͨÓÃÏÂÀ­---------------------------*/
214function dropdown( obj ){
215	//var on="over";
216	var _o = $(obj);
217	//var _a = $(obj).find(".dropdowna");
218	var _box = _o.find(".dropdownBox");
219	//var  _bh = _box.height();
220	//_box.css({height:0,opacity:0});
221	_box.css({"display":"none"});
222	_o.hover(function(){
223		//$(this).addClass(on);
224		_box.css({"display":"block"});
225		//_box.stop().show().animate({height:_bh,opacity:1},"slow");
226	},function(){
227		//$(this).removeClass(on);
228		_box.css({"display":"none"});
229		//_box.stop().animate({height:0,opacity:0},100,function(){$(this).css({display:"none"});
230		//});
231	});
232}
233///////////////////////////////////////////////////
234$(window).resize(function() {
235	windowW = $(window).width();
236	windowH = $(window).height();
237	documentH = $(document).height();//Îĵµ¸ß¶È
238});
239///////////////////////////////////////////////////
240$(document).ready(function(){
241	dropMenu(".topMenuLi");
242	$(window).resize();
243	dropdown( ".top-family" );
244});
245
246///////////////////////////////////////////////////

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.