js+html+css视频播放器var CuPlayerList ="flv1.flv|flv2.flv|btq.flv|flv1.flv|flv2.flv|btq.flv|" var sp =CuPlayerList.split("|") var num = sp.length; var video_index = 0; function getNext(pars) { if(video_index < num-1) { video_index++; so.addVariable("JcScpVideoPath",sp[video_index]); so.write("CuPlayer"); } else { video_index = 0; so.addVariable("JcScpVideoPath",sp[video_index]); so.write("CuPlayer"); } } function changeStream(CuPlayerFile){ so.addVariable("JcScpVideoPath",sp[CuPlayerFile]); so.write("CuPlayer"); }