Results 1 to 6 of 6

Thread: Mouseover Tabs Menu in CSS

  1. #1
    Join Date
    Aug 2006
    Posts
    122

    Mouseover Tabs Menu in CSS

    Hi everyone, I am trying to make a tabs menu in CSS. Tabs menu definitely add attraction to the site, plus it makes the user more easy to direct to the other page. Also I have seen some gray round corner tabs that reveal a second level when the mouse rolls over each tab. I am trying to write a code that will do the same.!! I want to write a script that will move the mouse over designated links, and additional sub menu contents appear.!! So can anyone explain me how the Mouseover Tabs Menu in CSS are used.??
    Waiting for the Solutions..!!
    As you simplify your life, the laws of the universe will be simpler; solitude will not be solitude, poverty will not be poverty, nor weakness.Henry David Thoreau

  2. #2
    Join Date
    Jul 2006
    Posts
    442

    Re: Mouseover Tabs Menu in CSS

    You can use the mouseover tabs menu for more useful things other than the attraction. By using the mouseover tabs menu in CSS, you will able to move the mouse over designated links. Tab navigation has been one of the most fundamental element in any modern web structure. You can also add the sub menu contents which will appear in a separate DIV in CSS. Means that moving the mouse over designated links, you can able to add the "sub links" beneath it. The sub menu contents are defined inside an external file.
    "When they give you ruled paper, write the other way..." J.R.J.

  3. #3
    Join Date
    Aug 2006
    Posts
    227

    Re: Mouseover Tabs Menu in CSS

    When you have the appropriate markup language and you are having much knowledge about that language, then I would like to suggest you to use the markup rather than images whenever you want to convey information. The drawbacks of using an images is that it can appear blurry and pixelated when you use the screen magnifier. Also when the user uses the screen magnifier, many times they cannot read text embedded in images. So, its better to use the markup language instead of using an images. So according to me the best solution is using the CSS menu tabs. This will help you a lot in creating the menus.!
    I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.

  4. #4
    Join Date
    Aug 2006
    Posts
    235

    Re: Mouseover Tabs Menu in CSS

    I have given the coding that may help you in creating the menu tab by using the HTML and CSS.
    Since you are doing for the first time, I suggest that you should start with the simple link :
    HTML Code:
    <div id="menu"><a href="#">Index</a></div>
    After writing this code in HTML, you will have to assign the code to the CSS code. You can do this, like I did, in following coding :
    Code:
    #menu a
    {
    color: #000f;
    background: #ff000c;
    text-decoration: none
    }
    You can get the simple menu by using the above codes.
    3.2 (northwood)
    2gig ram
    ATI AIW X800xt 256mb
    Gigabyte GA-8knxp 875p Chipset
    Optiwrite 8X DVD Burner
    Win XP PRO Sp2 (Works Perfectly)
    2 SATA Raptor 74gig Raid 0
    2 7200 IDE 320gig HD

  5. #5
    Join Date
    Jul 2006
    Posts
    289

    Re: Mouseover Tabs Menu in CSS

    I thought that providing you with an example of Mouseover Tabs Menu in CSS will help a lot. So I have provided you with the sample of the code. You will have to add the following sample HTML to the BODY of your page. And as I said earlier, this sample contains one instance of a Mouseover Tabs Menu. Here is the script :
    Code:
    <div id="menutab" class="classmenu">
    <ul>
    <li><a href="http://www.javascripttrial.com" rel="gotsubmenu[selected]">JavaScript Trial</a></li>
    <li><a href="http://www.techarena.com" rel="gotsubmenu">CSS Drive</a></li>
    <li><a href="http://www.google.com">No Sub Menu</a></li>
    </ul>
    </div>
    
    <div id="menusub" class="tabsmenucontentclass">
    
    <a href="submenucontents.htm" style="visibility:hidden">Sub Menu contents</a>
    
    </div>
    
    <script type="text/javascript">
    //mouseovertabsmenu.init("tabs_container_id", "submenu_container_id", "bool_hidecontentsmouseout")
    mouseovertabsmenu.init("menutab", "menusub", true)
    
    </script>
    Signatures reduce available bandwidth

  6. #6
    Join Date
    Jul 2006
    Posts
    286

    Re: Mouseover Tabs Menu in CSS

    By using the CSS, you can create a gray round corner tabs that reveal a second level when the mouse rolls over each tab. I know the coding for adding the left menu tab corner. For doing that, you need to make a small image with the same colour for the left rounded corner. I hope that the following code will definitely help you :
    (The code is same as described by 'MELTRONICS', so that it will easy for you to understand)
    Code:
    #menu a
    {
    color: #000f;
    background: #ffa20c url(left-tab.gif) left top no-repeat;
    text-decoration: none
    }
    If you want to add some padding in your CSS, then you can have look at the code given down :
    Code:
    #menu a
    {
    color: #000f;
    background: #ffa20c url(left-tab.gif) left top no-repeat;
    text-decoration: none;
    padding-left: 10px
    }
    IF you hate me, please don't mention it. I know who hates me and who doesn't. You really do not have to make fun of people....

Similar Threads

  1. Mouseover Problem
    By balzano.5 in forum Hardware Peripherals
    Replies: 1
    Last Post: 03-04-2012, 11:01 PM
  2. Personas not changing on mouseover
    By Catawba in forum Operating Systems
    Replies: 3
    Last Post: 19-09-2010, 06:45 AM
  3. Image changing on mouseover
    By Shophia_D in forum Software Development
    Replies: 3
    Last Post: 25-11-2009, 09:34 PM
  4. How to play sound on click or on Mouseover
    By HarshaB in forum Software Development
    Replies: 2
    Last Post: 03-09-2009, 08:04 PM
  5. What is mouseover?
    By Yancy in forum Software Development
    Replies: 3
    Last Post: 19-03-2009, 11:43 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,120,191.17455 seconds with 17 queries