index.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. <meta http-equiv="content-language" content="zh-cn" />
  6. <title></title>
  7. <meta name="keywords" content=" " />
  8. <style>
  9. *{margin:0px;padding:0px;list-style-type:none;}
  10. .v_out{width:100%;margin:0 auto;overflow:hidden;}
  11. .v_show{width:100%;overflow:hidden;position:relative;
  12. height: 100%;float:left}
  13. .v_cont{ width:100%;position:absolute;left:0px;top:0px;}
  14. .v_cont ul{float:left;text-align:center;line-height:0px;width: 100%}
  15. .v_cont ul li{width:100%;height:100%;background:#f8f8f8;float:left;margin-top:3px;}
  16. /*---圆圈---*/
  17. .v_out_p{position:relative;overflow:visible}
  18. /*---切换---*/
  19. .prev{
  20. position:absolute;
  21. left: 1%;
  22. width: 49px;
  23. /*top: 300px;*/
  24. z-index: 100;
  25. }
  26. .next{
  27. position:absolute;
  28. right: 1%;
  29. width: 49px;
  30. height:139px;
  31. top: 300px ;
  32. }
  33. .prev a{display: none;width:80px;display:block; }
  34. .prev .ico_1{ background:url(input_a.gif) no-repeat 0 -3757px;}
  35. .next a{display: none;width:80px;display:block; }
  36. .next .ico_2{background:url(input_a.gif) no-repeat right -3757px;}
  37. .prev,.next{width:80px;height:1080px; display:block}
  38. .hideind{ opacity: 0;}
  39. .hideinds{opacity: 1;}
  40. .functshow{ position: absolute; top:300px;}
  41. </style>
  42. <script type="text/javascript" src="../js/jquery.js"></script>
  43. <script type="text/javascript">
  44. function init() {
  45. $(".v_cont ul li").css('height', document.documentElement.clientHeight);
  46. $(".v_show").css('height', document.documentElement.clientHeight);
  47. window.onresize = function () {
  48. $(".v_cont ul li").css('height', document.documentElement.clientHeight);
  49. $(".v_show").css('height', document.documentElement.clientHeight);
  50. }
  51. }
  52. </script>
  53. </head>
  54. <body onload="init()">
  55. <div class="v_out v_out_p">
  56. <!--<div class="prev hideind"><a href="javascript:void(0)"><img class="functshow" src="../img/pre.png"/> </a></div>-->
  57. <div class="v_show">
  58. <div class="v_cont">
  59. <ul>
  60. <li index="2" style="background:#999"><iframe src="Datacages_Homeindex.html" style="width:100%;height:100%;"></iframe></li>
  61. </ul>
  62. </div>
  63. </div>
  64. <!--<div class="next hideind"><a href="javascript:void(0)"><img src="../img/next.png"/> </a> </div>-->
  65. <script type="text/javascript">
  66. $(function(){
  67. /*======next======*/
  68. $(".next a").click(function(){ nextscroll() });
  69. function nextscroll(){
  70. var vcon = $(".v_cont ");
  71. var offset = ($(".v_cont li").width())*-1;
  72. vcon.stop().animate({left:offset},"slow",function(){
  73. var firstItem = $(".v_cont ul li").first();
  74. vcon.find("ul").append(firstItem);
  75. $(this).css("left","0px");
  76. });
  77. };
  78. //setInterval(nextscroll,2000)
  79. /*======prev======*/
  80. $(".prev a").click(function(){ nextscroll() });
  81. function nextscroll(){
  82. var vcon = $(".v_cont ");
  83. var offset = ($(".v_cont li").width())*-1;
  84. vcon.stop().animate({left:offset},"slow",function(){
  85. var firstItem = $(".v_cont ul li").first();
  86. vcon.find("ul").append(firstItem);
  87. $(this).css("left","0px");
  88. });
  89. };
  90. /*======btn====circle======*/
  91. var animateEnd = 1;
  92. })
  93. $(".prev a ,.next a").hover(function(){
  94. $(this).show();
  95. })
  96. $(".hideind").mouseenter(function(){
  97. $(".hideind").addClass("hideinds");
  98. }).mouseleave(function(){
  99. $(".hideind").removeClass("hideinds");
  100. })
  101. </script>
  102. </div>
  103. </body>
  104. </html>