PDA

View Full Version : Script Mod Request



stephen_wq
06-04-2005, 09:34 AM
Image Thumbnail Viewer II
http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm
I need a bit of help, could someone tell me how i can add text under the large image in this script.
I can understand what a javascript is doing(most of the time) but wouldn't have a clue how to write one. If it could be as straight forward as DD makes them then it would be even better.
I need it in the next 4 days so if someone could help me out that would be great.
Thanks in advance.
Stephen

jscheuer1
06-04-2005, 10:44 AM
I like to play with these scripts now and then. Awhile back I made a mod up from this thumbnail viewer. It will do what you ask and more. Here is a demo:

http://home.comcast.net/~jscheuer1/side/files/thumb2.htm

Just view the source and save it to disk, configuration is outlined in the code. It is very similar to the current thumbnail viewer.

stephen_wq
06-05-2005, 07:09 AM
Thanks a lot, you are a lifesaver.
I managed to use it with an imagemap and onclick commands, so thats even better.
The caption bit is better than i expected, because it supports tags.

3pack
08-09-2005, 06:33 PM
Can this have two diferant captions per image

like rockpaperpixel.com (I know it is a flash design)

look under potfolio

thanks

jj

jscheuer1
08-09-2005, 10:34 PM
Why is it that people often get so excited when they see two of something and think that it has to be different than one? Since you can put rich HTML text into the field used for the caption, you can have any amount of stuff there that you like, even a table or images.

3pack
09-15-2005, 11:38 PM
http://www.dynamicdrive.com/dynamic.../thumbnail2.htm


on mouseover I have Exterior, closeup, interior.

question: When I mouseover interior how can I bring a sub list that has bathroom, kitchen, ect.

thank you (site is underconstruction)

JJ

<a href="#" name="" onMouseover="modifyimage('dynloadarea',0); get_cap(this.name);">Exterior</a>,&nbsp;&nbsp;
<a href="#" name="" onMouseover="modifyimage('dynloadarea',1); get_cap(this.name);">Close up</a>,&nbsp;&nbsp;
<a href="#" name="" onMouseover="modifyimage('dynloadarea',2); get_cap(this.name);">Interior</a>,&nbsp;&nbsp;
<Div id="caploadarea"></div>

Twey
09-16-2005, 10:36 AM
Broken link.

jscheuer1
09-16-2005, 02:27 PM
Gee Twey, that was really helpful. I know that the broken link you are referring to is the one to the script on DD at the top of the post before yours but, 3pack might take your response as advice. Anyways, in addition to that minor problem, 3pack, your markup won't do anything in the way of adding a caption because no value is given for the attribute 'name'. It is also a little unclear what you are trying to do. I think you are trying to add an onmouseover event to the large version of the image but, cannot be certain of this from your post. A way to do that, would be to use the id of the image or its containing element (which in this script would be 'dynloadarea'):

document.getElementById('dynloadarea').onmouseover=function(){
put code line(s) here
}Where this code belongs is someplace that it will get executed when the associated image loads. This may require altering the basic script. If this pops up a menu, as I think you intend it to, best to add an onmouseout event too, that will hide the menu but, it gets more complicated with pop ups like that because just as soon you mouseover the pop up menu, you are mousing out of the image. So, other measures should be used to cancel the pop up, like on load of a new image coupled with mouseout of the pop up. Before I go too far on that, is this what you are trying to do?

Twey
09-16-2005, 03:18 PM
Gee Twey, that was really helpful. I know that the broken link you are referring to is the one to the script on DD at the top of the post before yours but, 3pack might take your response as advice.Argh, sorry, didn't see the rest of the thread. I just woke up. :(

3pack
09-16-2005, 03:36 PM
This might help the explanation. On this page you mouseover on photogallery and then you see exterior. What I want is when you mouseover exterior have a cluster of thumbnails and if I mouse over that the biggerone pops up. I think your script already does that, but not sure where to put it.

thanks

jj

http://marottagroup.com/Listings/Sugarhill/Sugarhill.htm

3pack
09-22-2005, 04:23 PM
http://www.dynamicdrive.com/dynamic.../thumbnail2.htm


http://marottagroup.com/Listings/Su...l/Sugarhill.htm
On this page (still constructing parts of it) you mouseover on photogallery( I know that uses your tabs, but I don't think that matters) and then you see exterior. What I want is when you mouseover exterior have a cluster of thumbnails and if I mouse over that the bigger one pops up.
http://www.photosbyshannon.com/gallery/family/

This site uses your viewer.
I think your script already does what I want, but not sure where to put it. Not sure about the code example above.

any suggestions

thanks

jj