[thelist] Flash - web standards and accessibility
Chris Price
chris.price at choctaw.co.uk
Tue May 18 19:19:22 CDT 2004
On 18/5/04 1:16 pm, "Jason Robbins" <evolt at whisky-fudge.org.uk> wrote:
> Hey,
>
> I have a client who would like me to produce a standards compatible
> site, but who would also like to have a flash header on it.
I'm afraid I'm still using Flash 5 but I'm sure the principle still holds:
In Publish Settings > HTML, I set template to 'Ad Any Banner' rather than
the default 'Flash Only'. This creates JavaScript rather than straight html.
I then open the html file and top and tail the html to leave me with the
JavaScript and save it as something.js
Within the last document.write('') I put the alternative html that will
appear if JavaScript is running but there's no Flash plugin.
The JavaScript is called using <script type="text/JavaScript"
src="something.js"></script> and the alternative html goes between the
<noscript> tags.
If your alternative is simply an image you should still put <img src> within
divs so that it validates.
The page won't validate if you don't go the JavaScript route.
You need to escape the forward slashes within write('') thus <p><\/p>.
If you have Flash running but not JavaScript, you don't get Flash but at
least everyone gets something.
Hope this helps.
--
Chris Price
Choctaw Media Ltd
choctaw.co.uk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A man can do nothing better than to eat and drink
and find satisfaction in his work
More information about the thelist
mailing list