Advertisement
Guest User

widget multi tab view

a guest
Mar 6th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.03 KB | None | 0 0
  1. <script type="text/javascript">
  2. //<![CDATA[
  3. function NewBloggerLab_oom(NBLID, id)
  4. {
  5.  var NewBloggerLab = document.getElementById(NBLID);
  6.  var NBLs = NewBloggerLab.firstChild;
  7.  while (NBLs.className != "NBLs" ) NBLs = NBLs.nextSibling;
  8.  var NBL = NBLs.firstChild;
  9.  var i   = 0;
  10.  do
  11.  {
  12.    if (NBL.tagName == "A")
  13.    {
  14.      i++;
  15.      NBL.href      = "javascript:NewBloggerLab_ubah('"+NBLID+"', "+i+");";
  16.      NBL.className = (i == id) ? "Active" : "";
  17.      NBL.blur();
  18.    }
  19.  }
  20.  while (NBL = NBL.nextSibling);
  21.  var Halamans = NewBloggerLab.firstChild;
  22.  while (Halamans.className != 'Halamans') Halamans = Halamans.nextSibling;
  23.  var Halaman = Halamans.firstChild;
  24.  var i    = 0;
  25.  do
  26.  {
  27.    if (Halaman.className == 'Halaman')
  28.    {
  29.      i++;
  30.      if (Halamans.offsetHeight) Halaman.style.height = (Halamans.offsetHeight-2)+"px";
  31.      Halaman.style.overflow = "auto";
  32.      Halaman.style.display  = (i == id) ? 'block' : 'none';
  33.    }
  34.  }
  35.  while (Halaman = Halaman.nextSibling);
  36. }
  37. function NewBloggerLab_ubah(NBLID, id) { NewBloggerLab_oom(NBLID, id);
  38. }
  39. function NewBloggerLab_inisial(NBLID) { NewBloggerLab_oom(NBLID,  1);
  40. document.write('');}
  41. //]]>
  42. </script>
  43.  
  44. <style>
  45. div.NewBloggerLab div.NBLs {
  46. height: 22px;
  47. overflow: hidden;
  48. }
  49. div.NewBloggerLab div.NBLs a:hover, div.NewBloggerLab div.NBLs a.Active {
  50. background-color: #eee;
  51. }
  52. div.NewBloggerLab div.Halamans {
  53. clear: both;
  54. border: 2px solid #f4f4f4;
  55. overflow: hidden;
  56. background-color: #ffffff;
  57. }
  58. div.NewBloggerLab div.Halamans div.Halaman {
  59. height: 100%; padding: 0px;
  60. overflow: hidden;
  61. }
  62. div.NewBloggerLab div.Halamans div.Halaman div.Alas {
  63. padding: 3px 5px;
  64. }
  65. div.NewBloggerLab div.NBLs a {
  66. border-left:1px solid #eee;
  67. border-right:1px solid #eee;
  68. border-top:1px solid #eee;
  69. border-boNBLom:0px solid #eee;
  70. float: left;
  71. display: block;
  72. width: 95px;
  73. text-align: center;
  74. vertical-align: middle;
  75. height: 24px;
  76. padding-top: 3px;
  77. text-decoration: none;
  78. font-family: "Arial", Serif;
  79. font-size: 11px;
  80. font-weight: 900;
  81. color: #000000
  82. }
  83. </style>
  84.  
  85. <br />
  86. <form action="NewBloggerLab.html" method="get">
  87. <div class="NewBloggerLab" id="NewBloggerLab">
  88. <div class="NBLs" style="width: 300px;">
  89. <a href="https://www.blogger.com/null">Tab 1 Title</a> <a href="https://www.blogger.com/null">Tab 2 Title</a> <a href="https://www.blogger.com/null">Tab 3 Title</a></div>
  90. <div class="Halamans" style="height: 420px; width: 284px;">
  91. <div class="Halaman">
  92. <div class="Alas">
  93. <br />
  94. Tab 1 Content Goes Here
  95. </div>
  96. <div class="Halaman">
  97. <div class="Alas">
  98. <br />
  99. Tab 2 Content Goes Here
  100. <div class="Halaman">
  101. <div class="Alas">
  102. <br />
  103. Tab 3 Content Goes Here
  104. </div>
  105. </div>
  106. </div>
  107. <small><a href="https://www.blogger.com/blogger.g?blogID=2278121941307322433" style="align: right; margin-left: 10px;" target="_blank"></a><a href="https://www.blogger.com/blogger.g?blogID=2278121941307322433" target="_blank"></a></small>
  108. </div>
  109. </form>
  110. <script type="text/javascript">NewBloggerLab_inisial('NewBloggerLab');</script></div>
  111. </div>
  112. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement