Results 1 to 2 of 2

Thread: DD Tab Menu II - Urgent Help - how to change onmouseover to onclick

  1. #1
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DD Tab Menu II - Urgent Help - how to change onmouseover to onclick

    I was testing this script DD Tab Menu II.

    It is working great. Here is the url:
    http://www.dynamicdrive.com/dynamici...ddtabmenu2.htm

    I tried to change the mouseover event to onclick event and it didn't work.
    Any ideas ?

    Thanks in advance.

    techie_ns.

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

    Default

    Changing the onmouseover event to onclick will work, though be sure to add "return false" to the end as well:

    Code:
    <div id="ddimagetabs">
    <a href="http://url/" onClick="expandcontent('sc1', this); return false">Home</a>
    <a href="http://url/" onClick="expandcontent('sc2', this); return false">New</a>
    <a href="http://url/" onClick="expandcontent('sc3', this); return false">Revised</a>
    <a href="http://url/" onClick="expandcontent('sc4', this); return false">Submit</a>
    </div>

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
  •