Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Oct 30, 2005 11:49:53 GMT
What this does is lets you use font larger or smaller than 1 or 7 by using a new 'micro' tag. It was originally designed to make font smaller but can also be used to make font bigger.
Global Footer:
<script type="text/javascript"> <!-- var image = 'http://www.proboards8.com/v4images/size.gif'; //Image URL
var td = document.getElementsByTagName('td'); for(i=0; i<td.length; i++) { if(td.innerHTML.match(/\[micro=(.+?)\](.+?)\[\/micro\]/) && !td.innerHTML.match(/<textarea/i)) { while(td.innerHTML.match(/\[micro=(.+?)\](.+?)\[\/micro\]/)){ td.innerHTML = td.innerHTML.replace(/\[micro=(.+?)\](.+?)\[\/micro\]/i, '<span style="font-size: '+parseInt(RegExp.$1)*2+'px;">'+RegExp.$2+'<\/span>'); }} else if(document.postForm && td.width == '70%' && td.innerHTML.match(/Bold/)) { td.innerHTML += '<a href="javascript:add(\'[micro=4]\',\'[/micro]\')"><img src='+image+' alt="[micro]" border="0" /></a>'; break; } } //--> </script>
|
|
jaarpets
Member
If YOU dont get WHAT I'm Saying---Realize, YOUR NOT IN MY HEAD
Posts: 122
|
Post by jaarpets on May 23, 2006 13:36:52 GMT
Ross, This is exactly what I am looking for but I am wondering if it will do this for the whole Forum/MB or Individually. I have a member who is legally Blind and would like to make it easier for her--however--I dont know if my other Members want a Lg Font. If this is a Genaeral Allover Code--Can you possibly make one for a member to chose the Font Size?
|
|
Richie
Veteran
^ Yes, That's me V_V
Posts: 624
|
Post by Richie on May 23, 2006 22:45:31 GMT
Ross, This is exactly what I am looking for but I am wondering if it will do this for the whole Forum/MB or Individually. I have a member who is legally Blind and would like to make it easier for her--however--I dont know if my other Members want a Lg Font. If this is a Genaeral Allover Code--Can you possibly make one for a member to chose the Font Size? <script> if(pb_username == ' USER1') { { document.write('<style type="text/css">body, td, font { font-size: 20px !important;}</style>'); } } </script> Edit the red parts with the username & font size they would prefer Goes in GLOBAL HEADER
|
|
ME!
Moderator
~Remanifesting-Eternal.~
Posts: 778
|
Post by ME! on May 24, 2006 9:46:34 GMT
one { is enuf SOE ...but good idea <script> if(pb_username == 'USER1') { document.write('<style type="text/css">body, td, font { font-size: 20px !important;}</style>'); } </script>
|
|
Richie
Veteran
^ Yes, That's me V_V
Posts: 624
|
Post by Richie on May 24, 2006 22:23:24 GMT
one { is enuf SOE ...but good idea ^ shows how much i still need to learn in coding As long as it works, does it truly matter?
|
|
jaarpets
Member
If YOU dont get WHAT I'm Saying---Realize, YOUR NOT IN MY HEAD
Posts: 122
|
Post by jaarpets on May 25, 2006 20:55:54 GMT
Thanks alot Guys
|
|
Richie
Veteran
^ Yes, That's me V_V
Posts: 624
|
Post by Richie on May 25, 2006 23:35:50 GMT
Thanks alot Guys You're Welcome
|
|