Board Logo

Reference HINTS_ITEMS array by name
pgunni - 8/6/2003 at 04:26 AM

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 - 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')"


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/