Frameset not working

user2297392 picture user2297392 · Mar 20, 2014 · Viewed 9.6k times · Source

I'm doing a frameset with two pages, the first page is 'index.php', which would be the page with the main content of my site. The second page is the 'mp3.html', which is an mp3 player that should be aligned to the footer.

I did get the frameset but only a white screen appears. What could be my problem?

HTML frameset page (intro.php) => http://pastebin.com/enJeVXSG

<body>
    <frameset rows="*,30" frameborder="no" border="0" framespacing="0">
        <frame src="<?php echo BASE_URL; ?>index.php" name="mainFrame" id="mainFrame" />
        <frame src="<?php echo BASE_URL; ?>mp3.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
    </frameset>
</body>

mp3.html => http://pastebin.com/0ShSj3RA

<div class="player">
  <object type="application/x-shockwave-flash" ... /></object>
</div>

I'm doing these framesets so that the user can browse the site without the music player stop playing.


The result:
http://i.imgur.com/KXdsX4F.png
http://i.imgur.com/sRQ6Axi.png

Answer

user3440516 picture user3440516 · Mar 20, 2014

You need to divide the frames within <frameset> tag, and need to avoid the <body> tag.
Only use <frameset> along with <frame>

You can refer to the link for frame demo.