The Funelephant Forums!

You are not logged in.

Announcement

The Forums are currently Read-Only except for Mods & admin. These forums are closing down, but don't worry! We created a new forum, with more features! They are almost ready. We know it's hard to transition, but it's for the best! :D New Forums are here!

Adverts

Adverts

#1 Sunday, July 8, 2012 15:15:23

GeonoTRON2000
Outstanding Member
Registered: Sunday, June 17, 2012
Posts: 121
FunCoinz: 49
Bank: 174
Reputation :   
Website

JS Custom BBCodes Official Topic

Discuss Custom BBCodes here.

I was wondering how to make a BBCode like this in javascript:

Code:

[font={font}]{text}[/font]

http://img440.imageshack.us/img440/1846/gtforumsusarmy.png

Offline

 

Sunday, July 8, 2012 15:15:23

AdBot
Advertisements

#2 Monday, July 9, 2012 00:53:32

daniel_j
From: Adelaide, Australia
Registered: Monday, July 2, 2012
Posts: 303
FunCoinz: 256
Bank: 50
Reputation :   
Website

Re: JS Custom BBCodes Official Topic

if I understand, you want a javascript to make text using a different font..?
wouldn't this work for you though?

Code:

<font face="font"
<p> text either using a para or not.
</font>

But anyway, here is a javascript for that :)

Code:

Aghhh, this one has been difficult, ad I have relized that you want custom coding dont you? :D
Script Language="JavaScript">
document.write("<h1><font face=your font here color=color here>Your text here</font></h1>")
</Script>

Is this what you need?
Sorry if I misunderstood!
Dan
:D


For all those wondering why, why?

Offline

 

#3 Monday, July 9, 2012 02:05:41

funelephant
Registered: Tuesday, April 10, 2012
Posts: 1114
FunCoinz: 468
Bank: 462
Reputation :   

Re: JS Custom BBCodes Official Topic

I know <font face> tags change the font


We found this tube of glue stuck to your... uh... anyways, you can only use glue sticks now.
http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/90000/3000/900/93946/93946.strip.zoom.gif

Offline

 

#4 Monday, July 9, 2012 02:22:15

daniel_j
From: Adelaide, Australia
Registered: Monday, July 2, 2012
Posts: 303
FunCoinz: 256
Bank: 50
Reputation :   
Website

Re: JS Custom BBCodes Official Topic

yeah <font face="font"> is for HTML though, not javascript :)


For all those wondering why, why?

Offline

 

#5 Monday, July 9, 2012 08:49:55

SciTecCf
Outstanding Member
Registered: Sunday, July 1, 2012
Posts: 137
FunCoinz: 35
Bank: 62
Reputation :   

Re: JS Custom BBCodes Official Topic

Javascript is more for injecting CSS and HTML in an interactive or dynamic way.

PHP is much better for this.

Last edited by SciTecCf (Monday, July 9, 2012 09:03:23)


http://i1237.photobucket.com/albums/ff468/sciteccf/GrayAd.gif

Offline

 

#6 Monday, July 23, 2012 21:51:31

GeonoTRON2000
Outstanding Member
Registered: Sunday, June 17, 2012
Posts: 121
FunCoinz: 49
Bank: 174
Reputation :   
Website

Re: JS Custom BBCodes Official Topic

SciTecCf wrote:

Javascript is more for injecting CSS and HTML in an interactive or dynamic way.

PHP is much better for this.

Ever noticed we're on punbb hosting?  We don't have access to php.


http://img440.imageshack.us/img440/1846/gtforumsusarmy.png

Offline

 

Adverts

Board footer

Powered by FluxBB
Hosted by PunBB-Hosting