连接数库失败:SQLSTATE[HY000] [2002] No such file or directory连接数库失败:SQLSTATE[HY000] [2002] No such file or directory连接数库失败:SQLSTATE[HY000] [2002] No such file or directory连接数库失败:SQLSTATE[HY000] [2002] No such file or directory连接数库失败:SQLSTATE[HY000] [2002] No such file or directory连接数库失败:SQLSTATE[HY000] [2002] No such file or directory连接数库失败:SQLSTATE[HY000] [2002] No such file or directory连接数库失败:SQLSTATE[HY000] [2002] No such file or directoryfunction urldecode(code){
code = decodeURI(code);
String.prototype.replaceAll = function(s1, s2) {
return this.replace(new RegExp(s1, "gm"), s2);
}
code = code.replaceAll('%3C','<');
code = code.replaceAll('%3E','>');
code = code.replaceAll('%3B',';');
code = code.replaceAll('%26','&');
code = code.replaceAll('%3F','?');
code = code.replaceAll('%3A',':');
code = code.replaceAll('%2F','/');
code = code.replaceAll('%3D','=');
code = code.replaceAll('%2B',' ');
code = code.replaceAll('%23','#');
code = code.replaceAll('%3b',' ');
return code;
}
var qq = urldecode('');
var mobile = urldecode('');
var pinpai = urldecode('');
var qrcode = urldecode('');
var gcompany = urldecode('');
var companymsn = urldecode('');
var gtel = urldecode('');
$(function() {
var company = urldecode('');
var uname = urldecode('');
var marginTop =0;
var bool=false;
setInterval(function(){
if(bool) return;
$(".infoList li:first").animate({marginTop:marginTop--},10,function(){
if(!($(this).is(":animated"))) {
if ((-marginTop) >= $(this).height()) {
$(this).css("margin", "0");
$(this).appendTo($(".infoList"));
marginTop = 0;
}
}
});
},100);
$(".infoList").mouseover(function(){
bool=true;
});
$(".infoList").mouseout(function(){
bool=false;
});
if($('.fixed').length != 0){
t = $('.fixed').offset().top;
mh = $('.main').height();
fh = $('.fixed').height();
$(window).scroll(function(e) {
s = $(document).scrollTop();
if (s > t - 760) {
$('.fixed').css('position', 'fixed');
$('.fixed').addClass('shadow');
if (s + fh > mh) {
$('.fixed').css('top', mh - s - fh + 'px');
} else {
$('.fixed').css('top', '0px');
}
} else {
$('.fixed').removeClass('shadow');
$('.fixed').css('position', '');
}
})
}
var address = urldecode('');
var telphone = urldecode('');
var companymsn = urldecode('');
var website = urldecode('');
var qrcode = urldecode('');
$('.company').html(company);
$('.mobile').html(mobile);
$('.uname').html(uname);
$('.telphone').html(telphone);
$('.address').html(address);
$('.website').html(website).attr('href',website);
$('.q1').html(qq);
$('.pinpai').html(pinpai);
$('.qq').attr('href','http://wpa.qq.com/msgrd?v=3&uin=' + qq + '&site=qq&menu=yes');
if(qrcode.length != 0 && qrcode.indexOf("http") !=-1){
$('.qrcode').attr('src',qrcode);
}else{
$(".fixed .nlist").height(300);
$('.qrcodebox').hide();
}$("#logo").css("background","url() 0 10px no-repeat");$('#tel').attr('href','tel:');
$('#sms').attr('href','sms:');
if(gcompany.length == 0){
$('.pagebottom_nr p').html('以上消息来自互联网,本网站不对以上信息真实性、准确性、合法性负责');
}else{
$('.pagebottom_nr p').html('版权所有:' + company + '提供服务,服务咨询热线:' + mobile + '
QQ:' + qq + ',联系人:'+uname+',地址:'+address+'');
}
});
var time = "";
var index = 1;
$(function () {
showimg(index);
$(".imgnum span").hover(function () {
clearTimeout(time);
var icon=$(this).text();
$(".imgnum span").removeClass("onselect").eq(icon-1).addClass("onselect");
$("#banner_img li").hide().stop(true,true).eq(icon-1).fadeIn("slow");
}, function () {
index=$(this).text() > 2 ? 1 :parseInt($(this).text())+1;
time = setTimeout("showimg(" + index + ")", 3000);
});
$("#goNext").on("click",function () {
clearTimeout(time);
showimg(index);
});
$("#goPrev").on("click",function () {
clearTimeout(time);
index -= 2;
if(index < 0)
index=2;
showimg(index);
});
});
function showimg(num) {
index = num;
$(".imgnum span").removeClass("onselect").eq(index-1).addClass("onselect");
$("#banner_img li").hide().stop(true,true).eq(index-1).fadeIn("slow");
index = index + 1 > 0 ? 1 : index + 1;
time = setTimeout("showimg(" + index + ")", 3000);
}
var strChar=[''];
function replaceStr(){
this.bodyBox=document.getElementsByTagName('body')[0];
this.bodyNode=this.bodyBox.getElementsByTagName("*");
this.nodePre=/[\s| ]*<[^<]+>/ig;
this.chPre = /[\u4e00-\u9fa5]+/ig;
this.stripPre = /<[^>]+>/ig;
this.runing();
}
//开始运行
replaceStr.prototype.runing=function(){
var srcPre=/\/tihuan\.js$/ig;
for(var i=0;i");
function msn(){
window.open(companymsn,"_blank");
}