viewMedia.htm 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>viewMedia.htm</title>
  5. <link rel="stylesheet" href="views/whh/whhPlus/viewWhhSq.css?type=4">
  6. <script type="text/javascript">
  7. $(function(){
  8. var lx = $("#lx").val();
  9. if(lx == "sp") {
  10. $("#photoSee").hide();
  11. }else {
  12. $("#video").hide();
  13. }
  14. })
  15. function loadDjtj() {
  16. var djid = $("#djid").val();
  17. haifm.loadMobilePage("haifm", "viewWhhConstant.htm?mcid="
  18. + $("#mcid").val() + "&type=" + $("#type").val() + "&from="
  19. + $("#whhFrom").val() + "&djid=" + djid);
  20. }
  21. </script>
  22. </head>
  23. <body>
  24. <input type="hidden" id="whhFrom" value="$!from">
  25. <input type="hidden" id="type" value="$!type">
  26. <input type="hidden" id="djid" value="$!djid">
  27. <input type="hidden" id="lx" value="$!lx">
  28. <input type="hidden" id="spStr" value="$!spStr" />
  29. <div class="header" style="position: fixed;width: 100%;">
  30. <div class="m1" onclick="loadDjtj();"><</div>
  31. <div class="m2">查看</div>
  32. <div class="m3"></div>
  33. </div>
  34. <div id="photoSee">
  35. <img src="$!zpStr" style="width: 100%;margin-top:45px;">
  36. </div>
  37. <div id="video">
  38. <script type="text/javascript">
  39. var fileStr = $("#spStr").val();
  40. var videoObject = {
  41. container: '#video',//“#”代表容器的ID,“.”或“”代表容器的class
  42. variable: 'player',//该属性必需设置,值等于下面的new chplayer()的对象
  43. flashplayer:false,//如果强制使用flashplayer则设置成true
  44. video:fileStr,
  45. autoplay:true, //自动播放
  46. };
  47. var player = new ckplayer(videoObject);
  48. </script>
  49. </div>
  50. </body>
  51. </html>