请教一下如何自动加载自已的swf播放器的JS
展开全部
给你个例子吧
<script type="text/javascript" src="<c:url value='/scripts/jwplayer.js'/>"></script>
<object type="application/x-shockwave-flash" data="/flash/playerdiy.swf" width="470" height="331" id="okisso-flv" name="okisso-flv">
<param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always">
<param name="wmode" value="opaque">
<param name="flashvars" value="id=okisso-flv&name=okisso-flv&file=<%=request.getContextPath()%>/flash/okisso.flv&image=<%=request.getContextPath()%>/images/special/okisso/okisso-pre.jpg&stretching=fill&controlbar.position=bottom">
</object>
<script type="text/javascript">
jwplayer("okisso-flv").setup({
flashplayer: "<%=request.getContextPath()%>/flash/playerdiy.swf",
file: "<%=request.getContextPath()%>/flash/okisso.flv",
image: "<%=request.getContextPath()%>/images/special/okisso/okisso-pre.jpg",
controlbar: 'bottom',
width: '470',
height: '331',
stretching: 'fill'
});
</script>
<script type="text/javascript" src="<c:url value='/scripts/jwplayer.js'/>"></script>
<object type="application/x-shockwave-flash" data="/flash/playerdiy.swf" width="470" height="331" id="okisso-flv" name="okisso-flv">
<param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always">
<param name="wmode" value="opaque">
<param name="flashvars" value="id=okisso-flv&name=okisso-flv&file=<%=request.getContextPath()%>/flash/okisso.flv&image=<%=request.getContextPath()%>/images/special/okisso/okisso-pre.jpg&stretching=fill&controlbar.position=bottom">
</object>
<script type="text/javascript">
jwplayer("okisso-flv").setup({
flashplayer: "<%=request.getContextPath()%>/flash/playerdiy.swf",
file: "<%=request.getContextPath()%>/flash/okisso.flv",
image: "<%=request.getContextPath()%>/images/special/okisso/okisso-pre.jpg",
controlbar: 'bottom',
width: '470',
height: '331',
stretching: 'fill'
});
</script>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询