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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there any way to take the follow

Status
Not open for further replies.

KevinFSI

Programmer
Nov 17, 2000
582
US
Is there any way to take the following code and manipulate the fonts (bold/italic/etc...) of individual parts of the text rather than the text as a whole. In other words, can I make just one word bold?

Thanks,
Kevin

Code:
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
   MyFont  = &quot;Arial,9&quot;
   MyText  = &quot;-- Hourly Employees --\n\n&quot;
   MyText += &quot;*  You earn 40 hours of sick leave each year, although you may not use any during your first three\n&quot;
   MyText += &quot;   months of employment.\n\n&quot;
   MyText += &quot;*  If earned sick leave has not been used at the end of the year, the balance will be paid to you.\n\n&quot;
   MyText += &quot;*  Although sick days are given to provide continued income when you are unable to go to work because\n&quot;
   MyText += &quot;   of your health, you will be allowed to use these days for time off for other personal reasons also.&quot;
</SCRIPT>
<OBJECT
	id=popup
  	type=&quot;application/x-oleobject&quot;
  	classid=&quot;clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11&quot;>
</OBJECT>


<FORM ACTION=&quot;JavaScript:popup.TextPopup(MyText,MyFont,9,9,-1,-1)&quot;>
 
Text ranges probably won't work in that case, but they are interesting so you should check them out anyways... I'm not very familiar with that popup object, but maybe check out

forum117 visual interdev forum
jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top