$(function(){$(".change_content .li_box:gt(0)").hide();$(".jiaocheng_tit_box a").click(function(){$(".jiaocheng_tit_box a").removeClass("on");$(this).addClass("on");var values=$(this).index();$(".change_content .li_box").hide();$(".change_content .li_box").eq(values).show();});});$(function(){$(".curriculum_list").hover(function(){$(this).children(".sel_list").toggle();});});function G(e){return document.getElementById(e);} function showTip(info){G('tips').innerHTML=info;} function sendForm(formId,action,response,target,effect){if(CheckForm(G(formId),'ThinkAjaxResult')) {ThinkAjax.sendForm(formId,action,response);}} rowIndex=0;function prepareIE(height,overflow){bod=document.getElementsByTagName('body')[0];bod.style.height=height;htm=document.getElementsByTagName('html')[0];htm.style.height=height;} function hideSelects(visibility){selects=document.getElementsByTagName('select');for(i=0;i0&&s<10000){document.getElementById(name).options.add(new Option(city_node[k]['title'],city_node[k]['title']));}}} function getProvinceKey(province){for(var k in province_node){if(province_node[k]==province) return k;}} function loadProvinceCicy(province,city){showProvince(province);document.getElementById(province).onchange=function(){showCity(city,this.value);}} function fileChange(k,obj){var imgid="img_"+k;var formid="form_"+k;document.getElementById(imgid).src=obj.value;document.getElementById(formid).submit();} function equalHight(a,b){ah=G(a).offsetHeight;bh=G(b).offsetHeight;if(ah0) {c_start=document.cookie.indexOf(c_name+"=") if(c_start!=-1) {c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1) {c_end=document.cookie.length;} return unescape(document.cookie.substring(c_start,c_end));}} return null} function setCookie(c_name,value,expiredays) {var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString());} function previewImg(obj,fieldName){url=getObjectURL(obj.files[0]);$("#preview_img_"+fieldName+" img").attr("src",url);} function previewMultImg2(obj,fieldName){var count=obj.files.length;if(count<1)return;for(var i=0;i");}} function toDecimal(x){var f=parseFloat(x);if(isNaN(f)){return;} f=Math.round(x*100)/100;return f;} function getObjectURL(file){var url=null;if(window.createObjectURL!=undefined){url=window.createObjectURL(file);}else if(window.URL!=undefined){url=window.URL.createObjectURL(file);}else if(window.webkitURL!=undefined){url=window.webkitURL.createObjectURL(file);} return url;} function detectOS(){var sUserAgent=navigator.userAgent;var isWin=(navigator.platform=="Win32")||(navigator.platform=="Windows");var isMac=(navigator.platform=="Mac68K")||(navigator.platform=="MacPPC")||(navigator.platform=="Macintosh")||(navigator.platform=="MacIntel");if(isMac)return"MacOS";var isUnix=(navigator.platform=="X11")&&!isWin&&!isMac;if(isUnix)return"Unix";var isLinux=(String(navigator.platform).indexOf("Linux")>-1);if(isLinux)return"Linux";if(isWin){var isWin2K=sUserAgent.indexOf("Windows NT 5.0")>-1||sUserAgent.indexOf("Windows 2000")>-1;if(isWin2K)return"Windows2000";var isWinXP=sUserAgent.indexOf("Windows NT 5.1")>-1||sUserAgent.indexOf("Windows XP")>-1;if(isWinXP)return"WindowsXP";var isWin2003=sUserAgent.indexOf("Windows NT 5.2")>-1||sUserAgent.indexOf("Windows 2003")>-1;if(isWin2003)return"Windows2003";var isWinVista=sUserAgent.indexOf("Windows NT 6.0")>-1||sUserAgent.indexOf("Windows Vista")>-1;if(isWinVista)return"Windows Vista";var isWin7=sUserAgent.indexOf("Windows NT 6.1")>-1||sUserAgent.indexOf("Windows 7")>-1;if(isWin7)return"Windows7";} return"other";} function isIpad(){var ua=navigator.userAgent.toLowerCase();var s;s=ua.match(/iPad/i);if(s=="ipad") {return true;} else{return false;}} function isWeixin(){var ua=navigator.userAgent.toLowerCase();if(ua.match(/MicroMessenger/i)=="micromessenger"){return true;}else{return false;}} function isWebp(){var isSupportWebp=!![].map&&document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp')==0;return isSupportWebp;} $.fn.serializeObject=function() {var o={};var a=this.serializeArray();$.each(a,function(){if(o[this.name]!==undefined){if(!o[this.name].push){o[this.name]=[o[this.name]];} o[this.name].push(this.value||'');}else{o[this.name]=this.value||'';}});return o;};function goback(){if(history.length>1){history.back(-1);}else{location.href='/';} return;var ref=$("#hd_referrer").val();if(ref!=""&&ref!="undefined"){location.href=ref;} else{location.href=history.back(-1);}} $(function(){$("#hd_referrer").val(document.referrer);$('#back').click(function(){goback();});});function showBuy(){player.dispose();$('#J_prismPlayer').empty();var course_id=$('#course_id').val();var html='
'+'
试看结束,如果需要继续观看,请购买课程。
'+'
立即购买
'+'
购买后刷新页面即可观看 已购买,立即刷新
'+'
';$('#J_prismPlayer').html(html);} function getPlayTime(){var tryPlayTime=video_price;var currentTime=player.getCurrentTime();if(currentTime>tryPlayTime){showBuy();clearTimeout(t1);}} function handleReady(){t1=window.setInterval(getPlayTime,1000);}