We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 2
Add more Fonts
Topic Started: May 7 2010, 11:59 PM (7,798 Views)
Agent Moose-ZNR
Member Avatar
♪ === ♥
[ *  * ]
I was looking around and I realized (after searching) that there wasn't a "Add more Fonts" code, so I decided to make that simple code. ^_^

Below the Board:
Code:
 
<script type="text/javascript">
var FontFace = new Array(), w = 0;
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++] = "Lucida Console";
FontFace[w++] = "Lucida Sans Unicode";
FontFace[w++] = "Microsoft Sans Serif";
FontFace[w++] = "Palatino Linotype";
FontFace[w++] = "System";
FontFace[w++] = "Tahoma";
FontFace[w++] = "Trebuchet MS";

//Created by Agent Moose
var b = document.getElementsByTagName("select");
for(y=0;y<b.length;y++){
if(b[y].name === "font"){
for(x=0;x<FontFace.length;x++){
b[y].options[b[y].options.length] = new Option(FontFace[x],FontFace[x]);
for(p=0;p<b[y].options.length;p++){ b[y].options[p].style.fontFamily = b[y].options[p].value; };
};};};
</script>


You may add/remove fonts as you wish :)

Enjoy :)
Offline Profile Quote Post Goto Top
 
Replies:
Quantom X
Member Avatar
got game?
[ *  *  * ]
Is there a way of uploading more fonts like a Star Wars font so that the forum can use it?
Offline Profile Quote Post Goto Top
 
.awd (R)
Member Avatar
Member
[ *  *  * ]
Nice!
Offline Profile Quote Post Goto Top
 
Jayd101
Member Avatar
Member
[ * ]
I can't get this code to work either.
Offline Profile Quote Post Goto Top
 
Quantom X
Member Avatar
got game?
[ *  *  * ]
Quantom X
Jul 28 2010, 01:45 PM
Is there a way of uploading more fonts like a Star Wars font so that the forum can use it?
Offline Profile Quote Post Goto Top
 
RogerTheJolly
Member Avatar
Member
[ *  * ]
Er...for those of us who are more...inept and can't really imagine what "Below the board" means...

I've tried Header & Body, Footer, and where the CSS go but haven't had any indication of new fonts showing up...
Offline Profile Quote Post Goto Top
 
Pando
Member Avatar
Member
[ *  *  *  *  *  * ]
Go to Admin CP, then the Board Template (right below the Themes in the left bar), find a textarea that says Below The Board, stick it there.
Edited by Pando, Sep 15 2010, 03:31 PM.
Offline Profile Quote Post Goto Top
 
NickB
Member Avatar
Member
[ *  * ]
Awesome code, Agent Moosey :D Love your work!
Offline Profile Quote Post Goto Top
 
Deleted User
Deleted User

Two forums, added in the same place. Neither one works..

And my posting box does not look like this posting box..
Quote Post Goto Top
 
nikatsu
Member
[ * ]
Thanks so much! This works perfectly.
Offline Profile Quote Post Goto Top
 
Weegee
Member Avatar
Member
[ * ]
Thanks! I have added this to my forum!
Offline Profile Quote Post Goto Top
 
Sweetmelody.06
Member Avatar
Member
[ * ]
I could not get it to work, but could it be that I have another code in the same place or that shouldn't matter?
Offline Profile Quote Post Goto Top
 
The Duke
Member
[ * ]
Now only if I could add a font button. Anyone know how to do that?
And by button I obviously meant drop down...my b.
Edited by The Duke, Sep 20 2011, 12:26 AM.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Preferences Posted Image BBCode

Click the 'Show Tag Button' radio button for the font tag.
Online Profile Quote Post Goto Top
 
The Duke
Member
[ * ]
Well look at that! Cory, you are my hero.
Offline Profile Quote Post Goto Top
 
SHS Pidgeot
Member Avatar
Member
[ * ]
How do you get a drop down menu for fonts? I only have one for color when posting...

Nevermind, I read a few post up lol. I feel stupid :p
Edited by SHS Pidgeot, Nov 16 2011, 01:21 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2