fabs Posted May 6, 2009 Share Posted May 6, 2009 i have tried an example about frame in http://www.w3schools.com/html/tryit.asp?fi...html_frame_jumpbut i dont understand that example.could you help me?? Link to comment Share on other sites More sharing options...
Kingy Posted May 6, 2009 Share Posted May 6, 2009 I believe you want to use anchors. Link to comment Share on other sites More sharing options...
thescientist Posted May 7, 2009 Share Posted May 7, 2009 <frameset cols="20%,80%"> <frame src="frame_a.htm"> <frame src="link.htm#C10"></frameset>if this is the part that is confusing you, it's basically saying within the page "link.htm", find anchor C10 and go right to it. The "#" is the anchor. So for instance, say you wanted that link to go to chapter 12 in the referenced document, you would write <framce src="link.htm#C12"> and in link.htm, you would write <a label="C12"> in the spot in the page where you want people to go to.http://www.w3schools.com/HTML/html_links.asp. scroll about half way down a look for the section called "the label attribute". Link to comment Share on other sites More sharing options...
Ingolme Posted May 7, 2009 Share Posted May 7, 2009 <frameset cols="20%,80%"> <frame src="frame_a.htm"> <frame src="link.htm#C10"></frameset>if this is the part that is confusing you, it's basically saying within the page "link.htm", find anchor C10 and go right to it. The "#" is the anchor. So for instance, say you wanted that link to go to chapter 12 in the referenced document, you would write <framce src="link.htm#C12"> and in link.htm, you would write <a label="C12"> in the spot in the page where you want people to go to.http://www.w3schools.com/HTML/html_links.asp. scroll about half way down a look for the section called "the label attribute".You wouldn't use the "label" attribute because it doesn't exist.The old-fashioned way was to use the name attribute. That attribute was deprecated in favor of the id attribute.Also, it doesn't need to be an <a> element. The link will target any object with an ID. Link to comment Share on other sites More sharing options...
fabs Posted May 7, 2009 Author Share Posted May 7, 2009 thanks. i have understood Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.