Forum Moderators: open

Message Too Old, No Replies

problems with iframes

someone help me..

         

erinv12

3:16 pm on Jul 2, 2003 (gmt 0)




hey all
im new on the site and here's my initial kick:
i've set up a page with just 1 iframe on it that contains a few links and plained text. i want the content of the linked pages to appear on my main page and NOT on the iframe. I've tried the "target" tag and it just doesnt work. what can i do?

sorry if this sounds too lame, but i really dont have an idea about what to do.
thanks all replies coming to my way..

netcommr

3:22 pm on Jul 2, 2003 (gmt 0)

10+ Year Member



target="_top"

this does not work?

daosmith

3:31 pm on Jul 2, 2003 (gmt 0)

10+ Year Member



Hi erinv12,

You are on the right track with the target tag - you need to set its value to _parent - the parent of the inline frame is your main document so the link will change the main document - however, unless you also have the relevant iframe loaded on the new page, your iframe will disappear (in contrast with a normal frame used in a frameset). So just to be clear, you need to have

<A href="whatever" target=_parent>

in order to load the linked page in the main (parent) frame. Hope this helps...

BTW, welcome to Webmaster World :)

zen_virgil

6:28 am on Jul 3, 2003 (gmt 0)

10+ Year Member



Hi! I also have a problem that is somewhat related to iframes. I've set up a page with 1 iframe, too. Then on top of that iframe is a set of images (which was in fact sort of a banner before I sliced them and made some rollover images in Adobe photoshop). When I click on one of the images, it turns to gray (the selected state)and then the new page loads inside the iframe. My problem is this: When I click the "Back" button of the browser, the content of the iframe changes back to the previous content but the rollover image do not. Can js do this, like the rollover images change with their corresponding page in the iframe?