frames question

  • Thread starter Spock
  • 14 comments
  • 412 views

Spock

Not In My Name
Premium
3,341
im desinging a page using frames and id like to know how to make the links onpen up in the other side of the frames,

errrm, like have someone click the link in the frames but open up the page in the main part of the site

Code:
________________________________
|frames part    |    main page where i want the link
|                      |          to open up in
|  <link>          |
|                      |
|                      | 
|                      |

i think i have to use a target="_somthing"

but im not very used to useing frames in a site
so plaes some help
 
If I remember correctly... In the frame you have the link from you would do the following:


PHP:
<A HREF="url address here" TARGET="name of frame you want the page to open in"></A>

but in order for the TARGET command to work you have to name the frames in your frameset.html file. I'd point you to a tutorial I wrote but it seems to have disappeared from my website.

Do a search for Frames tutorials. I'm sure theres plenty out there. I'm a little rusty as I haven't worked on my site in awhile.
 
ok, i tryd what you said to do but it opens the file in a new window, but i'll look for some frame tutorials
 
Originally posted by spock
ok, i tryd what you said to do but it opens the file in a new window, but i'll look for some frame tutorials

If this happens it's because the frame you specified as a target does not exist, which usually means you've got a typo. Check your frame names and your target assignments.

Only use the underscore if you're using one of the standard frame names _parent, _blank, _top, _self.

And for the site you drew out above, I would suggest putting in the <head> of your links bar the following:
PHP:
<base target="content-frame">

This means that all links will open in the "content-frame", unless you specify another target in the <a> tag. It saves time and makes the code a little smaller.
 
You would have to name the frame in the FRAME tag. And then put the name into the target parameter in the A HREF tag.
kideng

For example:
<FRAME NAME="frame1">

then...

<A HREF="whatever.htm" TARGET="frame1">
 
Originally posted by GilesGuthrie
If this happens it's because the frame you specified as a target does not exist, which usually means you've got a typo. Check your frame names and your target assignments.

Only use the underscore if you're using one of the standard frame names _parent, _blank, _top, _self.

And for the site you drew out above, I would suggest putting in the <head> of your links bar the following:
PHP:
<base target="content-frame">

This means that all links will open in the "content-frame", unless you specify another target in the <a> tag. It saves time and makes the code a little smaller.

thanks GilesGuthrie that worked with my page, and you can see ithe website with the link thats in my sig
 
Originally posted by GilesGuthrie
I thought that it was only NS4 that didn't support IFrames.
Oh. I thought it was Netscape in general...

NS4 doesn't support anything. I gave up trying to make a NS4 compatible site.
 
Trying to make something compatible for NS4 will make it horrible for every single other browser and other versions of Netscape... NS4 is the idiot child of the bunch.
 
Originally posted by Sage
Trying to make something compatible for NS4 will make it horrible for every single other browser and other versions of Netscape... NS4 is the idiot child of the bunch.
I know.
 

Latest Posts

Back