----- Original Message -----From: manon_purpleSent: Saturday, April 30, 2005 4:49 AMSubject: Re: [OLmws] Need help with print functionHi Fote, just saw this comment after I did send my earlier one. Will make these changes some time later this weekend. Thank you very much for all your efforts!
best wishes,
manon
Manon,
Looks like you have made the additional changes, but on playing with it I found that the leftOverlib() definition needs an additional tweak for "perfection":
function leftOverlib(txt,cap) {
cClick = myClick;
overlib(txt, CAPTION, cap ,CGCLASS, 'caption',
BGCOLOR, '#000000', FGCOLOR , '#ffffff',
BORDER, 1, TEXTPADDING,0,LEFT,WRAP,STICKY,
CLOSETEXT,closeimg, CLOSECLICK,NOJUSTY,
PRINT,PRINTTEXT,printimg,AUTOSTATUSCAP,
RELX,40,RELY,20, FILTER,
FILTERSHADOW,2,FILTERSHADOWCOLOR,'#cccccc');
cClick = BGcClick;
return false;
}
cClick = myClick;
overlib(txt, CAPTION, cap ,CGCLASS, 'caption',
BGCOLOR, '#000000', FGCOLOR , '#ffffff',
BORDER, 1, TEXTPADDING,0,LEFT,WRAP,STICKY,
CLOSETEXT,closeimg, CLOSECLICK,NOJUSTY,
PRINT,PRINTTEXT,printimg,AUTOSTATUSCAP,
RELX,40,RELY,20, FILTER,
FILTERSHADOW,2,FILTERSHADOWCOLOR,'#cccccc');
cClick = BGcClick;
return false;
}
Also, do not use lead zeros in your TextStr[#] and CapStr[#] array definitions and overlib() calls because that technically makes such numbers octal and the browsers with good JavaScript Consoles will complain about TextStr[08], TextStr[09], CapStr[08], and CapStr[09] (though their "forgiving" javascript interpreters will, as you intend, treat them as decimal, i.e., TextStr[8], TextStr[9], CapStr[8], and CapStr[9]).
Fote
--