index8.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <title>山东华力机电有限公司</title>
  7. <link type="text/css" href="../static/css/style.css" rel="stylesheet" />
  8. <link type="text/css" href="../static/css/nav.css" rel="stylesheet" />
  9. <script type="text/javascript" src="../static/js/jquery-1.7.1.min.js"></script>
  10. <script type="text/javascript" src="../static/js/jquery.event.drag-1.5.min.js"></script>
  11. <script type="text/javascript" src="../static/js/jquery.touchSlider.js"></script>
  12. <script type="text/javascript">
  13. $(document).ready(function() {
  14. $(".main_visual").hover(function() {
  15. $("#btn_prev,#btn_next").fadeIn()
  16. }, function() {
  17. $("#btn_prev,#btn_next").fadeOut()
  18. });
  19. $dragBln = false;
  20. $(".main_image").touchSlider({
  21. flexible: true,
  22. speed: 200,
  23. btn_prev: $("#btn_prev"),
  24. btn_next: $("#btn_next"),
  25. paging: $(".flicking_con a"),
  26. counter: function(e) {
  27. $(".flicking_con a").removeClass("on").eq(e.current - 1).addClass("on");
  28. }
  29. });
  30. $(".main_image").bind("mousedown", function() {
  31. $dragBln = false;
  32. });
  33. $(".main_image").bind("dragstart", function() {
  34. $dragBln = true;
  35. });
  36. $(".main_image a").click(function() {
  37. if($dragBln) {
  38. return false;
  39. }
  40. });
  41. timer = setInterval(function() {
  42. $("#btn_next").click();
  43. }, 10000);
  44. $(".main_visual").hover(function() {
  45. clearInterval(timer);
  46. }, function() {
  47. timer = setInterval(function() {
  48. $("#btn_next").click();
  49. }, 10000);
  50. });
  51. $(".main_image").bind("touchstart", function() {
  52. clearInterval(timer);
  53. }).bind("touchend", function() {
  54. timer = setInterval(function() {
  55. $("#btn_next").click();
  56. }, 10000);
  57. });
  58. });
  59. </script>
  60. <style>
  61. .abc{
  62. top:10px;
  63. width: auto;
  64. height: auto;
  65. max-width: 900px;
  66. max-height: 952px;
  67. position: relative;
  68. /*width: 100%;*/
  69. background:url(../static/samplevideo/img/2.png);
  70. }
  71. </style>
  72. </head>
  73. <body>
  74. <div class="container">
  75. <ul class="uls">
  76. <a class="lis1 qyjj" href="/"></a>
  77. <a class="lis2 fdjz" href="/index2"></a>
  78. <a class="lis3 wp" href="/index3"></a>
  79. <a class="lis4 agv" href="/index4"></a>
  80. <a class="lis8 sc active8" href="/index8"></a>
  81. <a class="test" href="http://localhost:8888"></a>
  82. </ul>
  83. </div>
  84. <div class="main_visual">
  85. <div class="flicking_con">
  86. <a href="#"></a>
  87. <a href="#"></a>
  88. <a href="#"></a>
  89. <a href="#"></a>
  90. <a href="#"></a>
  91. <a href="#"></a>
  92. <a href="#"></a>
  93. </div>
  94. <div class="main_image">
  95. <ul>
  96. <li style="background: url(../static/img/agv.jpg) no-repeat 1px center;">.
  97. <div style="width: 1152px;height: 1080px;padding-left:150px;padding-top:250px;">
  98. <video class="abc" autoplay="" loop="" style="background-image:url(>)"><source src="../static/img/AGV~1.mp4" type="video/mp4"></video>
  99. </div>
  100. </li>
  101. <li><span class="img_41"></span></li>
  102. <li><span class="img_42"></span></li>
  103. <li><span class="img_43"></span></li>
  104. <li><span class="img_44"></span></li>
  105. <li><span class="img_45"></span></li>
  106. <li><span class="img_46"></span></li>
  107. <li><span class="img_47"></span></li>
  108. </ul>
  109. <a href="javascript:;" id="btn_prev"></a>
  110. <a href="javascript:;" id="btn_next"></a>
  111. </div>
  112. </div>
  113. <script type="text/javascript">
  114. setTimeout(function() {
  115. window.location.href = "/index5";
  116. }, 80000); //一秒钟之后打开新窗口,可以改其它时间
  117. </script>
  118. <script type="text/javascript">
  119. $(function() {
  120. $('.qyjj').click(function() {
  121. $('.qyjj').addClass('active1');
  122. $('.fdjz').removeClass('active2');
  123. $('.wp').removeClass('active3');
  124. $('.agv').removeClass('active4');
  125. $('.sc').removeClass('active8');
  126. });
  127. $('.fdjz').click(function() {
  128. $('.qyjj').removeClass('active1');
  129. $('.fdjz').addClass('active2');
  130. $('.wp').removeClass('active3');
  131. $('.agv').removeClass('active4');
  132. $('.sc').removeClass('active8');
  133. });
  134. $('.wp').click(function() {
  135. $('.qyjj').removeClass('active1');
  136. $('.fdjz').removeClass('active2');
  137. $('.wp').addClass('active3');
  138. $('.agv').removeClass('active4');
  139. $('.sc').removeClass('active8');
  140. });
  141. $('.agv').click(function() {
  142. $('.qyjj').removeClass('active1');
  143. $('.fdjz').removeClass('active2');
  144. $('.wp').removeClass('active3');
  145. $('.agv').addClass('active4');
  146. $('.sc').removeClass('active8');
  147. });
  148. $('.sc').click(function() {
  149. $('.qyjj').removeClass('active1');
  150. $('.fdjz').removeClass('active2');
  151. $('.wp').removeClass('active3');
  152. $('.agv').removeClass('active4');
  153. $('.sc').addClass('active8');
  154. });
  155. }
  156. );
  157. </script>
  158. </body>
  159. </html>