Results 1 to 4 of 4

Thread: Tab Content Script

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

    Default Tab Content Script

    1) Script Title: Tab content script

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

    3) Describe problem: I have modified the script by changing the onclick to onmouseover. Is it possible to further modify the script to cause the first div to show on "mouseout" of a particular button?

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

    Default

    Is it possible to further modify the script to cause the first div to show on "mouseout" of a particular button?
    By button, do you mean one of the tabs, or just some arbitrary link on the page? Either way, you can call the function:

    Code:
    instance.expandit(tabid_or_position)
    to dynamically select a particular tab. In your case the link may look something like:

    Code:
    <a href="#" onMouseout="myflowers.expandit(1)">Select 2nd Tab</a>
    DD Admin

  3. #3
    Join Date
    Nov 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your recommendations. I have made the change, but I can't seem to get it to work. Would you mind taking a quick look at my page and let me know what I am doing wrong?

    The page URL is http://www.medmarketplace.com/mainluis.aspx. In the gold horizontal bar, you will see six image thumbnails (from hospital to individual seller).

    First note the text "What is MEDmarketplace.com?" underneath those thumbnails. Then mouse over the thumbnails to watch the text change. When mousing away (i.e., mouseout) from a thumbnail, we want that text to change back to the initial "What is MEDmarketplace.com?" text.

    On the Hospital Icon, I added the following code:
    Code:
    onMouseout="countries.expandit(1)"
    That, however, didn't seem to solve the problem. Any advice you have would be appreciated. Thanks!

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

    Default

    Hi:
    The URL you cited above appears broken to me.
    DD Admin

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
  •