Results 1 to 5 of 5

Thread: Mouseover Tabs Menu

  1. #1
    Join Date
    Feb 2008
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Mouseover Tabs Menu

    1) Script Title: Mouseover Tabs Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...seovertabs.htm

    3) Describe problem: I would like some of my tabs(text) when I mouseover to not be a link, just its submenu's. Everything else is working great!

    <div id="mytabsmenu" class="tabsmenuclass"><span class="style1">
    <a href="http://www.ekcsk12.org/faculty/hogle/assignments.htm"[selected]>Assignments/Notes</a>
    <a href="http://www.ekcsk12.org/faculty/hogle/grades.htm"> - Grades </a>
    <a href="http://www.javascriptkit.com" rel="gotsubmenu"> - Algebra </a>
    <a href="http://www.cssdrive.com" rel="gotsubmenu"> - Geometry </a> (( I don't want this to be a link))
    <a href="http://www.cssdrive.com" rel="gotsubmenu"> - Algebra 1b </a>
    <a href="http://www.cssdrive.com" rel="gotsubmenu"> - Math 7/8 </a>
    <a href="http://www.cssdrive.com" rel="gotsubmenu"> - Links </a>
    <a href="http://www.ekcsk12.org/departments/math.htm"> - Math Department</a>
    </span></div>


    I am using a page property that changes the link color and underlines it on mouseover. My page is being developed @ http://www.ekcsk12.org/faculty/hogle/newsite/default2.

    Thanks
    Last edited by jhogle; 11-24-2008 at 04:54 PM. Reason: Sorry I am new at this

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Are you saying you wish a particular top tab to not be a link, but just regular text? Why not just disable the link instead, something like:

    Code:
    <div id="mytabsmenu" class="tabsmenuclass"><span class="style1">
    <a href="http://www.ekcsk12.org/faculty/hogle/assignments.htm"[selected]>Assignments/Notes</a>
    <a href="http://www.ekcsk12.org/faculty/hogle/grades.htm"> - Grades </a>
    <a href="http://www.javascriptkit.com" rel="gotsubmenu"> - Algebra </a>
    <a href="http://www.cssdrive.com" rel="gotsubmenu"> - Geometry </a> (( I don't want this to be a link))
    <a href="#" rel="gotsubmenu" onClick="return false"> - Algebra 1b </a>
    <a href="http://www.cssdrive.com" rel="gotsubmenu"> - Math 7/8 </a>
    <a href="http://www.cssdrive.com" rel="gotsubmenu"> - Links </a>
    <a href="http://www.ekcsk12.org/departments/math.htm"> - Math Department</a>
    </span></div>
    This is a lot easier than actually removing the link, since the look of the tabs is styled via CSS that assumes each tab to be a link.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    jhogle (12-05-2008)

  4. #3
    Join Date
    Feb 2008
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Very Close

    Thank You,
    I did try to disable the links and it does work. The new issue is that when I hover over the disabled links they still appear to be links because they change color and underline when hovering over them according to the page properties.

    I was hoping for the text to do nothing when hovering over it as it does after trying to visit the link.

    <div id="mytabsmenu" class="tabsmenuclass"><span class="style1">
    <a href="http://www.ekcsk12.org/faculty/hogle/assignments.htm"[selected]>Assignments/Notes</a>
    <a href="http://www.ekcsk12.org/faculty/hogle/grades.htm"> - Grades </a>
    <a href="http://www.javascriptkit.com" rel="gotsubmenu"> - Algebra </a>
    <a href="#" rel="gotsubmenu" onClick="return false"> - Geometry </a>
    <a href="#" rel="gotsubmenu" onClick="return false"> - Algebra 1b </a>
    <a href="#" rel="gotsubmenu" onClick="return false"> -Math 7/8 </a>
    <a href="#" rel="gotsubmenu" onClick="return false"> - Links </a>
    <a href="http://www.ekcsk12.org/departments/math.htm"> - Math Department</a>
    </span></div>

    http://www.ekcsk12.org/faculty/hogle...e/default2.htm

    Much appreciated

  5. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You can use CSS to disable the hover effects over those "disabled" links. Something like:

    Code:
    <style type="text/css">
    
    a.disabled:link, a.disabled:visited, a.disabled:hover, a.disabled:active{
    color: black;
    }
    
    </style>
    Then inside those disabled links, give them a CSS class of disabled:

    Code:
    <a href="#" rel="gotsubmenu" class="disabled" onClick="return false"> - Geometry </a>
    DD Admin

  6. The Following User Says Thank You to ddadmin For This Useful Post:

    jhogle (12-04-2008)

  7. #5
    Join Date
    Feb 2008
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default resolved

    Issue resolved. Thank you!

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
  •