点击进入知科官方网站
查看: 1377  |  回复: 3
 
 
遵化一网
积分:1270
注册时间:2012-07-07
最后登录:2013-06-18
发送短消息
发表于 2012-09-17 20:12
首页的  新闻图片 
能不能直接播放视频啊 (就像城市名片那样)
 
 
Official服务
积分:16745
注册时间:2012-01-02
最后登录:2015-09-24
发送短消息
回复于 2012-09-17 20:23
1楼
首页文件里的任何内容不要删除,否则页面会报错。如果要添加视频那则请添加视频相关的代码就行了。
 
例如 城市名片FLV的代码是:
<script type="text/javascript" src="/skin/public/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("/skin/public/flvplayer1.swf","CuPlayer","310","210","9","#000000");so.addParam("allowfullscreen","true");so.addParam("allowscriptaccess","always");so.addParam("wmode","opaque");so.addParam("quality","high");so.addParam("salign","lt");so.addVariable("CuPlayerFile","http://demo4.hbzkwl.com/p/gg/flv2.flv");so.addVariable("CuPlayerImage","/skin/public/none.gif");so.addVariable("CuPlayerShowImage","false");so.addVariable("CuPlayerWidth","310");so.addVariable("CuPlayerHeight","210");so.addVariable("CuPlayerAutoPlay","true");so.addVariable("CuPlayerAutoRepeat","false");so.addVariable("CuPlayerShowControl","true");so.addVariable("CuPlayerAutoHideControl","false");so.addVariable("CuPlayerAutoHideTime","6");so.addVariable("CuPlayerVolume","80");so.write("flvdiv");
</script>
 
 
 
 
 
 
遵化一网
积分:1270
注册时间:2012-07-07
最后登录:2013-06-18
发送短消息
回复于 2012-09-17 20:45
2楼
哪个算是 首页文件呢  详细点 别整错了
 
 
Official服务
积分:16745
注册时间:2012-01-02
最后登录:2015-09-24
发送短消息
回复于 2012-09-17 20:46
3楼
默认模板的首页文件是/index.aspx
模板一的首页文件是/index/1/index.aspx
模板二的首页文件是/index/2/index.aspx
模板三的首页文件是/index/3/index.aspx
 
(修改aspx文件时,请先做好该文件的备份,以免改错时可以及时恢复文件)
回复帖子