newhere — 2010-06-09T16:44:42-04:00 — #1
Please help - very easy question - client wants a display of pictures on one webpage: fine - can resize them and put them all in a table ...BUT then when the web user clicks on one of the pictures - client wants it to display on screen in a larger size.
newhere — 2010-06-13T08:55:34-04:00 — #2
thanks guys so far but all that is a bit beyond me at the moment - I've decided to put all my thumbnails in a table (am using Dreamweaver) the PROBLEM is this:
here is the code I've got so far and it does work, that is, it places "bigger.jpg" into the table when the mouse is clicked on "smaller.jpg"
<a href="#" onmouseout="MM_swapImgRestore()" onClick="MM_swapImage('Image2','','index.php_files/bigger.jpg',1)"><img src="index.php_files/smaller.jpg" name="Image2" width="133" height="100" border="0" id="Image2" /></a>
BUT what I really want is for "bigger.jpg" to be displayed on screen in a bigger size obviously (when "smaller.jpg" is clicked)- any ideas on how to do this ?
many thanks !
ferrari_chris — 2010-06-13T16:23:29-04:00 — #3
Do you want the bigger image to replace the smaller image, or appear somewhere else?
alexdawson — 2010-06-10T22:06:34-04:00 — #4
xhtmlcoder — 2010-06-10T12:55:33-04:00 — #5
Now if you were just wanting to see a larger image you could provide a link to a larger image file using the normal method of a hyperlink and thus opening the file. Though I doubt your client wanted that they were probably expecting something similar to the solutions above.
You may want to search for other examples of how to create the above if you didn't follow those exact samples they were probably slightly biased choices and possibly a little brief but on the plus side they did have working examples.
ferrari_chris — 2010-06-10T16:22:22-04:00 — #6
This is what I thought when I first read the request.
Just make the image a hyperlink, linking to the fullsize image. Have the link open in a new window/tab, and you'll be fine.
<a href="larger image" target="_blank"><img src="thumbnail"></a>
stevie_d — 2010-06-10T18:57:03-04:00 — #7
NO! :mad: Don't spawn new links, especially not for a photo gallery. Just open the link in the same window, like every other link. If God* had intended links to be opened in new windows, he would have made that the default action.
Popup links should only ever be used in exceptional circumstances. A photo gallery is not an exceptional circumstance. Popup links are confusing and irritating, particularly with the advent of tabbed browsing, where they too often open a new window rather than a new tab. Any vaguely competent web surfer can choose to open a normal link in a new window/tab if they want to, but only a small proportion of the Enlightened One Percent† will be able to open a "target=_blank" link in the current window if they want to (after having found out the hard way that it's a popup link, of course).
* In the context of the Internet, that is of course Sir TBL.
† ie Opera users
newhere — 2010-06-10T09:34:18-04:00 — #8
Thanks but eek! those examples a bit too complex for me!
can anyone pls explain it in a more basic way ?
Plus what exactly is lightbox ?!
picnictutorials — 2010-06-09T17:00:39-04:00 — #9
picnictutorials — 2010-06-10T15:26:09-04:00 — #10
The simple js example above is about as easy as it gets. This is pretty easy too. :hover instead of click though. http://www.visibilityinherit.com/code/css-popup-image2-example.php
alexdawson — 2010-06-11T00:11:05-04:00 — #11
For a disabled user... it can pretty much be like that. Popup windows where the end user has no say in the matter not only violates the end user's ability to access information effectively, it's highly intrusive and damaging to the end users experience (and often results in people not returning to your website).
ferrari_chris — 2010-06-10T23:28:06-04:00 — #12
:lol: You make it sound like it's a matter of life and death.
black_max — 2010-06-09T22:36:29-04:00 — #13
Good compendium of demos, Eric. Checked out the examples. You know the most interesting people....