spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column84


Embedding Sound with Flash, Part IV: Native JavaScript

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

Embedding Sound in an Invisible Frame

When you maintain a Web site, you need to embed the sound track on each and every page you want to sonify. This may become a nightmare for maintenance when you want to change the embedded track on all pages. Another way to embed a sound track is to use an invisible frame. We can embed all tracks in this frame, and reference it from all the Web site's pages. Click here to see a page with two frames, one invisible and one visible. This is the code for the FRAMESET page:

<HTML>
<HEAD>
<TITLE>Flash sound with Frames</TITLE>
</HEAD>
<FRAMESET FRAMESPACING="0" BORDER="false"
    ROWS="1,*" FRAMEBORDER="0">
  <FRAME NAME="swf" SCROLLING="no"
    NORESIZE TARGET="main" SRC="010518b.html"
  MARGINWIDTH="1" MARGINHEIGHT="1">
  <FRAME NAME="main" src="010518c.html" scrolling="auto">
  <NOFRAMES>
  <BODY>
  <P>This page uses frames, but your browser
    doesn't support them.</P>
  </BODY>
  </NOFRAMES>
</FRAMESET>
</HTML>

This is the code for the invisible frame:

<HTML>
<HEAD>
<TITLE>INVISIBLE FRAME</TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>

This is the code for the visible frame:

<HTML>
<HEAD>
<TITLE>VISIBLE FRAME</TITLE>
</HEAD>
<BODY>
<P>Hello World. There are two frames on this page.
  The first one is invisible.</P>
</BODY>
</HTML>

Next: How to share sound tracks among Web pages

http://www.internet.com

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: May 21, 2001
Revised: May 21, 2001

URL: http://www.webreference.com/js/column84/6.html