Frames question

  • _nYght
  • Novice
  • Novice
  • _nYght
  • Posts: 17

Post 3+ Months Ago

currently i have 2 frames in a web page, one for the menu and one for the main content, my question is, when i click in one option in the menu the main content frame change but the problem here is that the menu frame must change when the page in the mainFrame load

the frame menu is called 'leftFrame' the main content is called 'mainFrame'
and the menu is like this

Code: [ Select ]
<table>
<tr><td><a href='page1.htm'><img src='option1.jpg'></tr></a></td>
<tr><td><a href='page2.htm'><img src='option2.jpg'></tr></a></td>
<tr><td><a href='page3.htm'><img src='option3.jpg'></tr></a></td>
<tr><td><a href='page4.htm'><img src='option4.jpg'></tr></a></td>
</table>
  1. <table>
  2. <tr><td><a href='page1.htm'><img src='option1.jpg'></tr></a></td>
  3. <tr><td><a href='page2.htm'><img src='option2.jpg'></tr></a></td>
  4. <tr><td><a href='page3.htm'><img src='option3.jpg'></tr></a></td>
  5. <tr><td><a href='page4.htm'><img src='option4.jpg'></tr></a></td>
  6. </table>


how can i change this page when another load
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5148
  • Loc: SC-USA

Post 3+ Months Ago

I'm a little fuzzy on what you're looking for here. You want to change the content of the menu frame and the content frame when you click on a link in the menu?

btw: your signature should only be 3 lines of text, your is currently 5. Please reduce it.

Thanks
  • Hacker007
  • Proficient
  • Proficient
  • User avatar
  • Posts: 371
  • Loc: Riverside, CA

Post 3+ Months Ago

I am not too sure what your asking either, I just wanted to point out your code:
Code: [ Select ]
<table>
<tr><td><a href='page1.htm'><img src='option1.jpg'></tr></a></td>
<tr><td><a href='page2.htm'><img src='option2.jpg'></tr></a></td>
<tr><td><a href='page3.htm'><img src='option3.jpg'></tr></a></td>
<tr><td><a href='page4.htm'><img src='option4.jpg'></tr></a></td>
</table>
  1. <table>
  2. <tr><td><a href='page1.htm'><img src='option1.jpg'></tr></a></td>
  3. <tr><td><a href='page2.htm'><img src='option2.jpg'></tr></a></td>
  4. <tr><td><a href='page3.htm'><img src='option3.jpg'></tr></a></td>
  5. <tr><td><a href='page4.htm'><img src='option4.jpg'></tr></a></td>
  6. </table>


It would better like this:

Code: [ Select ]
<table>
<tr><td><a href='page1.htm'><img src='option1.jpg'></td></a></tr>
<tr><td><a href='page2.htm'><img src='option2.jpg'></td></a></tr>
<tr><td><a href='page3.htm'><img src='option3.jpg'></td></a></tr>
<tr><td><a href='page4.htm'><img src='option4.jpg'></td></a></tr>
</table>
  1. <table>
  2. <tr><td><a href='page1.htm'><img src='option1.jpg'></td></a></tr>
  3. <tr><td><a href='page2.htm'><img src='option2.jpg'></td></a></tr>
  4. <tr><td><a href='page3.htm'><img src='option3.jpg'></td></a></tr>
  5. <tr><td><a href='page4.htm'><img src='option4.jpg'></td></a></tr>
  6. </table>

*thats if your linking the whole column, otherwise I would switch the /a and the td tags around. You shouldnt close a row before the colmn within it. ;)

-Preaching XHTML hacker007
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

Try:

Code: [ Select ]
<table>
<tr><td><a href='page1.htm' TARGET="mainframe"><img src='option1.jpg'></a></td></tr>
<tr><td><a href='page2.htm' TARGET="mainframe"><img src='option2.jpg'></a></td></tr>
<tr><td><a href='page3.htm' TARGET="mainframe"><img src='option3.jpg'></a></td></tr>
<tr><td><a href='page4.htm' TARGET="mainframe"><img src='option4.jpg'></a></td></tr>
</table>
  1. <table>
  2. <tr><td><a href='page1.htm' TARGET="mainframe"><img src='option1.jpg'></a></td></tr>
  3. <tr><td><a href='page2.htm' TARGET="mainframe"><img src='option2.jpg'></a></td></tr>
  4. <tr><td><a href='page3.htm' TARGET="mainframe"><img src='option3.jpg'></a></td></tr>
  5. <tr><td><a href='page4.htm' TARGET="mainframe"><img src='option4.jpg'></a></td></tr>
  6. </table>


Is it valid XHTML to close the td before closing the anchor? That doesn't seem right... it's not well-formed HTML, I can't believe it would be valid XHTML....

.c

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 18 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.