PDA

View Full Version : Tab Content Script



jmbaratta
05-27-2009, 03:00 PM
1) Script Title: Tab content script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/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?

ddadmin
05-28-2009, 05:15 AM
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:


instance.expandit(tabid_or_position)

to dynamically select a particular tab. In your case the link may look something like:


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

jmbaratta
05-28-2009, 02:27 PM
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:

onMouseout="countries.expandit(1)"

That, however, didn't seem to solve the problem. Any advice you have would be appreciated. Thanks!

ddadmin
05-29-2009, 12:29 AM
Hi:
The URL you cited above appears broken to me.