HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

I Have Problem With Frameset
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> HTML Frame
View previous topic :: View next topic  
Author Message
s12348



Joined: 16 Aug 2005
Posts: 4

Posted: Thu Jul 17, 2008 1:24 am     I Have Problem With Frameset  

Hi,

I'm trying to use frameset to create my webpage. Not sure about the problem. Please help. I click on the link on the left side ( which is the menu ), it pop up a new window to open the link. The correct way should be open on the right side. Something wrong somewhere, please help. I suspect is my html code on the left side having problem. Please let me know how to create the left side html file. Thanks.
sticks464



Joined: 31 Dec 2006
Posts: 2629

Posted: Thu Jul 17, 2008 4:16 am      

Show us your code. Most likely it is incorrect target attributes on your links.
s12348



Joined: 16 Aug 2005
Posts: 4

Posted: Thu Jul 17, 2008 6:22 pm      

this is the code for the left frame:


<LI><A HREF=videoclips1.html TARGET="contentFrame">VIDEOCLIPS</A>
<LI><A HREF=themesong1.html TARGET="contentFrame">THEMESONG</A>
<LI><A HREF=titles.html TARGET="contentFrame">Miles Davis</A>
<LI><A HREF=titles.html TARGET="contentFrame">Dexter Gordon</A>

the format correct? then what should i put on the ' contentFrame '?


this is the main page (right frame) code:


<HTML>
<HEAD>
<TITLE>TESTING ZONE</TITLE>
</HEAD>

<FRAMESET ROWS="40%,*" FRAMEBORDER=NO FRAMESPACING=10 BORDER=0>
<FRAME SRC="titlebar.html" NAME=TITLE SCROLLING=NO>

<FRAMESET COLS="25%,*" FRAMEBORDER=NO FRAMESPACING=10 BORDER=0>
<FRAME SRC="sidebar.html" NAME=SIDEBAR>
<FRAME SRC="content.html" NAME=CONTENT>
</FRAMESET>
</FRAMESET>

</HTML>

the format correct? what should i put for the content.html?

should be something wrong somewhere that's why got problem.
sticks464



Joined: 31 Dec 2006
Posts: 2629

Posted: Thu Jul 17, 2008 7:27 pm      

If you use <FRAME SRC="content.html" NAME=CONTENT> then you must match this with your links target attribute TARGET="CONTENT" not TARGET="contentFrame". CONTENT and content or contentFrame are not the same. html normal markup is not case sensitive except where you are creating links to certain names.
Also use the frameset doctype
Code: <!DOCTYPE HTML PUBLIC  "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> HTML Frame
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group