frame_middle.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2017/12/11/011
  6. * Time: 19:37
  7. */
  8. ?>
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  10. <html xmlns="http://www.w3.org/1999/xhtml">
  11. <head>
  12. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  13. <title>显示/隐藏菜单</title>
  14. <script src="<?= STATIC_URL ?>/static/cp/js/jquery-1.7.2.min.js"></script>
  15. <link href="<?= STATIC_URL ?>/static/cp/css/base.css" rel="stylesheet" type="text/css" />
  16. <link href="<?= STATIC_URL ?>/static/cp/css/admin.css" rel="stylesheet" type="text/css" />
  17. <script type="text/javascript">
  18. $().ready(function() {
  19. var $main = $("#main");
  20. $main.click( function() {
  21. var mainFrameset = window.parent.window.document.getElementById("mainFrameset");
  22. if(mainFrameset.cols == "130,6,*") {
  23. mainFrameset.cols = "0,6,*";
  24. $main.removeClass("leftArrow");
  25. $main.addClass("rightArrow");
  26. } else {
  27. mainFrameset.cols = "130,6,*";
  28. $main.removeClass("rightArrow");
  29. $main.addClass("leftArrow");
  30. }
  31. })
  32. })
  33. </script>
  34. <style type="text/css">
  35. <!--
  36. html, body {
  37. height: 100%;
  38. overflow:hidden;
  39. }
  40. -->
  41. </style>
  42. </head>
  43. <body class="middle">
  44. <div id="main" class="main leftArrow"></div>
  45. </body>
  46. </html>