lkoreality
01-22-2005, 08:32 PM
Ok since a lot of people want to know how to make a site with backround music that doesn't change when going to a new page I decided to make one! (just you have to use frames which I hate to) but I made it... blendable!
1. Make a homepage or main page DON'T put on a navigation section (basically where all of your links to other pages are!) save as index1.htm
2. customize this script:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Navigation</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="Blue" text="green" link="red" vlink="yellow" alink="orange">
<div align="center"><script>
//change yourfile.mp3 to the location of the music you want to be played
var musicsrc="yourfile.mp3"
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="1">')
else
document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
//-->
</script>
//change index.htm to the link destination as desired and change link/Home to what you want
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Navigation</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="Blue" text="green" link="red" vlink="yellow" alink="orange">
<div align="center"><script>
//change yourfile.mp3 to the location of the music you want to be played
var musicsrc="yourfile.mp3"
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="1">')
else
document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
//-->
</script>
//change index1.htm to the link destination as desired and change link/Home to what you want
<a href="index1.htm">Home</a>|<a href="index1.htm">Link</a>|<a href="index1.htm">Link</a>|etc.</div>
</body>
</html>
and save as navigation.htm
3. Next make a new page name it index.htm
on that page put:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="48,*" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="navigation.htm" name="topFrame" scrolling="NO" noresize title="topFrame" >
<frame src="index1.htm" name="mainFrame" title="mainFrame">
</frameset>
<noframes><body>
</body></noframes>
</html>
now upload all 3 of them onto your website (unless you already did) and go to index.htm then the music should play!
Oh and a suggestion make a QuickTime link to the download for Windows (Mac most likely has it installed already) because it must have Quicktime to play!
Here's an example (with no content and moderators sorry if im not aloud to post this... it's my website though) no links to outside site's, defenitally not to your own
all music is copyrighted to BurnsAudio (my dad)
if you have ANY quesiton PM me email me Im me post back etc.
1. Make a homepage or main page DON'T put on a navigation section (basically where all of your links to other pages are!) save as index1.htm
2. customize this script:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Navigation</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="Blue" text="green" link="red" vlink="yellow" alink="orange">
<div align="center"><script>
//change yourfile.mp3 to the location of the music you want to be played
var musicsrc="yourfile.mp3"
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="1">')
else
document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
//-->
</script>
//change index.htm to the link destination as desired and change link/Home to what you want
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Navigation</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="Blue" text="green" link="red" vlink="yellow" alink="orange">
<div align="center"><script>
//change yourfile.mp3 to the location of the music you want to be played
var musicsrc="yourfile.mp3"
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="1">')
else
document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
//-->
</script>
//change index1.htm to the link destination as desired and change link/Home to what you want
<a href="index1.htm">Home</a>|<a href="index1.htm">Link</a>|<a href="index1.htm">Link</a>|etc.</div>
</body>
</html>
and save as navigation.htm
3. Next make a new page name it index.htm
on that page put:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="48,*" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="navigation.htm" name="topFrame" scrolling="NO" noresize title="topFrame" >
<frame src="index1.htm" name="mainFrame" title="mainFrame">
</frameset>
<noframes><body>
</body></noframes>
</html>
now upload all 3 of them onto your website (unless you already did) and go to index.htm then the music should play!
Oh and a suggestion make a QuickTime link to the download for Windows (Mac most likely has it installed already) because it must have Quicktime to play!
Here's an example (with no content and moderators sorry if im not aloud to post this... it's my website though) no links to outside site's, defenitally not to your own
all music is copyrighted to BurnsAudio (my dad)
if you have ANY quesiton PM me email me Im me post back etc.