Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Tabbed Page in HTML

Tabbed Page in HTML

Scheduled Pinned Locked Moved Web Development
javascriptphphtmlcomtools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    swornavidhya_m
    wrote on last edited by
    #1

    I'm creating a tabbed page. I'm stuck with setting the images to the tab headers. Coding

    <html>

    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 6.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Try Tabbed Page Example</title>

    <script type="text/javascript" >
    /* Copyright (C) 2005 Ilya S. Lyubinskiy. All rights reserved.
    Technical support: http://www.php-development.ru/

    YOU MAY NOT
    (1) Remove or modify this copyright notice.
    (2) Distribute this code, any part or any modified version of it.
    Instead, you can link to the homepage of this code:
    http://www.php-development.ru/javascripts/tabview.php.

    YOU MAY
    (1) Use this code on your website.
    (2) Use this code as a part of another product.

    NO WARRANTY
    This code is provided "as is" without warranty of any kind, either
    expressed or implied, including, but not limited to, the implied warranties
    of merchantability and fitness for a particular purpose. You expressly
    acknowledge and agree that use of this code is at your own risk.

    If you find my script useful, you can support my site in the following ways:

    1. Vote for the script at HotScripts.com (you can do it on my site)
    2. Link to the homepage of this script or to the homepage of my site:
      http://www.php-development.ru/javascripts/tabview.php
      http://www.php-development.ru/
      You will get 50% commission on all orders made by your referrals.
      More information can be found here:
      http://www.php-development.ru/affiliates.php
      */

    // ----- Auxiliary -------------------------------------------------------------

    function tabview_aux(TabViewId, id)
    {
    var TabView = document.getElementById(TabViewId);

    // ----- Tabs -----

    var Tabs = TabView.firstChild;
    while (Tabs.className != "Tabs" ) Tabs = Tabs.nextSibling;

    var Tab = Tabs.firstChild;
    var i = 0;

    do
    {
    if (Tab.tagName == "A")
    {
    i++;
    Tab.href = "javascript:tabview_switch('"+TabViewId+"', "+i+");";
    Tab.className = (i == id) ? "Active" : "";
    Tab.blur();
    }
    }
    while (Tab = Tab.nextSibling);

    // ----- Pages -----

    var Pages = TabView.firstChild;
    while (Pages.className != 'Pages') Pages = Pages.nextSibling;

    var Page = Pages.firstChild;
    var i = 0;

    do
    {
    if (Page.className == 'Page')
    {
    i++;
    if (Pages.offsetHeight) Page.style.hei

    M 1 Reply Last reply
    0
    • S swornavidhya_m

      I'm creating a tabbed page. I'm stuck with setting the images to the tab headers. Coding

      <html>

      <head>
      <meta name="GENERATOR" content="Microsoft FrontPage 6.0">
      <meta name="ProgId" content="FrontPage.Editor.Document">
      <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
      <title>Try Tabbed Page Example</title>

      <script type="text/javascript" >
      /* Copyright (C) 2005 Ilya S. Lyubinskiy. All rights reserved.
      Technical support: http://www.php-development.ru/

      YOU MAY NOT
      (1) Remove or modify this copyright notice.
      (2) Distribute this code, any part or any modified version of it.
      Instead, you can link to the homepage of this code:
      http://www.php-development.ru/javascripts/tabview.php.

      YOU MAY
      (1) Use this code on your website.
      (2) Use this code as a part of another product.

      NO WARRANTY
      This code is provided "as is" without warranty of any kind, either
      expressed or implied, including, but not limited to, the implied warranties
      of merchantability and fitness for a particular purpose. You expressly
      acknowledge and agree that use of this code is at your own risk.

      If you find my script useful, you can support my site in the following ways:

      1. Vote for the script at HotScripts.com (you can do it on my site)
      2. Link to the homepage of this script or to the homepage of my site:
        http://www.php-development.ru/javascripts/tabview.php
        http://www.php-development.ru/
        You will get 50% commission on all orders made by your referrals.
        More information can be found here:
        http://www.php-development.ru/affiliates.php
        */

      // ----- Auxiliary -------------------------------------------------------------

      function tabview_aux(TabViewId, id)
      {
      var TabView = document.getElementById(TabViewId);

      // ----- Tabs -----

      var Tabs = TabView.firstChild;
      while (Tabs.className != "Tabs" ) Tabs = Tabs.nextSibling;

      var Tab = Tabs.firstChild;
      var i = 0;

      do
      {
      if (Tab.tagName == "A")
      {
      i++;
      Tab.href = "javascript:tabview_switch('"+TabViewId+"', "+i+");";
      Tab.className = (i == id) ? "Active" : "";
      Tab.blur();
      }
      }
      while (Tab = Tab.nextSibling);

      // ----- Pages -----

      var Pages = TabView.firstChild;
      while (Pages.className != 'Pages') Pages = Pages.nextSibling;

      var Page = Pages.firstChild;
      var i = 0;

      do
      {
      if (Page.className == 'Page')
      {
      i++;
      if (Pages.offsetHeight) Page.style.hei

      M Offline
      M Offline
      Murugesan G
      wrote on last edited by
      #2

      programaticaly change the background img / css classes for mouseover & out.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups