I want to change text sizes in Drupal, the existing modules for this don't
seem to work.
Basically for font-size'es xx-small, x-small, small, medium, large, x-large,
xx-large, is there a javascript variable that will allow me to increase or
decrease these sizes ?
It maybe different on different browsers ?
Many thanks in advance,
Aaron
I was after a more inteligent reply, that a list of scripts that do not do
what the browser is doing.
What I want is something that changes the browsers "Text Size" in the
browsers menu.
I dont want to iterate throught the document or anything like that.
Aaron
You asked "Basically for font-size'es xx-small, x-small, small,
medium, large, x-large, xx-large, is there a javascript variable that
will allow me to increase or decrease these sizes ? "
You did not ask for "something that changes the browsers "Text Size"
in the browsers menu."
I cannot help it if you asked for the wrong thing!
> "Captain Paralytic" wrote:
>> "Aaron Gray" wrote:
>>> Basically for font-size'es xx-small, x-small, small, medium, large,
>>> x-large,
>>> xx-large, is there a javascript variable that will allow me to increase
>>> or
>>> decrease these sizes ?
>>>
>>> It maybe different on different browsers ?
>>>
>>> Many thanks in advance,
>>> [...]
>>
>> http://lmgtfy.com/?q=change+text+size+with+javascript
>
> I was after a more inteligent reply, [...]
You will need to ask an intelligent question first.
<http://catb.org/~esr/faqs/smart-questions.html>
> What I want is something that changes the browsers "Text Size" in the
> browsers menu.
"the browsers 'Text Size' in the browsers menu"?
> I dont want to iterate throught the document or anything like that.
RTFM.
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
You're posting in the wrong group. You want a Javascript group, not a
PHP group.
PS, if you're after an 'intelligent reply', you'd do well to use your
own intelligence when selecting where to post.
Actually I'm the one who should be paying attention regarding which
group I'm in, sorry. :)
Still, if you ask a vague question, you have to expect vague
answers.
Only Internet Explorer has the fixed range of text sizes in its view
menu so no, you can't change the menu value because outside of IE it
would be nonsensical to do so. Firefox for example lets you zoom in or
out arbitrarially.
Which manual, please ?
Aaron
> "Thomas 'PointedEars' Lahn" wrote:
>> Aaron Gray wrote:
>>> I dont want to iterate throught the document or anything like that.
>> RTFM.
>
> Which manual, please ?
That for the respective browser's API. And the other one, that explains how
to quote properly.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
> Only Internet Explorer has the fixed range of text sizes in its view
> menu so no, you can't change the menu value because outside of IE it
> would be nonsensical to do so. Firefox for example lets you zoom in or
> out arbitrarially.
Not true. There are other browsers than IE that have a fixed set of sizes,
for example Opera 10.01. And Firefox (3.5.5) places limitations on the font
zoom factor, too (in both directions), although I cannot tell which ones
exactly (I do not know of a UI or property that shows it).
PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
This of the browser ?
If you want to change something in the menu(s) of a browser, I think you
can't (at least by JS).
And how do you expect to change the menus of this pecific browser which
has not the same menus (or not at the same places) on Windows and on Mac ?
Then, what about that other browser which has not same menus than the
first one ?
--
sm
IIRC you can change the zoom level on IE from JS, I presumed you could
change the text size too.
Aaron
Don't know ... never tried.
(it's a stupidity to want to zoom instead of the user)
> I presumed you could change the text size too.
but not the browser's menu to do it
By the way, in most browsers the user can fix the minimal size of the
usual fonts, so you can't reduce the text less that(those) size(s)...
On the other hand I do not see how we can increase size of text (must
increase texts in H1, H2 ... Hn, P, probably DIV, all relatively to
their own origines, natural or set by css) in a web page, even using its
own JS buttons.
Maybe a function could "zoom" the page but, in Firefox for instance, the
user can separate zoom on text and on images or group both.
document.body.style.zoom
does nothing in my Firefox, Safari, Opera, iCab, Camino.
--
sm
Firstly, you will need to learn to ignore those who post articles merely
to inflate their own egos.
A well-written Web page almost never sets absolute text sizes, only ones
relative to the default setting of the browser. Some such do exist.
Look at <URL:http://www.merlyn.demon.co.uk/js-tests.htm>, in particular
(but not only) Body Font Tests. It might show what you need.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF3 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.