Agent Moose
|
|
« on: June 28, 2009, 12:05:00 pm » |
|
Footers: <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.htmlThis 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 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
|
|
|
|
|
Andrew
|
|
« Reply #1 on: June 28, 2009, 12:24:39 pm » |
|
Nicely done Agent Leopard
|
|
|
|
|
el mafioso
Exclusive
Offline
Posts: 553
SOTW 1st Champion
Badges: (View All)
|
|
« Reply #2 on: June 28, 2009, 04:01:02 pm » |
|
Yea that was fast lol
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
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 FontFace[w++] = "Unreal Tournament";
And it will just bring it up?
|
|
|
|
Exilis
|
|
« 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.
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
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?
|
|
|
|
el mafioso
Exclusive
Offline
Posts: 553
SOTW 1st Champion
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.
|
|
|
|
|
Exilis
|
|
« Reply #8 on: June 29, 2009, 06:53:58 am » |
|
Most probably the default font for posts.
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
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.
|
|
|
|
el mafioso
Exclusive
Offline
Posts: 553
SOTW 1st Champion
Badges: (View All)
|
Yes that's what I thought.
|
|
|
|
Crywolfz
Member
Offline
Gender:
Posts: 94
Badges: (View All)
|
|
« Reply #11 on: August 14, 2009, 04:00:19 pm » |
|
kewl code i needed that for my forum
|
|
|
|
|
|