怎么样实现从地址栏获取参数作为视频地址自动播放?
程序代码:
<script type="text/javascript" src="images/swfobject.js"></script> <div class="video" id="CuPlayer"></div> <script type="text/javascript"> var so = new SWFObject("CuPlayerMiniV4.swf","CuPlayerV4","600","410","9","#000000"); so.addParam("allowfullscreen","true"); so.addParam("allowscriptaccess","always"); so.addParam("wmode","opaque"); so.addParam("quality","high"); so.addParam("salign","lt"); so.addVariable("CuPlayerSetFile","CuPlayerSetFile.xml"); so.addVariable("CuPlayerWidth","600"); so.addVariable("CuPlayerHeight","410"); so.addVariable("CuPlayerAutoPlay","yes"); so.addVariable("CuPlayerImage","images/start.jpg"); so.addVariable("CuPlayerLogo","images/logo.png"); so.addVariable("CuPlayerPosition","bottom-right"); so.addVariable("CuPlayerFile","http://www.); //★★此处为视频播放地址URL so.write("CuPlayer"); </script>我的网页播放代码如上,但我想将所有的视频播放地址由一个播放页即可任意播放了,减少网站体积!
具体意思是:将视频播放地址由JS自动从地址栏获取参数,即地址栏地址如http://www.,打开这个页面,就想实现这播放器代码会直接获取后面参数作为视频地址播放!以后只要更改地址栏参数?后面的红色部分网址如http://www.即会自动换成pppp.fly视频进行播放。
请问有人可以解决这个问题吗?
另外如果找不到这个视频即提示视频已下架,谢谢