WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: webaim-forum-d Digest V2004 #23

for

From: Leesa Lavigne
Date: Feb 12, 2004 8:37PM


Hi,

First of all, thank you for all your suggestions! I tried this one
[http://www.alistapart.com/articles/alternate/] but still need help getting
it going.

The following language tag is inserted by DW because I'm using asp pages.
Would this cause a problem? I know I have to remove the line in html pages
so it doesn't show up in NS.

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

Here are the links to the stylesheets:

<head>
<title>Gregs Used Cars and Service</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="CSS/GregsAuto.css" type="text/css">
<link rel="alternate stylesheet" href="CSS/GregsAutoSmall.css"
type="text/css" title="normal">
<link rel="alternate stylesheet" href="CSS/GregsAutoSmall.css"
type="text/css" title="small">
<link rel="alternate stylesheet" href="CSS/GregsAutoLarge.css"
type="text/css" title="large">
<link rel="alternate stylesheet" href="CSS/GregsAutoLargest.css"
type="text/css" title="largest">
<script language="JavaScript" type="text/JavaScript"
src="ScriptLibrary/styleswitcher.js" ></script>
</head>


For the style sheets, the first one is the Persistent one, no title,
rel="stylesheet" and no font size set so the default computer font will be
used.
It has a body tag that looks like this, along with all the other page
styles:

body {
background-color: #CCCC66;
background-image: url(../Images/MainPage/BackgroundTile.gif);
background-repeat: repeat-y;
}


The other four styles only have the body tag. The 'normal' style is just
like above so the user can select the option to return to the default font
size.

The other three look like this: the font size matches the title tag for
each style. No other page styles are defined since the Persistent Style
sheet will still be active.

body {
font-size: large;
background-color: #CCCC66;
background-image: url(../Images/MainPage/BackgroundTile.gif);
background-repeat: repeat-y;
}


Questions:

1) I downloaded and placed the styleswitcher.js file into the ScriptLibrary
just as it was.
Do I have to somehow put my 'domain name' into the script for it to
correctly create the cookie?
I don't have any background in JavaScript but read this in the last
JavaScript style changer that I tried - but failed to use.

2) Is the <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> tag doing something to
corrupt the JavaScript?

3) Is there something wrong with the SCRIPT tag? For some reason
Dreamweaver puts the double quote in front of each attribute but only a
singsl quote at the end. It looks like this:

<script language="JavaScript' type="text/JavaScript'
src="ScriptLibrary/styleswitcher.js' ></script>



Thanks for your help. I know computer savvy users know how to change text
size but your common user doesn't and I would really like to have it right
out in the open as an option for them.

I do the same thing with my Skip Nav link - place it in plain site. I
normally explain its function to the general public somewhere on the main
page.

I haven't inserted the explanation on this site yet. I don't find it
distracting and I like it visible