windandwaves wrote :
Hi Folk
I use a pop-up window on www.wapitipark.co.nz to view images.
On some sites, I saw (a long time ago) a trick where they use Javascript to
resize the window to the size of the image.
Most of what your markup and javascript code do on your page is pretty
wrong, definitely improvable.
- as coded, your links will not work if javascript support is disabled
or inexistent
- your thumbnails do not indicate that clicking on them will show an
enlarged image in a distinct window
- your alt attribute for the image is illogical. Alt attribute should
render textual replacement. So, "CLICK TO SEE A LARGER IMAGE" should not
be in the alt attribute value.
- <a href="#" is dysfunctional when javascript support is disabled or
inexistent
- your window.open call is making your enlarged page non-resizable: this
is not recommendable and not accessibility-wise
- your window.open call is explicitly removing scrollbars even if they
are needed, even if document box overflows requested window dimensions:
again, this is not recommendable and not accessibility-wise
- the windowName you choose in your window.open call should be the same
for a given target attribute otherwise you're creating a different
behavior for those with javascript support and for those without
javascript support
You should first start by addressing such issues before trying to
"resize" popup windows:
DOM:window.open
Best practices:
http://developer.mozilla.org/en/docs...Best_practices
Usability issues:
http://developer.mozilla.org/en/docs...ability_issues
Your webpage also suffers from many more simple but important problems,
I'd say, than from a non-resizable window via script. Some of them:
- table-based design
- duplication of title and alt attribute values: you do not seem to know
which one to use and for what purpose
- over-declaring duplicated keywords in meta tag will get you the
reverse of what you're trying to do. Just think for a min: if everyone
does what you do, then everyone will defeat the purpose+capabilities of
indexing robots. Over-listing keywords just achieves the reverse of the
original intent: indexing engines penalize such sites.
- over-declaring and over-defining the title attribute everywhere
etc,etc.
Your webpage should be as usable, worthy and friendly even if I am using
a text browser like Lynx 2.8.5 .
Gérard
--
remove blah to email me