PDA

View Full Version : link thumnail pic's


count
10-28-04, 01:18 AM
My dir: cgi-bin
htdocs/images
images1/id1.html
images2/id2.html
images3/id3.html

i've used, images1/id1.html,for link, I get id1.html empty squares no pic's


need some advice

thanks

Builder
10-28-04, 02:04 AM
In your HTML pages you will need the following for each thumbnail:
<a href="/images/01.jpg"><img border="0" src="/images/thumb01.jpg" width="xx" height="xx" alt="yyyyyyy"></a>
This assumes that your picture files are in htdocs/images/ -- adjust accordingly. Also change the "xx" and "yyyyyyy" to fit.

Good luck,
Kevin

count
10-29-04, 12:26 AM
how do i setup a link for thumnail files
I name the files images, images1 and so on, it works find in the file,
but when I link each one, I get the index.html and empty squares no pic's


thanks

(jj)
10-29-04, 03:11 AM
It would help if you posted a link to one of the pages in question, that way someone might be able to help you better (and faster).

count
10-29-04, 10:04 AM
--------------------------------------------------------------------------------
http://www.onofres.com
how do i setup a link for thumnail files
I name the files images, images1 and so on, it works find in the file,
but when I click on the thumnail, I get the index.html and empty squares no pic's


thanks

Builder
10-29-04, 10:49 AM
On this page:
http://www.onofres.com/images/images/index.html
All the images are linking to files with .html extensions -- in other words, web pages. Change the links so that the extensions are .jpg

An example of one of the thumbnail links on that page:
<a href="DSC04456.html"><img src="thumb_DSC04456.jpg" border="0" height=112 width=150></a>
This should be:
<a href="DSC04456.jpg"><img src="thumb_DSC04456.jpg" border="0" height=112 width=150></a>

In addition, make sure your thumbnail image files are uploaded. According to your page's code you should have them in the same folder as the index.html file calling them.

Good luck,
Kevin

-ma
11-4-04, 10:23 AM
Instead of linking to a .html page when clicking on a thumbnail, how would I create a popup of an enlarged image? There is nothing in any of the help resources addressing this.

Anybody got any ideas?

Builder
11-4-04, 10:56 AM
<a href="/images/01.jpg" target="_blank"><img border="0" src="/images/thumb01.jpg" width="xx" height="xx" alt="yyyyyyy"></a>
This will open each image in a new window. Make path and attribute adjustments to fit your site....

Good luck,
Kevin

(jj)
11-4-04, 01:49 PM
If you want a sized chromeless window, you can use

<a onclick=window.open('image.jpg','','width=320,heig ht=240,scrollbars=no,resizable=no,location=no,menu bar=no,toolbar=no,top=0,left=0') href="javascript:void(0)">Text or Thumbnail</a>