Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames

Status
Not open for further replies.

Pinpoint

Programmer
Dec 23, 2001
49
0
0
GB
Hi, I am trying to set up a simple 2-frame index page, the top frame being a menu bar, which links to other pages. The main bottom frame displaying all other pages. I cannot get the menu bar links to bring up the new page in the main frame of the index page.

Index.htm:
<frameset rows=&quot;120,*&quot;>
<frame src=&quot;menu.htm&quot; id=&quot;top&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; />
<frame src=&quot;home.htm&quot; id=&quot;main&quot; frameborder=&quot;0&quot; scrolling=&quot;yes&quot; />
</frameset>

Menu.htm:
<a href=&quot;class.htm&quot; target=&quot;main&quot;> <img src=&quot;class.gif&quot; border=&quot;0&quot; align=&quot;left&quot; /> </a>
<a href=&quot;sample.htm&quot; target=&quot;main&quot;> <img src=&quot;sample.gif&quot; border=&quot;0&quot; /> </a>

When I click on the class.gif, the page displays, but in a new window, not in the main frame. Any idea what is wrong ? target=&quot;main&quot; seems to be being ignored completely.

Also, is it just me or are these Sams Teach Yourself books full of errors ? Every time I use their sample coding it doesnt work !

Thanks,

Pinpoint
 
Instead of using ID, use NAME. So it'd be:
Code:
<frame src=&quot;menu.htm&quot; [b]name[/b]=&quot;top&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; />
<frame src=&quot;home.htm&quot; [b]name[/b]=&quot;main&quot; frameborder=&quot;0&quot; scrolling=&quot;yes&quot; />

Also.. yes I also agree that the Sams 'Teach Yourself' books are full of minor errors, but they're good for reference.

&quot;Hey...Where are all the chicks?&quot; -- unknown
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top