Frames & DIVS - not good toghether?!

Discussion in 'HTML & Website Design' started by redhits, Oct 9, 2009.

  1. #1
    framset seem to no longher load if i will add an frameset before them
    also the div do not load if i add it after the frameset...

    How i can make them work toghether? I just want an floating DIV over those frames



    <div class=mydiv><h1> bau bau bau</h1></div>
    <frameset rows="120px,*" FRAMEBORDER=NO FRAMESPACING=0 BORDER=0>
    <frame src="rheader.php">
    <frame src="http://tabu.com">
    </frameset>
     
    redhits, Oct 9, 2009 IP
  2. Obama

    Obama Peon

    Messages:
    114
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you have a frameset, you can have nothing else in the page - not even a <BODY> tag. <FRAMESET> replaces <BODY>

    For in-body frames, use Iframes instead.
     
    Obama, Oct 9, 2009 IP
  3. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Screw iFrames. Either use OBJECT (which is the correct element to use here) or throw everything on the page and use a JavaScript tab switcher script to emulate the frameset.
     
    Dan Schulz, Oct 9, 2009 IP
  4. Traditione

    Traditione Well-Known Member

    Messages:
    731
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    120
    #4
    lol iframes; not every day you see someone debating to legitimately use frames.

    I just vividly remember the bullshit havoc iframe would cause to unsuspecting nooberts like myself by bored whitehats-gone-black....Not to mention the entire new wave of nonsense that javascript opened up....Which has just reminded me I have not played with greasemonkey in a while, off to do that now.

    There really is no other way to do what you want other than that code you got up there?
    Hello, World! Get creative with that logic!
     
    Traditione, Oct 10, 2009 IP
  5. Sapphiro

    Sapphiro Well-Known Member

    Messages:
    1,242
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    175
    #5
    I don't think Iframe is recommended for the modern web standards, but I still see it on some AJAX tabs sometimes however. Try using PHP instead if you need to display contents from another page onto a particular page. :)
     
    Sapphiro, Oct 10, 2009 IP