I posted this once before but screwed up the subject, so here it is again:
Is there any way to take the following code and manipulate the fonts (bold/italic/etc...) of individual parts of the text in "MyText" rather than the text as a whole? In other words, can I make just one word bold? Isn't there something like
? I think
just throws some <B></B> tags around the string though. As you can see, I'm lost!
Thanks,
Kevin
Is there any way to take the following code and manipulate the fonts (bold/italic/etc...) of individual parts of the text in "MyText" rather than the text as a whole? In other words, can I make just one word bold? Isn't there something like
Code:
string.bold()
Code:
string.bold()
Thanks,
Kevin
Code:
<SCRIPT LANGUAGE="JavaScript">
MyFont = "Arial,9"
MyText = "-- Hourly Employees --\n\n"
MyText += "* You earn 40 hours of sick leave each year, although you may not use any during your first three\n"
MyText += " months of employment.\n\n"
MyText += "* If earned sick leave has not been used at the end of the year, the balance will be paid to you.\n\n"
MyText += "* Although sick days are given to provide continued income when you are unable to go to work because\n"
MyText += " of your health, you will be allowed to use these days for time off for other personal reasons also."
</SCRIPT>
<OBJECT
id=popup
type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
</OBJECT>
<FORM ACTION="JavaScript:popup.TextPopup(MyText,MyFont,9,9,-1,-1)">