Click to See Complete Forum and Search --> : iframe src changes onclick


orkko
12-14-2003, 08:19 PM
first please take a look at this webpage...
http://www.absolutzero.com/green/index2.html
click on gallery and a new window will pop up. I don't want that to happen. Instead I need my iframe source to change when I click the link, instead of opening another html file in the browser.
I want the change to happen in the <iframe src="/directory">
I know this is mostly html but I don't think html would allow me to dynamically change the content in the table that contains the <iframe src=""> . I figured javascript would be the only way.
Click on the link below to see what I mean...
http://www.absolutzero.com/slice3a.jpg

Thanks ahead for your help.

TheBearMay
12-15-2003, 07:57 AM
I see you found a solution...
http://forums.webdeveloper.com/showthread.php?s=&threadid=23555

suerisk
01-08-2004, 09:41 AM
I have a nice page using the technique you are looking for.
Cut and paste from:

http://www.northdaysimage.ca/home.html

and reissue this using your own linking pages.

The page works properly when it is not in a frameset.
I surfed into this forum because I cannot fathom how to use my frameset for a large info website with that particular linking and scrolling textbox.

Anyway, the home page source is reached by right-clicking on the lower frame of the first page of northdaysimage.ca. Then go to source. You will see how interesting a little script it is.



Also- if you want a mouseover which offers an image opposite the linking text: See:

http://www.northdaysimage.ca/contents2.html

Cheers!

Sue