PDA

View Full Version : Promlems with Image Thumbnail Viewer



Firesong
08-12-2005, 05:41 PM
I tried to put this skript on my page, but im not getting it to work! :mad:
its on this page: http://www.surplus.noctur.net/index2.html
Please see the Source and tell me whats wrong. If someone can help, Iīll be very pleased :)

jscheuer1
08-13-2005, 02:27 AM
Change the body portion of your page to this:

<body bgcolor="#5276C0">
<div id="showimage" style="position:absolute; left:159px; top:429px; width:410px; height:310px" align="center"></div>
<a href="surpluslay1web.jpg" onClick="return enlarge('surpluslay1web.jpg',event, 'center', 300, 400)">
<img src="surpluslay1web.jpg" width="150" border="0"></a>
</div>
</body>

Firesong
08-13-2005, 03:20 PM
I tried but it wont work unless I delete the whole bodypart and then I wonīt have any layout left!

jscheuer1
08-13-2005, 04:01 PM
Well, that was just an example so that you could see the script work. I figure you are going to use other images besides your image map image for this script. Aren't you?

Firesong
08-13-2005, 07:36 PM
Yes I am. Is it not working because Im using the wrong image? Ill try it with a different image tomorrow. Thanks

Firesong
08-13-2005, 08:47 PM
I tried to make it work, but....
I have two main problems. First, what does this do: visibility:hidden; ? Its in the CSS part. If I understood, it hides the layer. But that cannot be right?
The second problem is: If I erase visibility:hidden; then the pics show and it works, untill you click close text on the pic. Then it closes, but the small version that you click to get the bigger one disapears too.
Help??

jscheuer1
08-13-2005, 11:06 PM
Visibility is set to hidden so that the popup can be made to 'appear' when needed. You seem to be suffering from 'edititis'. Too much editing. Try just using the script exactly as it is written before making too many modifications. For example, I noticed you had given style properties to the '<div id="showimage"></div>' none is called for.

Firesong
08-14-2005, 06:56 PM
Imstill not getting it to work even though now I changed my system to iframes so there wonīt be any extra code on the page with the images. Now I tried to put a image on this page: http://www.noctur.net/surplus/blendit.html
but I still canīt make it work. Now it hasenīt even been changed ..at all

jscheuer1
08-14-2005, 10:52 PM
Follow the directions, from the demo, it is:

<div id="showimage"></div>Not:

<div id="showimage">

content here

</div>as you have it.

Firesong
08-15-2005, 05:39 PM
First Id like to thank you for being so patient with me.
I didnīt get the script to work with div-layers, so I changed my page to iframes. Now I have a new problem - the picture gets "stuck" in the iframe. Can you kinda "target="_parent"" it?
See here: http://www.noctur.net/surplus/lay1.html
I allready tried targeting with html but that didnīt work. Any sugestions?

jscheuer1
08-16-2005, 09:40 AM
Pretty good, actually. Try galleria.htm, it is in the attached galleria.zip:

Firesong
08-17-2005, 02:03 PM
Thanks for all your help! Now I can finally finish it. (Ill translate it to english soon too ^^)
Thanks a lot

yazmo
08-30-2005, 11:43 PM
hello i got stuck into something.
i thumbnail scritp a simple one.
i want some small thumbnail that when they are click
then it's load a bigger image in a particuliar layer by id and name
i just can make it work im still trying.

if you guy can help i would appreciat it very much

peace

Yazmo

yazmo
08-30-2005, 11:50 PM
hey you around