// JavaScript Document $(function(){ $(".vide0_close").click(function() { $(this).parents(".video_appbox").hide(); }); $(".video-xx").click(function(){ $(".video_appbox").fadeOut(); $(".video_t").html("") }) var srcl="",simg='',src2=""; //妤傛ê瀹崇拋锛勭暬 // $(window).resize(function(){ // video() // }) // $(window).resize(); var isSupportTouch = "ontouchend" in document ? true : false; $(document).on("click",".video_button",function(e){ srcl=$(this).data("video"); src2=$(this).data("video1"); simg=$(this).data("img"); $(".video_appbox,#player1").fadeIn(); video(); }) $(".video_appbox .mask").click(function(){ $(".video_appbox").fadeOut(); $(".video_t").html("") }) function video(){ if(!$("html").hasClass("ie")) { $(".video_t").html("") // $(".video_t video").attr({width:$(".video_t").width(),height:$(".video_t").height()}) } else { videoBox($(".video_t").width(), $(".video_t").height(), src2,simg); } } function videoBox(width, height, url,img) { var s1 = new SWFObject("../flash/flvplayer.swf","single",width,height,"7"); s1.addParam("allowfullscreen","true"); s1.addParam("wmode","transparent"); s1.addVariable("file",url); s1.addVariable("autostart","true"); s1.addVariable("width",width); s1.addVariable("backcolor",0x000000); s1.addVariable("frontcolor",0xFFFFFF); s1.addVariable("lightcolor",0x000000); s1.addVariable("height",height); s1.write("player1"); } })