Prev | Current Page 312 | Next

Kevin Potts

"Web Design and Marketing Solutions for Business Websites"

This does not have to be elaborate.
To avoid forcing users to squint, make sure that the image is at least 150 pixels wide.
Providing a larger image when the thumbnail is clicked is almost always a good idea. This
higher-resolution version should appear in a new browser window, not because this constitutes
better usability (which it really doesn??™t), but because people expect and accept this
functionality that has been perpetuated by thousands of websites. This window can be
loaded several different ways:
1. The simplest method involves adding the target attribute to the anchor tag, such as
. This technique avoids JavaScript, which might be
disabled; the disadvantage is that the target attribute is deprecated in XHTML 1.0
and beyond, and if included, will prevent the page??™s markup from passing the W3C
validator.
2. To open a new window while keeping the page valid, many developers use
JavaScript. A basic version would look like this: 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324