Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11

Thread: new in Frameset

  1. #1
    Regular Coder
    Join Date
    Jan 2010
    Posts
    140
    Thanks
    52
    Thanked 0 Times in 0 Posts

    new in Frameset

    Hello, I use iframe to insert my frameset but I dont know how can I change the link of right.html frame.

    Code:
    <!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.
    Last edited by finoy_ako; 11-24-2011 at 03:37 PM.

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    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.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • Users who have thanked Kor for this post:

    finoy_ako (11-24-2011)

  • #3
    Regular Coder
    Join Date
    Jan 2010
    Posts
    140
    Thanks
    52
    Thanked 0 Times in 0 Posts
    btw what do you think is the better alternative for frameset.. I really need that kind of function like frameset do.

  • #4
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    <IFRAME> :
    http://www.w3schools.com/tags/tag_iframe.asp

    or server-side includes. PHP is the most used sever-side language from that.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • Users who have thanked Kor for this post:

    finoy_ako (11-24-2011)

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    627
    Thanks
    1
    Thanked 20 Times in 20 Posts
    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/

  • #6
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Quote Originally Posted by jalarie View Post
    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
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    627
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Quote Originally Posted by Kor View Post
    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.

  • #8
    Regular Coder
    Join Date
    Jan 2010
    Posts
    140
    Thanks
    52
    Thanked 0 Times in 0 Posts
    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>

  • #9
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What browser are you using? Im pretty sure customizing scrollbars only works in Internet Explorer.

  • #10
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Quote Originally Posted by jalarie View Post
    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.

    Quote Originally Posted by jalarie View Post
    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.
    Last edited by Kor; 11-29-2011 at 08:11 AM.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #11
    Regular Coder
    Join Date
    Jan 2010
    Posts
    140
    Thanks
    52
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by vortexbyte View Post
    What browser are you using? Im pretty sure customizing scrollbars only works in Internet Explorer.
    Im using firefox...... ah thanks, atleast now I know.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •