PDA

View Full Version : How to change the font of a script.



meadowsv
01-26-2005, 06:46 AM
Dynamic image selector All

http://www.dynamicdrive.com/dynamicindex4/imageselector.htm

Is it possible to change the font and color of the descriptions?

var description=new Array()

description[0]="can I change the font and color of this text"

----------------------------------
Also, is it possible to change the font and color in the selection list box?

Thank you
Val
:o

simonf
01-26-2005, 07:57 AM
Hi


description[0]="can I change the font and color of this text"

Yes, change this line in the script:


<td width="65%" valign="top" align="left"><ilayer id="dynamic1" width=100% height=178><layer id="dynamic2" width=100% height=178><div id="dynamic3"></div></layer></ilayer></td>
TO:

<td width="65%" valign="top" align="left" style="font-family: Verdana; font-size: 12pt; color=#FF6060"><ilayer id="dynamic1" width=100% height=178><layer id="dynamic2" width=100% height=178><div id="dynamic3"></div></layer></ilayer></td>

meadowsv
01-26-2005, 09:06 AM
Thank you so much. I will try that.

Sincerely Grateful,
Val

Minos
01-26-2005, 06:06 PM
Just remember, the font you choose MUST be available on the user's pc, otherwise it will display as either the default, or the next famil in the line. Not until CSS3 is the ability to download fonts supposed to arise.