Dreamweaver - URL links by mouse clicks
Dreamweaver - URL links by mouse clicks
Author
Discussion

pmanson

Original Poster:

13,388 posts

279 months

Friday 26th March 2004
quotequote all
I have started to create a web site. I have a page with links to various photos. I want to be able to click on the photo and for it to bring up a new window with the selected photos (which are thumbnails).

I've got the new window coming up with the thumbnails however the page with the image I have clicked on stays the same.

E.g mysite/index - Click on one of the links which brings up a new window - mysite/index/pics while leaving the orginal window with the mysite/index behind it.

I think i'm being stupid and that it most be fairly obvious but i can't do it!

gopher

5,160 posts

285 months

Friday 26th March 2004
quotequote all
Sorry I'm a bit lost as to what you are trying to achieve.

Do you have a page of thumbnails and when someone clicks on one of the thumbnails you want the full size image appears in the pop-up?

Paul

pmanson

Original Poster:

13,388 posts

279 months

Friday 26th March 2004
quotequote all
gopher said:
Sorry I'm a bit lost as to what you are trying to achieve.

Do you have a page of thumbnails and when someone clicks on one of the thumbnails you want the full size image appears in the pop-up?

Paul


Not quite. I have an a image on my website that when clicked brings up a seperate window containing thumbnails. (This part is working fine).

However the page which has the image clicked then changes the to the the thumbnail page as well (This is the part I need to stop)

trevorw

2,875 posts

308 months

Saturday 27th March 2004
quotequote all
pmanson said:
I have started to create a web site. I have a page with links to various photos. I want to be able to click on the photo and for it to bring up a new window with the selected photos (which are thumbnails).

I've got the new window coming up with the thumbnails however the page with the image I have clicked on stays the same.

E.g mysite/index - Click on one of the links which brings up a new window - mysite/index/pics while leaving the orginal window with the mysite/index behind it.

I think i'm being stupid and that it most be fairly obvious but i can't do it!




From what you have put here, i'm guessing you want mysite/index to be replaced with mysite/index/pics so no other window is open after clicking the link on mysite/index?

If so this might help

Opens a New window
<a href="http://www.pistonheads.com" title="should open pistonheads in a new window!" target="new"> New Window</a>

Stays in same window
<a href="http://www.pistonheads.com" title="should open pistonheads in this window!" target="_top">In this window</a>

>> Edited by trevorw on Saturday 27th March 00:29

>> Edited by trevorw on Saturday 27th March 00:31

pmanson

Original Poster:

13,388 posts

279 months

Saturday 27th March 2004
quotequote all
Not quite.....

I have an a image on my website that when clicked brings up a seperate window containing thumbnails. (This part is working fine).

eg. mysite/index

However the page which has the image clicked then changes the to the the thumbnail page as well (This is the part I need to stop)

Clicking on the link brings up a seperate window:

mysite/index/pics

but it also changes the orginal window which was displaying:

mysite/index

to

mysite/index/pics

This means that I end up with mysite/index/pics open twice. I want to end up with two windows open. One of them displaying:

mysite/index

and the other

mysite/index/pics

Cheers

Phill

trevorw

2,875 posts

308 months

Saturday 27th March 2004
quotequote all
Whats the code for the image you click on, can you past it in here?

Or even the website address so we can see the problem first hand? (unless its private of course)

I'll try and help, but no promises.

warmfuzzies

4,348 posts

279 months

Saturday 27th March 2004
quotequote all
I think it maybe to do with the links atributes, e.g. parent/self/new etc, try playing with these it should resolve your problem, if your using a html proggie, surely ther's an offline method of chcking its behaviour?

kevin

gopher

5,160 posts

285 months

Saturday 27th March 2004
quotequote all
it sounds very much like the <img tag on the main browser window has an href attribute which is also pointing to the thumbnails page, and is opening the new window on the onclick event e.g

<img src="myimage" href="/pics.htm" onclick="OpenPopUp(pics.htm)">

if this is the case change the href to ="javascript:OpenPopUp()" (or whatever the open new window code is after the javascript: bit) and drop the onclick event.

e.g

<img src="myimage" href="javascript:OpenPopUp(pics.htm)>

this is assuming a lot mind so if this does not match your situation, pop the code up here as above,or you can mail me off line as well.

Cheers

Paul

warmfuzzies

4,348 posts

279 months

Saturday 27th March 2004
quotequote all
This is what my own site looks like when i click a link in the left had frame, and get the image to appear with the text in the mainframe.:-
<a href="Reflections_in_red_large.htm" target="mainFrame" onClick="MM_nbGroup('down','group1','Red_rear_flank_large','',1)" onMouseOut="MM_nbGroup('out')" onMouseOver="MM_nbGroup('over','Red_front_small','','',1)"><img src="Reflections_in_red_large.jpg" width="80" height="60" border="0"></a>

It's the mainframe here, that makes the browser open a window inside the parent, I have 3 frames, top,left,main. Each clickable link will open in the main centre frame.
hope this helps, not confuses.

Kevin

pmanson

Original Poster:

13,388 posts

279 months

Saturday 27th March 2004
quotequote all
I got it working by targeting the link to "_blank"

Cheers for your help guys