Zooming again

P

Peter

Richard supplied me with the solution so (older) visitors can enlarge
the fonts on the site.
It is: <input type="button" value="KLIK HIER VOOR GROTE LETTERS"
onclick="document.body.style.fontSize = '2em'">
<input type="button" value="klik hier voor standaard letters"
onclick="document.body.style.fontSize = '1em'">
Building antother site for elderly people I found this solution:
Vergroot deze pagina door in het rondje te klikken met:<br>
<input type="radio" name="z"
onclick="document.body.style.zoom=1.0;this.blur();">
100%
<input type="radio" name="z"
onclick="document.body.style.zoom=1.5;this.blur();">
150%
<input type="radio" name="z"
onclick="document.body.style.zoom=2.0;this.blur();">
200%
<input type="radio" name="z"
onclick="document.body.style.zoom=3.0;this.blur();">
300%
This works perfectly in IE. But nothing happens in Mozilla.
Can anybody tell me why ?
Richard´s solution can be seen at : http://pjm.fateback.com
My new one can be seen at : http://pjm.fateback.com/swoa/swoaindex.htm
Thanks
Peter
 
P

Peter

Toby said:
Peter wrote: .......


Because in Richard's original you're using document.body.style.fontSize
and in the new "improved" version you're using the totally made up
document.body.style.zoom.
And please tell me why doesn´t that work in Mozilla?
(I never suggested I could improve Richard!)
Peter
 
R

rf

Peter wrote
And please tell me why doesn´t that work in Mozilla?
(I never suggested I could improve Richard!)

Do I *need* improving? <checks.../> Hmmm, perhaps. A couple of weeks at the
snow may help. It's puking down at the hill right now :)

Zoom does not work in mozilla (or other non-IE browsers) because it is a
microsoft proprietory property. It is not part of the W3C standard.

http://msdn.microsoft.com/library/d...op/author/dhtml/reference/properties/zoom.asp

(watch the wrap) scroll down to the bit where it says <q>This property is a
Microsoft extension to [CSS]</q>
 
S

SpaceGirl

rf said:
Peter wrote

Zoom does not work in mozilla (or other non-IE browsers) because it is a
microsoft proprietory property. It is not part of the W3C standard.

Didn't I like, say this a day ago?

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
P

Peter

rf said:
SpaceGirl



Yep. Peter often misses posts :)
Ho!Ho!Ho1
I didn´t miss Her Majesty´s post. I followed the link she pointed.
But I couldn´t believe and understand that IE had this exclusively.
Furthermore I was given the impression by all the experts here,
that Mozilla was one of the best. So nowadays I use that and IE only for
testing purposes. I´m still trying to find some way to achieve a similar
result for Mozilla. I refuse to believe that no one in this part of www
can´t find my solution.
Miranda and Richard thank you very much for making things clearer for me.
Don´t forget I´m a (dirty) old man with deminishing grey stuff.
Peter
 
T

Toby Inkster

Peter said:
And please tell me why doesn´t that work in Mozilla?

I already have told you -- because it's "totally made up". If you want
something to work reliably, use techniques defined by a standard. Don't
use things that you (or somebody else) just made up on a whim.
 
P

Peter

Toby said:
I already have told you -- because it's "totally made up". If you want
something to work reliably, use techniques defined by a standard. Don't
use things that you (or somebody else) just made up on a whim.
What if one is dumb like me?
Peter
 
P

Peter

Toby said:
Then especially so, as dumb people tend to have dumber whims.
deviation of beaten roads has triggered beautiful things in the past.
serendipity occurs doesn´t it?
I don´t want to be self-conceited, but I believe there is a solution for
every problem. We only have to find it.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top