锘?(function() { var js = document.scripts; var jsPath; for(var i=0;i -1){ jsPath=js[i].src.substring(0,js[i].src.lastIndexOf("/")+1); } } $("video").each(function(){ var id = "video_" + getRandom(100); $(this).hide(); $(this).after("
"); var videoObject = { container: '#'+id, variable: 'player', loop: true, autoplay: false,//鏄惁鑷姩鎾斁 flashplayer:false, video:$(this).attr("src") }; var player = new ckplayer(videoObject); }); }); function getRandom(n){ return Math.floor(Math.random()*n+1) }