// 视频弹窗 var mvhtml = '
'; function mvfun(obj) { $("body").append(mvhtml) var mvsrc = $(obj).attr("dataurl")||''; var picsrc = $(obj).attr("dataimg")||''; var videoobject = { container: '#a1', //容器的id或classname variable: 'player', //播放函数名称 //loop: true, //播放结束是否循环播放 autoplay: true, //是否自动播放 poster: picsrc, //封面图片 debug: true, video: [ [mvsrc, 'video/mp4', '中文标清', 0] ] }; var player = new ckplayer(videoobject); layer.open({ title: false, type: 1, skin:'aykjvideo', area: ['755px', '425px'], //宽高 content: $(".mvbox"), cancel:function(){ $(".aykjvideo").next().remove() }, end: function(index, layero) { layer.closeall(); $(".mvbox").remove(); } }); return false; } //图片等比缩放 function scaleimg(){ $(".scalebox").each(function(){ $(this).find("img").jqthumb({ width: $(this).outerwidth(), height: $(this).outerheight(), after: function(imgobj){ imgobj.css('opacity', 1).animate({opacity: 1},1000); } }); }) } /** * tabs * @return */ function tablist(tabtitle, tab_content, tabmore, event) { var hoverindex,hovertabhref,tablength=$(tabtitle).length; for(var i=0;i