您现在的位置是:网站首页 > 现代文学

交易时间

本站2019-08-10151人围观
简介 //点击事件添加高亮functionconten12(str,year,mon,day,obj){$.ajax({url:str,type:GET,//GETasync:false,//或fa

							交易时间

//点击事件添加高亮functionconten12(str,year,mon,day,obj){$.ajax({url:str,type:GET,//GETasync:false,//或false,是否异步data:{},timeout:5000,//超时时间dataType:html,//返回的数据格式:json/xml/html/script/jsonp/textbeforeSend:function(xhr){},success:function(data,textStatus,jqXHR){$("#content").load(str,function(response,status){if(status=="success"){$(".right___titlea").html(year+"年"+mon+"月"+day+"日");("td_cur").siblings().removeClass("td_cur");("tr").siblings().find("td").removeClass("td_cur");dwgl();}});},error:function(xhr,textStatus){},complete:function(){}})}//判断页面是否存在functionconten(str){$.ajax({url:str,type:GET,//GETasync:false,//或false,是否异步data:{},timeout:5000,//超时时间dataType:html,//返回的数据格式:json/xml/html/script/jsonp/textbeforeSend:function(xhr){},success:function(data,textStatus,jqXHR){(str);},error:function(xhr,textStatus){alert("无节目播出,请选择其它日期进行查看");},complete:function(){}})}functionconten1(str,year,mon,day){$.ajax({url:str,type:GET,//GETasync:true,//或false,是否异步data:{},timeout:5000,//超时时间dataType:html,//返回的数据格式:json/xml/html/script/jsonp/textbeforeSend:function(xhr){},success:function(data,textStatus,jqXHR){$("#content").load(str,function(response,status){if(status=="success"){$(".right___titlea").html(year+"年"+mon+"月"+day+"日");//dwgl();}});},error:function(xhr,textStatus){varriqi=year+mon+day;varjintian=(yyyyMMdd);if(riqi==jintian){alert("节目尚未播出,暂时无法查看。 ");}else{alert("无节目播出,请选择其它日期进行查看");}},complete:function(){}})}//日期格式化=function(fmt){//author:meizzvaro={"M+":()+1,//月份"d+":(),//日"h+":(),//小时"m+":(),//分"s+":(),//秒"q+":((()+3)/3),//季度"S":()//毫秒};if(/(y+)/.test(fmt))fmt=(RegExp.$1,(()+"").substr(4-RegExp.$));for(varkino)if(newRegExp("("+k+")").test(fmt))fmt=(RegExp.$1,(RegExp.$==1)(o[k]):(("00"+o[k]).substr((""+o[k]).length)));returnfmt;}varnow=newDate();varclickDate=null;varModule=Module||{};=[];=function(opt){_day_click=function(inputString){};_day_link=function(inputString){returninputString;};if(opt){if(_day_click){_day_click=_day_click;}if(_day_link){_day_link=_day_link;}}="";=;[]=this;};={L_gCalendarPrevMonthAlt_text:"上个月",L_gCalendarNextMonthAlt_text:"下个月",L_calendarDayNames_text:["日","一","二","三","四","五","六"],dCalendarStartDay:0,calendarTitleDateFormat:"yyyy年mm月",formatCalendarTitleDate:function(strMonth,strYear){varformat="yyyy-mm";if(typeof()!="undefined"){format=;}format=("mm",strMonth);format=("yyyy",strYear);returnformat;},showCalendar:function(targetId,dMonth,dYear,dDay){=targetId;if(dMonth11){dMonth=0;dYear++;}vardNow=newDate();if(dDay==90&&dMonth==()&&dYear==()){dDay=();}vardCurFD=newDate(dYear,dMonth,1);vardGivenDate=newDate(dYear,dMonth,dDay);vardCurrentMonthFirstDay=();vardCurrentViewDate=newDate(dCurFD);varweekMilliseconds=604800000;vartmpStartDay=%7;variDays=tmpStartDay-dCurrentMonthFirstDay;if(iDays>0){iDays-=7;}varoBuf=;oBuf+=;oBuf+=;oBuf+=+dYear+年+(dMonth+1)+月;oBuf+=;oBuf+=;oBuf+=;for(vare=0;e+_calendarDayNames_text[tmpStartDay]+;}else{oBuf+=+_calendarDayNames_text[tmpStartDay]+;}tmpStartDay++;}oBuf+=""varnextMonthFirstDay=newDate(dYear,dMonth+1,1);varIsNextMonthFirstDaySunday=()==0;for(variRows=0;())continue;if(iRows==5&&IsNextMonthFirstDaySunday)continue;oBuf+=;for(variCols=0;iCols;}else{oBuf+=;}}else{if(()!=dMonth||iDays;}else{oBuf+=;};};iDays++};oBuf+=""};oBuf+=;(targetId).innerHTML=oBuf},killMe:function(){[]=null}};//点击事件$(".tab_1tr").find("td").live("click",function(){varobj=$(this);varnbw=("onclick");vararr=(/|-/g);varmm1=arr[2];varmm2=arr[3];Number(mm2)(yyyyMMdd)){//alert("节目不出");}else{varstr="http:///lm/jysj/day/"+bvn+".shtml";conten12(str,arr[1],mm1,mm2,obj);}});//点击左右箭头定位高亮functiondwgl(){//移除所有的高亮$(".xwlbB151203___1trtd").removeClass("td_cur");//获取标题内容和日历标题varu=$("#__titlea").html();varnma=$(".xwlbB151203___center").html();//进行截取,获取日期格式vararrr=(/年|月|日/g);vararr1=(/年|月/g);varoi=arr1[1];Number(oi)<10oi=0+oi:null;varoii=arrr[2];varmkj=arrr[0]+arrr[1]+arrr[2];//如果标题日期和日历日期月份相同if((arrr[0]+arrr[1])==(arr1[0]+oi)){//获取所有日历的长度varsn=$(".tab_1trtd").length;varsd;//循环取出每一个tdfor(vari=7;i