stevenhu — 2011-06-02T15:00:23-04:00 — #1
I'd like to integrate a text increase/decrease feature on my html pages. I researched this and found that the current crop of JS code require the inline use of "font-size:12px" or something similar. My pages all have the font sizes in an external CSS file.
I'm going to use this functionality in an app for the iPhone and Android platforms using HTML, CSS, and JS. I'll abandon it, though, if I have to add the font-size to all my paragraphs across hundreds of pages.
Is there a way to add an external JS file that works on pages where the font size is determined by a CSS file? I want it to work just on my <p> text, so it doesn't have to be elaborate. No cookies on these devices, so it will have to work page by page.
Thanks for any answers.
stevenhu — 2011-06-02T15:01:18-04:00 — #2
Here is one of many code examples on the web:
stevenhu — 2011-06-05T22:55:41-04:00 — #3
paul_wilkins — 2011-06-06T01:41:17-04:00 — #4
My answer that works is to use the built-in web browser text resize features.
If you don't want to find them in the View menu, you can use Ctrl-minus and Ctrl-plus as well as Ctrl-zero to set back to the default size.
Other web browser features that are strangely wanted to be done via the web page, are to print the page, or to save a page as a bookmark.
Why throw so much effort in to duplicating what is already easily available? I just don't get it.
stevenhu — 2011-06-06T20:24:08-04:00 — #5
This is for the Android platform, which doesn't have the function built in to an app. There's a method to my madness!
paul_wilkins — 2011-06-06T20:42:05-04:00 — #6
If I had an Android device, would the app called Spare Parts be of any use where a web site doesn't provide the ability?
stevenhu — 2011-06-06T20:57:05-04:00 — #7
I've created a hymnbook app. I'm aware that many people who love hymns are older and have poorer eyesight. It is true that my calculator app will be a good fit, because some older people in the sport will use it.
I need to mention that I've tested page after page of scripts before I found one that worked. We can consider this thread closed.