October 21, 2018, 03:57:26 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Add more Fonts

Pages: [1]   Go Down
  Print  
Author Topic: Add more Fonts  (Read 1056 times)
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« on: June 28, 2009, 12:05:00 pm »

Footers:
Code:
<script type="text/javascript">
var FontFace = new Array();var w = 0;
FontFace[w++] = "Arial";
FontFace[w++] = "Arial Black";
FontFace[w++] = "Arial Narrow";
FontFace[w++] = "Book Antiqua";
FontFace[w++] = "Century Gothic";
FontFace[w++] = "Comic Sans MS";
FontFace[w++] = "Courier New";
FontFace[w++] = "Fixedsys";
FontFace[w++] = "Franklin Gothic Medium";
FontFace[w++] = "Garamond";
FontFace[w++] = "Georgia";
FontFace[w++] = "Lucida Console";
FontFace[w++] = "Lucida Sans Unicode";
FontFace[w++] = "Microsoft Sans Serif";
FontFace[w++] = "Palatino Linotype";
FontFace[w++] = "System";
FontFace[w++] = "Tahoma";
FontFace[w++] = "Times New Roman";
FontFace[w++] = "Trebuchet MS";
FontFace[w++] = "Verdana";

var Options = "";
//Created by Agent Moose (revolutionx.smfforfree3.com)
for(x=0;x<FontFace.length;x++){
Options += "<option value='" + FontFace[x] + "'>" + FontFace[x] + "</option>";
};
$("a img[src*='bbc/face.gif']").each(function(){
var Selection = "<select id='FONT' style='margin-bottom: 1ex;'><option value='' selected='selected'>Change Font</option>" + Options + "</select>";
$(this).parent().after(Selection);
this.parentNode.style.display = "none";
});
$("#FONT option").click(function(){
surroundText('[font=' + this.value.toLowerCase() + ']', '[/font]', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);
});
</script>

Original Request: http://revolutionx.smfforfree3.com/index.php/topic,796.0.html

This code will replace the Font Face type () with a selection box, alowing you to choose a font that you would like to use.

Easy and Effective Smiley

If you would like to add more fonts, add more of these lines:
FontFace[w++] = "FONT NAME";

If you would like to remove any of the fonts that are already in the code, you may go ahead and do so.

Enjoy Smiley
Report Spam   Logged


Social Buttons

Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
Badges: (View All)
« Reply #1 on: June 28, 2009, 12:24:39 pm »

Nicely done Agent Leopard Cheesy
Report Spam   Logged

el mafioso
Exclusive
Exclusive
Offline Offline

Posts: 553


SOTW 1st Champion


View Profile
Badges: (View All)
« Reply #2 on: June 28, 2009, 04:01:02 pm »

Yea that was fast lol
Report Spam   Logged

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #3 on: June 28, 2009, 07:39:37 pm »

Nicely done Moose.
This is good.
But do we add fonts like this
Code:
FontFace[w++] = "Unreal Tournament";
And it will just bring it up?
Report Spam   Logged






Exilis
Optimistic & Creative
Global Moderator
Global Moderator
Offline Offline

Posts: 929


View Profile
Badges: (View All)
« Reply #4 on: June 28, 2009, 08:02:08 pm »

Barely anyone has the Unreal Tournament font on their computer, so it won't show up for anyone.
Report Spam   Logged

Global Mod, (sort of) at your service.

http://twitter.com/timothyaveni

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #5 on: June 28, 2009, 09:34:27 pm »

Ahhh ok.
So it'll only show up if they've got it on their computer?

If they don't have it, what font does it come up as?
Report Spam   Logged






el mafioso
Exclusive
Exclusive
Offline Offline

Posts: 553


SOTW 1st Champion


View Profile
Badges: (View All)
« Reply #6 on: June 28, 2009, 09:57:59 pm »

Yes it will only show up if they have it install in their computer.

I am not sure what font would come up.
Report Spam   Logged

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #7 on: June 28, 2009, 10:03:53 pm »

Ahh dang.
I'll find out soon  Grin
Report Spam   Logged






Exilis
Optimistic & Creative
Global Moderator
Global Moderator
Offline Offline

Posts: 929


View Profile
Badges: (View All)
« Reply #8 on: June 29, 2009, 06:53:58 am »

Most probably the default font for posts.
Report Spam   Logged

Global Mod, (sort of) at your service.

http://twitter.com/timothyaveni

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #9 on: June 29, 2009, 07:18:48 am »

Most probably the default font for posts.
Ahh kk. Thx for telling me.
So if they don't have the font it comes up as the original.
Report Spam   Logged






el mafioso
Exclusive
Exclusive
Offline Offline

Posts: 553


SOTW 1st Champion


View Profile
Badges: (View All)
« Reply #10 on: June 29, 2009, 11:29:31 am »

Yes that's what I thought.
Report Spam   Logged

Crywolfz
Member
Member
Offline Offline

Gender: Male
Posts: 94



View Profile
Badges: (View All)
« Reply #11 on: August 14, 2009, 04:00:19 pm »

kewl code i needed that for my forum
Report Spam   Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum | Buy traffic for your forum/website

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy