PageSourceSearch

https://dodolpicnicgarut.com/gqjscl/js/all.js

js dodolpicnicgarut.com collected 2026-10-02 22:48:46 UTC 10,276 bytes, 310 lines download raw bytes

1var My = {
2	swf : function(swf, width, height, body, wmode, quality) {
3		if(swf == '') {
4			return false;
5		}
6		var width = width || 400;
7		var height = height || 300;
8		var quality = quality || 'high';
9		var wmode = wmode || 'opaque';
10		var content = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + width +'" height="' + height + '">' + 
11			'<param name="allowScriptAccess" value="sameDomain">' + 
12			'<param name="movie" value="' + swf + '">' + 
13			'<param name="quality" value="' + quality + '">' + 
14			'<param name="menu" value="false">' + 
15			'<param name=wmode value="transparent">' + 
16			'<embed src="' + swf + '" wmode="transparent" menu="false" quality="high" width="'+ width +'" height="'+ height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' + 
17			'</object>';
18		var swfBody = document.getElementById(body);
19		if(swfBody) {
20			swfBody.innerHTML = content;
21		} else {
22			document.write(content);
23		}
24	}
25};
26$(function(){
27	$("#cod").click(function(){
28		$(this).attr("src","./data/vdimgck.php?" + Math.random());
29	})
30
31	// $("input,textarea").not(".G_botton").each(function(){
32	// 	$(this).focus(function(){
33	// 		$(this).css("background","#F6F6F6");
34	// 	}).blur(function(){
35	// 		$(this).css("background","#FFF");
36	// 	}).hover(function(){
37	// 		$(this).css("background","#FAFAFA");
38	// 	},function(){
39	// 		$(this).css("background","#fff");
40	// 	});
41	// });
42	
43	$(".borderLi").hover(function(){
44		$(this).css("border-bottom","1px solid #dedede");
45		$(this).css("color","#F00");
46	},function(){
47		$(this).css("border-bottom","1px dashed #dedede");
48		$(this).css("color","#000");
49	});
50	
51	$("#leave_word").submit(function(){
52		if($.trim($("input[name='name']").val())==''){
53			alert("对不起,请填写您的姓名!");
54			$("input[name='name']").focus();
55			return false;
56		}else if($.trim($("input[name='telephone']").val())==''){
57			alert("对不起,请填写您的联系电话!");
58			$("input[name='telephone']").focus();
59			return false;
60		}else if($.trim($("input[name='address']").val())==''){
61			alert("对不起,请填写您的联系地址!");
62			$("input[name='address']").focus();
63			return false;
64		}else if($.trim($("textarea").val())==''){
65			alert("对不起,请填写留言内容!");
66			$("textarea").focus();
67			return false;
68		}else if($.trim($("input[name='checkCode']").val())==''){
69			alert("对不起,请填写验证码!");
70			$("input[name='checkCode']").focus();
71			return false;
72		}
73	});
74	$("#forTheJob").submit(function(){
75		var error = 0;
76		$(".inputText,textarea").each(function(){
77			var val = $.trim($(this).val());
78			if(val==''){
79				alert("请认真填写您的信息,以便我们能更多的了解您!");
80				error++;
81				$(this).focus();
82				return false;
83			}
84		});
85		if(error>0){
86			return false;
87			$("input[error='0']").focus();
88		}
89	});
90
91	$("#online_order").submit(function(){
92		if($.trim($("input[name='name']").val())==''){
93			alert("请填写您的姓名!");
94			$("input[name='name']").focus();
95			return false;
96		}else if($.trim($("input[name='telephone']").val())==''){
97			alert("请填写您的联系电话!");
98			$("input[name='telephone']").focus();
99			return false;
100		}else if($.trim($("input[name='address']").val())==''){
101			alert("请填写您的联系地址!");
102			$("input[name='address']").focus();
103			return false;
104		}else if($.trim($("input[name='num']").val())==''){
105			alert("请填写您的订购数量!");
106			$("input[name='num']").focus();
107			return false;
108		}else if($.trim($("input[name='checkCode']").val())==''){
109			alert("请填写验证码!");
110			$("input[name='checkCode']").focus();
111			return false;
112		}
113		if(!confirm("确定提交订单信息吗?")){
114			return false;
115		}
116	});
117	jQuery.extend({
118		FlashFont:function(obj){
119			//$(obj).css("color",$(obj).css("color")=="#297eae"?"#f00":"#297eae");
120			//$(obj).css("color",$(obj).css("color")=="rgb(41, 126, 174)"?"rgb(255, 0, 0)":"rgb(41, 126, 174)");
121			$(obj).css("color",$(obj).css("color")=="red"?"steelblue":"red");
122		}
123	});
124	setInterval("$.FlashFont('#topPhone')",750);
125	
126	$("#nav_menu").hover(function(){
127		$(this).removeClass("nav").addClass("nav_hover");
128		$("#nav_menu_list").show();
129	},function(){
130		$(this).removeClass("nav_hover").addClass("nav");
131		$("#nav_menu_list").hide();
132	});
133	
134	//HEADER SLIDE START
135	$("#slide_bg").fadeTo('fast',0.3);
136	
137	 var len  = $("#idNum > ul > li").length;
138	 var index = 0;
139	 $("#idNum li").mouseover(function(){
140		index  =   $("#idNum li").index(this);
141		showImg(index);
142	});	
143	 //滑入 停止动画,滑出开始动画.
144	 $('#flashLeft').hover(function(){
145			  if(MyTime){
146				 clearInterval(MyTime);
147			  }
148	 },function(){
149			  MyTime = setInterval(function(){
150			    showImg(index)
151				index++;
152				if(index==len){index=0;}
153			  } , 2000);
154	 });
155	 //自动开始
156	 var MyTime = setInterval(function(){
157		showImg(index)
158		
159		if(index==0){++index;s=0;}
160		else{
161			if(index<len && s==0){
162				++index;
163			}
164			if(index<=len && s==1){
165				--index;
166				s=1
167			}
168			if(index==len){		
169				index=len-1;
170				s=1
171			}
172		}
173	 } , 2000);	
174})
175
176function showImg(i){
177		$("#idSlider").stop(true,false).animate({top : -263*i},800);
178		 $("#idNum li")
179			.eq(i).addClass("on")
180			.siblings().removeClass("on");
181}
182
183function addFavourite()
184{
185    if (document.all)
186       {
187         window.external.addFavorite(document.URL,document.title);
188       }
189      else if (window.sidebar)
190      {
191          window.sidebar.addPanel(document.title,document.URL,"");
192    }
193}
194
195
196//设为首页
197function setHomepage(){
198  if (document.all){
199    document.body.style.behavior='url(#default#homepage)';
200    document.body.setHomePage(document.URL);
201  }else if (window.sidebar){
202        if(window.netscape){
203       try{
204          netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
205       }catch (e){
206                    alert( "该操作被浏览器拒绝,如果想启用该功能,请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true" );
207       }
208        }
209    var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
210    prefs.setCharPref('browser.startup.homepage',document.URL);
211    }
212}
213
214//resize image
215function DrawImage(ImgD,FitWidth,FitHeight){  
216    var image=new Image();  
217    image.src=ImgD.src;  
218    if(image.width>0 && image.height>0){  
219        if(image.width/image.height>= FitWidth/FitHeight){  
220            if(image.width>FitWidth){  
221                ImgD.width=FitWidth;  
222                ImgD.height=(image.height*FitWidth)/image.width;  
223            }  
224            else{  
225                ImgD.width=image.width;  
226                ImgD.height=image.height;  
227            }  
228        }  
229        else{  
230            if(image.height>FitHeight){  
231                ImgD.height=FitHeight;  
232                ImgD.width=(image.width*FitHeight)/image.height;  
233            }  
234            else{  
235                ImgD.width=image.width;  
236                ImgD.height=image.height;  
237            }  
238        }  
239    }  
240} 
241//留言验证
242function check(fid){
243	console.log($("#"+fid+" #guest").val());
244    var name = $("#"+fid+" input[name='guest']").val();
245    var phone = $.trim($("#"+fid+" input[name='tel']").val());
246    var content = $("#"+fid+" #content").val();
247    var isMobile = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1})|(14[0-9]{1}))+\d{8})$/;
248    var isPhone = /^(?:(?:0\d{2,3})-)?(?:\d{7,8})(-(?:\d{3,}))?$/;
249    if (name == '' || name==null) {
250        alert('请填写您的姓名');
251        return false;
252    }
253    if(!name.match( /^[\u4E00-\u9FA5]{1,}$/) || name.length > 4){
254        alert('名字必须为4个字以内的汉字');
255        return false;
256    }
257    if (phone == '' || phone==null) {
258        alert('请填写您的联系电话');
259        return false;
260    }
261    if (phone.substring(0, 1) == 1){
262    	//如果为1开头则验证手机号码
263        if (!isMobile.exec(phone) && phone.length != 11) {
264            alert('请输入正确的手机号码');
265        	return false;
266        }
267    }else if(phone.substring(0, 1) == 0){
268    	//如果为0开头则验证固定电话号码
269        if (!isPhone.test(phone)) {
270            alert('请输入正确的固话号码');
271        	return false;
272        }
273    }else {
274    	//否则全部不通过
275        alert('请不要胡乱输入');
276        return false;
277    }
278    if (content == '' || content==null) {
279        alert('请输入您的需求');
280        return false;
281    }
282    if(content.toLowerCase().indexOf("http://") >= 0 ) { 
283        alert('需求内容不能含网址、不能为纯数字、长度要在5-200个汉字之间');
284        return false;
285    }
286    if(content.toLowerCase().indexOf("https://") >= 0 ) { 
287        alert('需求内容不能含网址、不能为纯数字、长度要在5-200个汉字之间');
288        return false;
289    }
290    if(content.toLowerCase().indexOf("www.") >= 0 ) { 
291        alert('需求内容不能含网址、不能为纯数字、长度要在5-200个汉字之间');
292        return false;
293    }
294    if(content.toLowerCase().indexOf("script") >= 0 ) { 
295        alert('需求内容不能含网址、不能为纯数字、长度要在5-200个汉字之间');
296        return false;
297    }
298    if(content.toLowerCase().indexOf(".js") >= 0 ) { 
299        alert('需求内容不能含网址、不能为纯数字、长度要在5-200个汉字之间');
300        return false;
301    }
302    if(!isNaN(content)) { 
303        alert('需求内容不能含网址、不能为纯数字、长度要在5-200个汉字之间');
304        return false;
305    }
306    if(content.length <5 || content.length > 200) { 
307        alert('需求内容不能含网址、不能为纯数字、长度要在5-200个汉字之间');
308        return false;
309    }
310} 

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.