Bob Nguyen

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromBob Nguyen
ToMe
SubjectJS error: font size can not be changed
Date4 September 2008 10:30
Attachmentdemo code
Dear Mark,

My name is Bob. I am a [role] in the [organisation] University. I am also a
fan of your site howtocreate.co.uk

I am creating a simple website called [brand] at the moment. It is for the
additional needed students in the university so it needs some accessibility
functions such as font size change, background colour change, etc. I copied
the script from [URL] and modified it to suit my site. Everything work fine
but the font size.

I have managed to fix but it still not working.
I have contacted the [brand] web author for help but could not get the
answer.

I hope that you could have a quick look and give me some advices. I do not
think it is a big bug but I can not figure out where is the problem. Maybe,
with your expert view, you can sort it out in a few minutes.

Please find the attached file the index page and relevant images, css and
javascript folders. I try to put the code in a clear way to read an
compressed it into a very small .rar file.

Thank you very much for your help,

-----------------------------
Bob Nguyen
FromMe
ToBob Nguyen
SubjectRe: JS error: font size can not be changed
Date6 September 2008 09:33
Bob,

> I hope that you could have a quick look and give me some advices.

no_stylesheet should be 1, not 2.

The script assumes all your stylesheets are in a folder called 'style'
but yours are in a folder called 'css'. Twice, the script says this:

a.getAttribute("href").indexOf("style")

Which needs to be:

a.getAttribute("href").indexOf("css")

Best if you still keep trying to contact the author, so the script or
documentation can be fixed to say what needs to be done if the directory
is different.


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
FromBob Nguyen
ToMe
SubjectRe: JS error: font size can not be changed
Date9 September 2008 09:27
Thank you very much for your help.

Bob
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.