...

View Full Version : new in Frameset



finoy_ako
11-24-2011, 03:32 PM
Hello, I use iframe to insert my frameset but I dont know how can I change the link of right.html frame.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<frameset rows="59,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset rows="*" cols="214,*" framespacing="0" frameborder="no" border="0">
<frame src="animation.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="right.html" id="mainFrame" title="mainFrame" />
</frameset>

</frameset>
<noframes><body>
</body></noframes>
</html>



here's my actual link --> http://dontdare.50webs.com/layout.html

as you can see I have a navigation 1 | 2 | 3 | 4 | 5 and so on. I want to change only the right.html frame or the mainframe everytime I click that number navigation.

Kor
11-24-2011, 03:42 PM
I think you confound IFRAME element with FRAME and FRAMESET elements.

FRAME and FRAMESET are deprecated for some time, and they even considered "absent elements" under HTML5 (among others like CENTER, FONT, etc.). W3C recommendation is to stop using them. Unlike those absent elements, IFRAME remains a valid element.

So, you chose the wrong moment to be a "newcomer in Frameset". There are several good years since developers ceased to use FRAME and FRAMESET.

finoy_ako
11-24-2011, 03:49 PM
btw what do you think is the better alternative for frameset.. I really need that kind of function like frameset do.

Kor
11-24-2011, 03:58 PM
<IFRAME> :
http://www.w3schools.com/tags/tag_iframe.asp

or server-side includes. PHP is the most used sever-side language from that.

jalarie
11-24-2011, 05:25 PM
I am neither for nor against framesets. Here is a site that shows how they're done and has a bit of fun doing it:

http://spruce.flint.umich.edu/~jalarie/

Kor
11-25-2011, 10:09 AM
I am neither for nor against framesets
So am I. But once W3C decided that something is deprecated or even "absent" from specifications, the common sense tells me that I must avoid using that something if I want my site to be seen and visited for the next years. Pure logic :)

jalarie
11-25-2011, 06:23 PM
So am I. But once W3C decided that something is deprecated or even "absent" from specifications, the common sense tells me that I must avoid using that something if I want my site to be seen and visited for the next years. Pure logic :)

Great idea. But:
1. The original poster asked about framesets. I think we should openly express opinions while actually answering the question. I did that.
2. The W3C has not yet fully decided exactly what HTML5 is. I'm not eager to jump on a bandwagon that doesn't know for sure where it's going.
3. Even once they really decide what HTML5 is, they could change their minds again. When HTML4.01 was supposedly the FINAL version of HTML and everyone was to switch to XHTML, I waited until it was realy definite, changed multiple hundred web pages to XHTML, and then they went another way.

finoy_ako
11-28-2011, 05:36 PM
I change it into iframe,, but I wonder I cant change the scrollbar color of the iframe even I put the code below


<style type="text/css">
<!--
BODY {scrollbar-hightlight-color:blue;scrollbar-arrow-color:red;scrollbar-base-color:gold;}
-->
</style>

vortexbyte
11-29-2011, 02:19 AM
What browser are you using? Im pretty sure customizing scrollbars only works in Internet Explorer.

Kor
11-29-2011, 08:07 AM
Great idea. But:
1. The original poster asked about framesets. I think we should openly express opinions while actually answering the question. I did that.

The OP is a beginner. He might have asked, as well, about how to give a name to a DIV or how to use document.all in Mozilla. It looks obvious to me that an experienced coder should provide the correct and modern solution, not to encourage deprecated issues. Moreover, the decision to make frames deprecated and finally absent has a serious reason: security.



2. The W3C has not yet fully decided exactly what HTML5 is. I'm not eager to jump on a bandwagon that doesn't know for sure where it's going.
3. Even once they really decide what HTML5 is, they could change their minds again. When HTML4.01 was supposedly the FINAL version of HTML and everyone was to switch to XHTML, I waited until it was realy definite, changed multiple hundred web pages to XHTML, and then they went another way.

That is a good behavior. Except that there was no "switch" from HTML4.01 to XHTML and to HTML5. The simple fact that those SGML variations appeared in temporal succession doesn't make them versions. XHTML has NOT replaced HTML 4.01. XHTML is a variation of HTML created to handle XML document in need. It is a parallel version of HTML 4.01, not a successor (unlike the HTML 3 - HTML 4 true succession). No one was ever forced to re-write his HTML 4.01 sites in XHTML. Same with HTML5. HTML5 allows both HTML 4.01 strict and XHTML strict style of coding (with some inherent restrictions), so that we can not say that it is a new, brand, language.

finoy_ako
11-29-2011, 12:41 PM
What browser are you using? Im pretty sure customizing scrollbars only works in Internet Explorer.

Im using firefox...... ah thanks, atleast now I know.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum