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
  • 3
Add more Fonts
Topic Started: May 7 2010, 11:59 PM (7,795 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
 
maytads
Member Avatar
Rich Girl~ Nararananaranarana~
[ *  * ]
Thank you very much :3
It works fine ^^
Offline Profile Quote Post Goto Top
 
Pando
Member Avatar
Member
[ *  *  *  *  *  * ]
Thanks! :yes:
Offline Profile Quote Post Goto Top
 
JulieE
Member
[ * ]
Brilliant code thank you :D
Offline Profile Quote Post Goto Top
 
KillerCupcakes
Member Avatar
Death of Auto-Tune;The Moment Is Silent
[ *  * ]
God I <3 this code.It's amazing.
Offline Profile Quote Post Goto Top
 
N00b.
Member
[ *  *  * ]
good code :)
Offline Profile Quote Post Goto Top
 
Alexia Frost
Member Avatar
Member
[ * ]
I would love to have this code but it isn't showing up for me. I put it in Below the Board, and I didn't edit it at all, I wonder what I did wrong. Can anyone suggest what I could do?
Offline Profile Quote Post Goto Top
 
SlyCooperFan
Member Avatar
Member
[ * ]
What does this exactly do? xD
Offline Profile Quote Post Goto Top
 
nalandra
Member
[ * ]
where to put it?
i an a noob
Offline Profile Quote Post Goto Top
 
Pando
Member Avatar
Member
[ *  *  *  *  *  * ]
Nightcrawler
May 7 2010, 11:59 PM
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:
There it is.
Offline Profile Quote Post Goto Top
 
Chule
Member Avatar
Member
[ * ]
amazing code, thnx <3
Offline Profile Quote Post Goto Top
 
terralime
Member
[ * ]
thank you so much. love this code. :)
Offline Profile Quote Post Goto Top
 
Zedboards-ZNR
Member Avatar
Member
[ *  * ]
Hi Agent Moose?

I love your font code, but I have a question. When I put it in our below the board, our "font" dropdown box gets a carriage return in the title. This means, when I hit Add Reply or New Topic and get the full screen, the box with the word Font in it (that you click on for the dropdown menu) has an extra blank line beneath the word Font. I took the code back out and this went away again. Any thoughts on where that is so I can take it out?

Thanks!
Zed
Edited by Zedboards-ZNR, Jul 14 2010, 05:37 AM.
Offline Profile Quote Post Goto Top
 
Zedboards-ZNR
Member Avatar
Member
[ *  * ]
anyone else who can answer this question?
Offline Profile Quote Post Goto Top
 
Chaco-late
Member Avatar
Member
[ * ]
This is an incredible code! Thank you :)
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
  • 3