看看下面的能不能帮到您: <a onclick="changePlayValue('http://192.168.0.177:5080/vod/video.mp4')" href="#kingoplayer"> <script type="text/javascript"> function changePlayValue(v) { var play = v; var cnt = document.getElementById("myElement"); var src = 'wmvplayer.xaml'; var cfg =({ file:play, image:'preview.jpg', height:'240', width:'100%' }); var ply = new jeroenwijering.Player(cnt,src,cfg); } </script>
<a onclick="changePlayValue('http://192.168.0.177:5080/vod/video.mp4')" href="#kingoplayer">
<script type="text/javascript">
function changePlayValue(v)
{
var play = v;
var cnt = document.getElementById("myElement");
var src = 'wmvplayer.xaml';
var cfg =({
file:play,
image:'preview.jpg',
height:'240',
width:'100%'
});
var ply = new jeroenwijering.Player(cnt,src,cfg);
}
</script>