PDA

View Full Version : Always on top message



gingerlily
07-31-2005, 08:22 PM
http://www.dynamicdrive.com/dynamicindex10/topmsg.htm
Above is the link to the Always on top message
How do I change the font of the message? And can a graphic be inserted?

cr3ative
07-31-2005, 08:35 PM
Change the following.


var message='<b><font color=000000 size=5 face="font name here>Help us spread the word. Please <a href="../link.htm">link to us</a>!</font></b><img src="image url here">'

The text formatting could be done with CSS, but as it's already using the <font> tag in the example, I shalln't confuse you.

cr3

Twey
08-01-2005, 06:34 AM
(hands Cr3 some quotation marks) You dropped these, sir.

var message='<b><font color="#000000 size=5 face="font name here">Help us spread the word. Please <a href="../link.htm">link to us</a>!</font></b><img src="image url here">'

jscheuer1
08-01-2005, 08:18 AM
You are both wrong, um too strong, guilty of typos. Here is how it should look:

var message='<b><font color="#000000" size="5" face="font name here">Help us spread the word. Please <a href="../link.htm">link to us</a>!</font></b><img src="image url here">'It's all a bit confusing because the demo, originally written for NS4 and IE5 (or 4?) did not use proper syntax for current Mozilla based browsers but, according to the demo page, the script was updated. The message string was not.

gingerlily
08-05-2005, 05:21 PM
Thank you, worked perfectly !!!!!

Twey
08-05-2005, 05:38 PM
Whoops, I missed one off the end of the colour. Numerical values don't need quotes, though it's usually a good idea to put them in anyway.