HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
mp3 player in iframe?
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
jakematthew



Joined: 20 May 2007
Posts: 2

PostPosted: Sun May 20, 2007 12:43 pm     mp3 player in iframe? Reply with quote

This is issue has been bugging me forever! Plus, I'm sure you guys are sick of seeing this topic come up. I don't know why but I cannot get my flash mp3 player to load properly into an iframe.

Here is the site: http://duffyartwork.com.

All I need is for the mp3 is to simply stop reloading everytime a user browses to a different page on the site so the song stops refreshing.

Can someone please just give me a straight forward answer for this. I hate to beat a dead horse but it would be so awesome not to have to worry about this anymore.

Ive attached the source code and marked the spot where I believe the code should go...


Thanks a million in advance!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /><!--LEAVE FOR STATS -->
<meta name="description" content="<?php bloginfo('description'); ?>" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="all" />
<link rel="start" href="<?php echo get_settings('home'); ?>/" title="<?php bloginfo('name'); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS 2.0 Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> Comments RSS 2.0 Feed" href="<?php bloginfo('comments_rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<title><?php bloginfo('name'); ?> <?php wp_title('&raquo;'); ?></title>
<?php wp_head(); ?>
</head>
<body>
<div id="container">
<div id="header"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></div>
<div id="topnav">
<div style="
height: 0px;
top: 221px;
left: 160px;
position: absolute;
z-index: 1;"
visibility: show;">
</div><ul><li>

<!--NEED IFRAME CODE HERE, I THINK-->

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" width="254" height="23" id="wimpy" align="center">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://www.duffyartwork.com/music/wimpy.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="000000" />
<param name="flashvars" value="wimpyApp=http://www.duffyartwork.com/music/wimpy.php&wimpySkin=http://www.duffyartwork.com/music/duffy.xml&startPlayingOnload=yes&randomOnLoad=yes" />
<param name="wmode" value="transparent" />
<embed src="http://www.duffyartwork.com/music/wimpy.swf" flashvars="wimpyApp=http://www.duffyartwork.com/music/wimpy.php&wimpySkin=http://www.duffyartwork.com/music/duffy.xml&startPlayingOnload=yes&randomOnLoad=yes" loop="false" menu="false" quality="high" wmode="transparent" width="254" height="23" scale="noscale" salign="lt" name="wimpy" align="center" bgcolor="000000" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

</li>
<li><a href="http://duffyartwork.com">home</a></li> |
<li><a href="http://duffyartwork.com/?page_id=13">bio</a></li> |
<li><a href="http://duffyartwork.com/?page_id=16">store</a></li> |
<li><a href="http://duffyartwork.com/?page_id=18">contact</a></li>
</ul>
</div>
<div id="content">
<?php wp_footer(); ?>
graphicsgod



Joined: 06 Feb 2007
Posts: 65

PostPosted: Sun May 20, 2007 9:20 pm     Reply with quote

I think the only way to get something to "play" continuously, while the user is browsing a website, is to use frames. Not "iFrames", but actual frames. That way you can surf the website and that part of the page is visible constantly. Well unless the user goes elsewhere Wink.

Rob
jakematthew



Joined: 20 May 2007
Posts: 2

PostPosted: Sun May 27, 2007 6:14 pm     Reply with quote

Could you (or someone) help me out with the code structure for this? I'm having trouble.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8199
Location: Castle Rock CO USA

PostPosted: Mon May 28, 2007 2:58 am     Reply with quote



Probably using a footer frame might be better
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled 1</title>
</head>

<frameset rows="*,64">
   <frame name="main">
   <frame name="footer" scrolling="no" noresize="noresize" target="main">
   <noframes>
   <body>

   <p>This page uses frames, but your browser doesn't support them.</p>

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

</html>

_________________
Corey
Toll Free Numbers for Real Estate Agents | Merchant Accounts
Samuel Jong



Joined: 06 Jan 2008
Posts: 86

PostPosted: Sun Jan 13, 2008 2:04 am     Insert midi into frame Reply with quote

I try to insert a midi sound into the nested frame but fail. But it works in the main page (index.htm).

<head>
<bgsound src="../httpdocs/698.mid" loop="-1">
</head>

Help please and thanks.
sticks464



Joined: 31 Dec 2006
Posts: 993

PostPosted: Sun Jan 13, 2008 7:04 am     Reply with quote

You can put something like this on a page that is called into a frame that will remain constant throughout (menu, header, or footer, not main as it will change)

Code:
<p style="visibility:hidden"><bgsound src="songname.mid" loop="infinite">
<embed src="songname.mid" hidden="true" border="0" width="10" height="10" autostart="true" loop="true"></p>
Samuel Jong



Joined: 06 Jan 2008
Posts: 86

PostPosted: Fri Jan 18, 2008 4:45 pm     Reply with quote

How to make the console wider? I try to change the width, but nothing change at all. And the volume is always at the bottom position, what I want is at top position.

Thanks in advance.

Code:
<embed src="http://centrin.net.id/~sjong/698.mid" align=baseline border=0 width=140 height=15 autostart=false controls="" loop=1 volume=high>
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8199
Location: Castle Rock CO USA

PostPosted: Sat Jan 19, 2008 9:30 am     Reply with quote

What browser are you testing it in? Have you considered using Flash to play it? Flash Video MX Pro is a good program and you can tell it to place the play bar at the top.

_________________
Corey
Toll Free Fax Numbers | Mile High Merchant Accounts | Expression Web Blog
Samuel Jong



Joined: 06 Jan 2008
Posts: 86

PostPosted: Mon Jan 21, 2008 2:26 pm     Reply with quote

Corey Bryant wrote:
What browser are you testing it in? Have you considered using Flash to play it? Flash Video MX Pro is a good program and you can tell it to place the play bar at the top.


I use IE6. After changing the console width with 380, then it looks wider now. Thanks.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Webmaster Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial