pgunni
Junior Member
Posts: 3
Registered: 8/6/2003
Member Is Offline
|
| posted on 8/6/2003 at 04:26 AM |
|
|
Reference HINTS_ITEMS array by name
Firstly, very cool tool.
How do you create the array of hints so they can be referenced by name e.g myHint.show('Tip1')?
Also when is the PRO version out?
Regards
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 8/6/2003 at 02:17 PM |
|
|
You should modify timeout call as the follows:
setTimeout('myHint.showD("'+id+'")', this.n_dl_show);
setTimeout('myHint.showElem("' + this.visible + '", true)', 10);
Items should be defined as:
HINTS_ITEMS = {
'TT1':wrap("Tigra Hints Product Page"),
'TT2':wrap("SoftComplex Download Page"),
'TT3':wrap("Tigra Hints Forum"),
'TT4':wrap_img("01", "A picture of a tiger"),
'TT5':wrap_img("70","A picture of a tiger"),
'TT6':wrap_img("20","A picture of a puma")
};
And show call will be:
onMouseOver="myHint.show('TT5')"
|
|
|
|