Dreamweaver - URL links by mouse clicks
Discussion
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!
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 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)
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
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
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
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
<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
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
<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
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


