Ok, This one might be tricky
Moderators: Admin, Moderator Team
Ok, This one might be tricky
me and rheborn joined this thing on yahoo, and i was put in charge of makin the site, so its almost done, Well anyway, i uploaded a song to Epsilons Server, only temporary cause im ordering my own FTP server, for 6 bucks a month ...anyway what i need is. On there i have this HTML code...
<OBJECT ID='Player' HEIGHT='50' WIDTH='240'
classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'
codebase='http://activex.microsoft.com/activex/co ... er/en/nsmp
2inf.cab#Version=6,4,7,1112' standby='Loading Microsoft? Windows? Media
Player components...' type='application/x-oleobject'>
<PARAM NAME='Filename'
value=http://matt.echowave.net/uploads/puddle of mudd - Drift and Die.mp3'>
<PARAM NAME='ShowControls' VALUE='true'>
<PARAM NAME='ShowStatusBar' VALUE='true'>
<PARAM NAME='Autostart' VALUE='true'>
<PARAM NAME='ShowPositionControls' value='False'>
<PARAM NAME='ShowTracker' value='False'>
<EMBED type='application/x-mplayer2'
pluginspage = 'http://www.microsoft.com/Windows/MediaPlayer/'
SRC='http://www.streamaudio.com/listen?station=wgrd_fm'
name='Player'
width='800'
height='100'
AutoStart='false'
showcontrols='' showstatusbar='' showdisplay=''>
</EMBED>
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downlo ... nts/Produc
ts/MediaPlayer/"
filename=http://www.streamaudio.com/listen?station=wgrd_fm src=
showcontrols="1" showdisplay="0" showstatusbar="1" width="640"
height="100" align="middle">
</embed></object>
can someone fix this up, so when i put it on one page, it continually plays thru all the pages on my site? OR how is that done. Let me know Thanks..
<OBJECT ID='Player' HEIGHT='50' WIDTH='240'
classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'
codebase='http://activex.microsoft.com/activex/co ... er/en/nsmp
2inf.cab#Version=6,4,7,1112' standby='Loading Microsoft? Windows? Media
Player components...' type='application/x-oleobject'>
<PARAM NAME='Filename'
value=http://matt.echowave.net/uploads/puddle of mudd - Drift and Die.mp3'>
<PARAM NAME='ShowControls' VALUE='true'>
<PARAM NAME='ShowStatusBar' VALUE='true'>
<PARAM NAME='Autostart' VALUE='true'>
<PARAM NAME='ShowPositionControls' value='False'>
<PARAM NAME='ShowTracker' value='False'>
<EMBED type='application/x-mplayer2'
pluginspage = 'http://www.microsoft.com/Windows/MediaPlayer/'
SRC='http://www.streamaudio.com/listen?station=wgrd_fm'
name='Player'
width='800'
height='100'
AutoStart='false'
showcontrols='' showstatusbar='' showdisplay=''>
</EMBED>
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downlo ... nts/Produc
ts/MediaPlayer/"
filename=http://www.streamaudio.com/listen?station=wgrd_fm src=
showcontrols="1" showdisplay="0" showstatusbar="1" width="640"
height="100" align="middle">
</embed></object>
can someone fix this up, so when i put it on one page, it continually plays thru all the pages on my site? OR how is that done. Let me know Thanks..
[url=http://profile.xfire.com/xerojohny88][img]http://miniprofile.xfire.com/bg/bg/type/0/xerojohny88.png[/img][/url]
--
Dance Dance Revolution: Proving white people dont have rhythm since 1998
--
Dance Dance Revolution: Proving white people dont have rhythm since 1998
Off the top of my head, I would say launch it as a pop-under in a small window, that will allow them to navigate the site in the main window while keeping that page open. If it is buried in the code of a page that can be navigated away from, the player wil stop.
The UNDERGROUND
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
-
- Moderator
- Posts: 2030
- Joined: Fri Jul 18, 2003 8:37 pm
- Location: Esher, Surrey, Land Of Hope And Glory
- Contact:
Start by having a frames page (With a single frame) for your music, then whenever you want to change pages with a hyperlink and clear the music, use...
a target="_parent"
...at the start of the hyperlink code.
This will replace everything that's going on with your linked page.
Turning this upside down: It's a good way also to keep things going if you open everything within the single frame rather than the parent.
a target="_parent"
...at the start of the hyperlink code.
This will replace everything that's going on with your linked page.
Turning this upside down: It's a good way also to keep things going if you open everything within the single frame rather than the parent.
Moderating behind the bushes!
Check out the example javasript here, replace the URL sesame.html in the sample with the name of the file containing your player code.
http://developer.irt.org/script/90.htm
http://developer.irt.org/script/90.htm
The UNDERGROUND
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
Just put it at the bottom of the first page on the site right before the </body > tag will work, here's an example I did...Raptor wrote:Check out the example javasript here, replace the URL sesame.html in the sample with the name of the file containing your player code.
http://developer.irt.org/script/90.htm
<script language=javascript>
function newwin2(selecturl){
win4=window.open(selecturl,"","width=350,height=350,toolbar=no,location=no,menubar=no,status=no,scrollbars=yes,resizable=yes")
}
newwin2('hotlinks.html');
</script>
just change hotlinks.html to whatever the filename is that launches your player.
Be aware tho that popup blockers will probably stop this.....
The UNDERGROUND
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
[url]http://theundergroundtv.com[/url]
Music television for unsigned bands
-
- Moderator
- Posts: 2030
- Joined: Fri Jul 18, 2003 8:37 pm
- Location: Esher, Surrey, Land Of Hope And Glory
- Contact:
If your browser doesn't support Java scripts, or if you have a pop-up blocker enabled, you could use this bit of code:
Now here's a little trick that keeps the music playing without restarting as you're navigating around a website - Create a single framed frames page. The music code goes into the "master" frame, with the content page opening up in the sub-frame. When you click onto a different page, you're opening it up within the master frame, replacing the sub-frame. For this to work properly, you'll need to make sure all your links are set with a "-self" attribute, otherwise (and you may want to do this to stop the music) the master frame will be replaced.
Master frame page (I called the page soundtest.htm) - You could make this your INDEX.HTM page if you like.
Now some code for a sub-frame page (I called this soundtestcontent.htm)
EXAMPLE!
... replacing overshoulder.mid with your music file. Midi files are great because they play almost immediately. You can use MP3s, but it would be good to compress them about as much as possible to keep the file sizes down - The bigger the file, the longer it'll be before it starts playing. Once it loads whenever you go back to that page it'll play immediately, as Internet Explorer saves the file into a cache (Depending on your settings). As soon as you click to another page, the music will go away.<bgsound src="overshoulder.mid" loop="-1">
Now here's a little trick that keeps the music playing without restarting as you're navigating around a website - Create a single framed frames page. The music code goes into the "master" frame, with the content page opening up in the sub-frame. When you click onto a different page, you're opening it up within the master frame, replacing the sub-frame. For this to work properly, you'll need to make sure all your links are set with a "-self" attribute, otherwise (and you may want to do this to stop the music) the master frame will be replaced.
Master frame page (I called the page soundtest.htm) - You could make this your INDEX.HTM page if you like.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Sound Test Page</title>
</head>
<bgsound src="overshoulder.mid" loop="-1">
<frameset rows="*">
<frame name="inner" src="soundtestcontent.htm">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>
Now some code for a sub-frame page (I called this soundtestcontent.htm)
...and finally, here's an example I made earlier so you can see this working for yourself!!!<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Background Music Test</title>
</head>
<body>
<p>Background Music Test!</p>
<p>There should be crappy backgroud music playing!</p>
<p> </p>
<p>When you click <a href="http://www.matthawkins.co.uk">HERE</a> it should
still be playing.</p>
</body>
</html>
EXAMPLE!
Moderating behind the bushes!