Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

domTT documentation?

Status
Not open for further replies.

Tracey

Programmer
Oct 16, 2000
690
NZ
Hi
can someone point me to some detailed info on how to customise the look of the tooltip please?
I have recently updated domTT.js in a legacy application and now the tooltips have no background...

I would like to be able to enclose them in a box like they were previously, but i cant make any sense of what little documentation i have been able to get hold of.. (howto)

Thanks in advance


Tracey






Tracey
Remember... True happiness is not getting what you want...

Its wanting what you have got!
 
I could be wrong but I dont think you can customise the tooltip. What I think you have is a div that is made visible on mouseover of an object.

Can you point me to a site or show us your code so we can see what's going wrong?

Cheers

Nick
 
Well i solved this after a wee sleep and a nudge in the right direction from google groups...

It seems that previous versions of domTT defaulted to domTTClassic style, however this is not the case anymore (updated version).... It is now necessary to pass the styleClass parameter when calling domTT_activate


I could not find documentation anywhere stating something like:
"To pass a value for a parameter, first pass the name of the parameter in string form, then a comma, then the value of that parameter"
Also, it doesnt seem to matter what order you pass these parameters.

So now my call looks something like this:
Code:
<a href='javascript:void(0);'onmouseover='return 
makeTrue(domTT_activate(this, event, "statusText", "put some text for status bar here", "styleClass", "domTTClassic", "content", "Sale 
Length: 4.3, Member: PFP<br>Jas: 28.774, Pcs: 29<br>Days Old: 9, 
Oldest Fell: 18-Apr-2007<br>Wk2: 29 ", "trail", true));'> 
<img name='imgGraph' id='imgGraph' alt='' src='WAITINGFORBONUS.jpg' 
border='0' />
And behaves as prior to the update


Cheers [cheers]

Tracey



Tracey
Remember... True happiness is not getting what you want...

Its wanting what you have got!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top