Results 1 to 2 of 2

Thread: Editing a current menu script

  1. #1
    Join Date
    Jan 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Editing a current menu script

    I am referring to the script found on this page:

    http://www.dynamicdrive.com/dynamici...ddtabmenu2.htm

    this script is perfect, i am only trying to add a OnmouseOut to it. As it is the button does not go to an original state when the users mouse goes of the tab it just stays on whatever was select last.

    Can I be helped to add a mouseOut state that when the users mouse goes of the tab the tab plays its orignal state of being non selected/highlighted. I'm not programming genious so your help is super appreciated.

  2. #2
    Join Date
    Dec 2004
    Posts
    177
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default

    If you delete the javascript function highlighttab:
    Code:
    function highlighttab(aobject){
    if (typeof tabobjlinks=="undefined")
    collectddimagetabs()
    for (i=0; i<tabobjlinks.length; i++)
    tabobjlinks[i].className=""
    aobject.className="current"
    }
    Then, delete the call to that function in expandcontent (!!!just the line that says highlighttab(aobject)!!!):
    Code:
    function expandcontent(cid, aobject){
    ...
    if (document.getElementById && turntosingle==0){
    highlighttab(aobject)
    ...
    }
    }
    and finally, in the <style> tags, change:
    Code:
    #ddimagetabs a:hover, #ddimagetabs a.current{
    to:
    Code:
    #ddimagetabs a:hover{
    Verzeihung!

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
  •