Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Javascript - adding bold font command.

Author
Message
fallen one
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: My imagination!
Posted: 11th Jun 2009 21:34
Here is some javascript thats at the start of a script, I want to add in to make it bold, what do I add in, what the command.



Rudolpho
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 11th Jun 2009 22:58
Just a <b> bold text goes here</b> tag should do it.
I suppose you could also add style = "text-decoration: bold;" to the font tag. It is possible that such only works with div-, span, table-, etc. tags though. You should be just as well of with the <b> tags

Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 11th Jun 2009 23:27
You want to make the script bold? That makes no sense.

fallen one
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: My imagination!
Posted: 12th Jun 2009 01:24
your both way off,
I am using javascript. I do not want tags to post on a forum.

xplosys
19
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 12th Jun 2009 03:29 Edited at: 12th Jun 2009 03:33
Quote: "<center> <font color="#71025F" size="2" face="Verdana,Arial"> <script language="JavaScript"> // "


This is not JavaScript, it's html. Except for the //
In the text line you want the script to print, add the bold tags <b> inside the quotes.


There is another way that is more difficult to use and not as flexible. I guess it just depends what you are doing.

Brian.

Login to post a reply

Server time is: 2025-06-05 18:14:12
Your offset time is: 2025-06-05 18:14:12