Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Intermediate
Nov 13, 1998

Playing a Sound Automatically Using META Tags

If you want to play a sound when someone visits your Web page, an effective, simple, browser-independent approach is to insert a META refresh tag that loads the sound file. META tags need to be in the header ( ) of your HTML file in order to work. If your audience uses many kinds of computers, make sure the sound file is a common file type such as WAV, AU, AIFF, or MIDI.
 
<HTML>

	<HEAD>
		<META HTTP-EQUIV="refresh" CONTENT="10; URL=spacemusic.au">
		<TITLE>A Sound Tip</TITLE>
	</HEAD>

	<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" ALINK="#6600FF" VLINK="#CC0000">
	<H1>Welcome to the sound warehouse</H1>
	
	We have a full selection of MP3 audio clips, ... etc.
	</BODY>

</HTML>
Erik Goetze
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date