Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Adjustment Text Size

Asked Modified Viewed 4,187 times
E
emilife93
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
asked
Member

Greeting.

who know how to add adjustment text size like this

www.arizai.com/text.jpg
0 replies

3 posts

S
SimpleVision
S
  • Member, joined since
  • Contributed 63 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

Here is a post that describes it change font-size with javascript


and this is something to keep in mind:

Quote

If people don't know that they can resize the fonts in their browser, surely it is far better for sites like yours to educate people about the functionality they are missing out, rather than create custom-hacks that only help users of this given site?

It's the whole "give a man a fish and he can eat a single meal/give a man a fishing net and he can feed his whole family forever" kind of thing...

When the user goes to the next site, it's unlikely to offer CSS font resizing. And if they do it's not going to be in the same place on the page, look the same or necessarily behave the same.

The browser functionality will always be there, look the same and probably persist across sites - so setting it once is all that it takes.

As an accessibility consultant in a previous life, I would strongly urge you to help educate your users about browser functionality rather than create single point fixes that does nothing to help them when they leave your site.
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

PHPBB themes uses several addition css for this.
0 replies
E
emilife93
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
answered
Member

where to i put this code ? in maincore.php?


<script language="JavaScript" type="text/javascript">function changeFontSize(inc){  var p = document.getElementsByTagName('p');  for(n=0; n<p.length; n++) {    if(p[n].style.fontSize) {       var size = parseInt(p[n].style.fontSize.replace("px", ""));    } else {       var size = 12;    }    p[n].style.fontSize = size+inc + 'px';   }}
Edited by emilife93 on 27-01-2011 02:31,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
E
E
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 49 threads in the forums
  • Started this discussions
S
S
  • Member, joined since
  • Contributed 63 posts on the community forums.
  • Started 11 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet