|
|
Posted by Toby Inkster on 01/15/07 16:25
Andy Dingley wrote:
> 5. JavaScript is of little use here. A "JavaScript solution" you're
> offered is probably quite wrongly intentioned from the outset.
There are some places where it's quite useful. An example might be to have
two or three different versions of some graphics (logos, maps,
illustrative images, etc), detecting window size and displaying the most
appropriate size (with appropriate markup such that non-Javascript people
can still see the image).
It is *possible* to do this without Javascript, using only CSS, but the
percentage of browsers that support it is very small, so this will only be
appropriate for very specialised pages. For an example, look at the
following page in Opera (which does allow for different styles based on
window size) at 300px width and again at 500px width (you may need to
"reload" between sizes):
http://tobyinkster.co.uk/Software/w3dev_menu/w3dev-3.0.ini
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|