About font changes

If you've problems with unsupported - non official ;-) - functionalities use this forum please.
Post Reply
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

About font changes

Post by Stim »

Hi

I have in 2 days tried to customize this cod on http://www.dyn-web.com/dhtml/sizefont/index.php
I tried to customize so only specific area on the site change font. Well, I get it to work!! But when I was finished with customize, then script asking for license, and I figurate this not free for use. :lol:

Then I find this weary simple script for free on http://www.dynamicdrive.com/dynamicindex9/textsizer.htm only problems are everything changes on the pages. As I understand you can customize this script, but don’t understand how.

I also test Trips stuff on: http://www.andrewingram.co.za/ but that didn’t work at all.

Anyone here have tip to get good “fontsizer as can customize?

Trip, can you post your “style_changer.js” and other cod to this? I didn’t get your stuff work before but Is have to works!

ff123, try http://www.dynamicdrive.com/dynamicindex9/textsizer.htm instead because that very easy to use and this script don’t reloading your pages every time
ff123
Posts: 172
Joined: Thu 9. Jun 2005, 20:03
Location: The Netherlands
Contact:

Post by ff123 »

What's the problem with a reload page?
Besides you don't change font size every minute and your font size choice is also stored in a cookie, so the website recognizes all the time which font size you want to see.
As far as I tested the dynamicdrive script does not remember your preferred font size, so each time you visit, you have to increase font size again. :cry:

Another disadvantage of javascript is that a lot of code is sent over the line and excuted by the browser, while php script is nicely executed on the server. :)
-- Vuurvos --
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Well, if you have fast internet doesn’t matter, But with slow internet that can be problem if user most reloading pages. Anyway I have use now http://www.dynamicdrive.com/dynamicindex9/textsizer.htm

Very easy to customize!! just make Div ID and name it and put {CONTENT} in to Div tag, if you just want change article font and not other thing on the site

Exampel, DIV name has named to "main".

Code: Select all

<div style="padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" id="main">{CONTENT}</div>
Then incert button cod in to artcle template, not artcle list, (full article) so button only shows in articel and not index pages etc

Yes dynamicdrive dont use cookie and i think thats good becuase its change to default design when user coms back :lol:
ff123
Posts: 172
Joined: Thu 9. Jun 2005, 20:03
Location: The Netherlands
Contact:

Post by ff123 »

At a first glance it looks like the script increases the font size of the whole {content}, while you wanna be more specific.
Like keeping <h1> the same font size and the rest an increased font size.

Concerning reload --> browsers tend to cache a site, so reloading a page won't be notified (because of reloading form cache), even with 56k6. :)

Concerning cookie --> you can set cookie lifetime to 0days, so the browser does not remember your preferred font size. :)
-- Vuurvos --
Post Reply