Click to See Complete Forum and Search --> : Please, please help!


wwzausch
04-07-2003, 08:10 PM
Hello.

I am in dire need of some help.

Let me first say, that I know enough javascript to get in and muck around with things and be dangerous. But, I am learning!

Anyhow, this is a script that I have been working on for awhile, occasionally trying to add new features. I have recently wanted to add the new features (below) but am stumped on both of them.

Please, please, please someone help me sort this out.

I apologize in advance for the messy html... I did some quick copy and pasting to make these demo pages.

Of course, I will gladly and freely share this script with anyone reading this... I think it's a cool one, and if I (we) can get the below features working, it will be great for anyone trying to present a portfolio of images... artists, photographers, etc. esp/ with corresponding text descriptions.

First, where the script is currently... works pretty nice. Loads images in the background...

http://www.zausch.com/thumb/thumbsample1/thumbscript.html

With the javascript code looking like this:
http://www.zausch.com/thumb/thumb4.js

So, here's the functionality I would like to add...

First, the ability to click on the main image (the large image) and have it open a new window with an even larger, higher-res version of the same image... similar to the script found at: http://www.abvent.com/us/gallery/gal_sketchup/default.asp
(click on the thumbnails)

Second. I would like to add yet another, independent variable to the page... for instance, see...

http://www.zausch.com/thumb/thumbsample2/thumbscript2.html

where when you clicked on the text description (project or solution) it would change the text below, in the same manner as the first script, but using a second set of images, etc. totally independent of the above script. (the text images are images/TXT1.jpg, and images/TXT2.jpg)

At least the second feature seems easy, but for some reason I just can't get it to work... somehow my scripts keep overlapping... things above mess with what's below... and vice versa.

The first feature is way over my head. (at least I think).

Thanks in advance for any help out there! I look forward to learning from you guys!

please, please help!

Walter

wwzausch
04-07-2003, 08:47 PM
please, someone respond? even if you can only help me with on piece, that would be great!

Thanks in advance

viravan
04-07-2003, 09:04 PM
You don't even need a script to pop open a new window with an image. A simple HTML tag like the one shown below should work:

<A HREF="myHiResImage.jpg" TARGET="newWindow">click here for Hi-Res image in a new window</A>


:)

V.V.

wwzausch
04-07-2003, 09:11 PM
But, how does the page know which new main image is being displayed?

Maybe I wasn't clear. In my first sample, when you click on the thumbnails, it changes the main images, right?

What I want if then the ability to click on that main image and have it open a new window with the appropriate image.

That main image could be 1 of 12 possible preloaded images.

Am I just missing something?

Walt

viravan
04-07-2003, 10:01 PM
Oh.......


Well, I tried to look at your page but IE6 complained that there are error on the page (line 28, character 1, object expected).

What you need to do is when you call the thumbtobig function, save the argument so that when the big image is clicked you know which Hi-Res pic to display. And yes, you do need a script to do what you wanted -- you can use window.open to open a new window with the Hi-Res image (if you don't know how to use window.open, try searching this site for an example).

:)

V.V.