please please help with page display problem

  • natrul
  • Novice
  • Novice
  • No Avatar
  • Joined: Apr 11, 2004
  • Posts: 20
  • Status: Offline

Post April 11th, 2004, 7:26 pm

Everything seems to be working fine - except the home button (and a couple of pics) which say "no id" - does anyone know what this means and how I can fix it. Ta
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 11th, 2004, 7:26 pm

  • natrul
  • Novice
  • Novice
  • No Avatar
  • Joined: Apr 11, 2004
  • Posts: 20
  • Status: Offline

Post April 11th, 2004, 7:33 pm

I'm off to bed now but I will change them all in the morning thanks again - I look forward to receiving the proper midi embedding code tomorrow!! thanks again you've cured one headache for now!!!!

Thanks
  • Nunzio390
  • Student
  • Student
  • User avatar
  • Joined: Mar 22, 2004
  • Posts: 70
  • Loc: Tharsis Ridge (Martian lowlands)
  • Status: Offline

Post April 12th, 2004, 5:59 am

Good morning. I hope you had a Happy Easter! :) My niece left too late last night so I couldn't post till now.

Anyway, let's get your MIDI files to play identically across all major browsers. I will only reference the MIDI file on the first (home) page of your site, but you can apply the same code I'm about to show you to any other page at your site that contains MIDI background music.

Before I continue with the coding, I must say this... having sound/music that auto-plays "invisibly" in the background without giving the site visitor the option to control the music is very annoying to say the least and may drive a lot of visitors away from your site. People don't like music "forced" on them and prefer some control over music. Their volume levels may be preset and then suddenly MIDI music changes their volume levels and BLASTS them when they visit your site. They then find there is no way to even control the volume without having to do so manually either with speaker controls or their volume controls for their MIDI sequencer in Windows itself. This is especially true of MIDI files, as opposed to other music formats. Anyway, the site visitor is "stuck" with 1 of 2 choices at that point...

1. Go nuts to try and lower the volume or even mute the sound manually on their end so that they may continue browsing your site
2. Get the hell out of Dodge and run to another site where they are not faced with this annoyance


Anyway, on to the coding...

This is the IE proprietary code for the MIDI background music that you have within your <head></head> tags right now on your home page...

<bgsound src="music/bjorn_lynne-the_faery_woods1.mid" loop="-1">

You must completely remove that from within your <head></head> tags and instead use Windows Media Player object and embed controls (for cross-browser compatability), to allow your MIDI files to play identically across all major browsers (eg: MSIE, Netscape/Mozilla, and Opera browsers).

Now... I will first show you coding similar to what I use at my site, whereby the site visitor has full player controls to start/stop music and also control volume levels. The only difference in the code I'm about to show you is that all music at my site does not auto-start and instead requires user intervention to press the "play" button to start music there. The code I will provide you for your site will cause the music to auto-start (as it now does), but will also provide full player controls for the site visitor.

OK... after removing the IE proprietary code for the MIDI background music that you have within your <head></head> tags, you need to place this code anywhere after your <body> tag, at a point in your page that you want the music player controls to appear...

<object id="MediaPlayer1" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="
280" height="46">
<param name="fileName" value="
http://homepage.ntlworld.com/janet.wilson47/music/bjorn_lynne-the_faery_woods1.mid">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="
http://homepage.ntlworld.com/janet.wilson47/music/bjorn_lynne-the_faery_woods1.mid" name="MediaPlayer1" width=280 height=46 autostart=1 showcontrols=1 volume=-300>
</object>


OK... notice above that some things are repeated twice (bolded in red). This is necessary for cross-browser support. The first thing that is repeated twice are the width and height values of the player controls that the site visitor can both see and use. The second thing that is repeated twice is the full path to the MIDI file that sits at your server. In your case you must use the full path, especially since you are using a URL redirection service to mask the true URL of your site.

Use the exact same code as above where you want a MIDI file to play at any other page at your site, but you must change the 2 instances of the full path to the URL to point specifically to the MIDI file that needs to be played on that particular page.
_______________________________________________________

NOW....

If you prefer to keep the music playing in the background (as you have it now), and do not care about it being annoying to your site visitors, I will reluctantly show you how to apply the same cross-browser code, allowing the music to remain hidden and auto-playing in the background. :(

With reluctance, I now show you that code...

<object id="MediaPlayer1" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="
1" height="1">
<param name="fileName" value="http://homepage.ntlworld.com/janet.wilson47/music/bjorn_lynne-the_faery_woods1.mid">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://homepage.ntlworld.com/janet.wilson47/music/bjorn_lynne-the_faery_woods1.mid" name="MediaPlayer1" width=
1 height=1 autostart=1 showcontrols=1 volume=-300>
</object>


In order to "hide" the music player, all you need to do in the above code is change both the width and height values to 1 pixel only (indicated in red above). This will give the same result that you now have on your pages... a hidden "background" music source, whereby the site visitor has no control over the music, and is faced with an annoyance.

OK. That's all there is to it.

Take care,
Nunzio
  • natrul
  • Novice
  • Novice
  • No Avatar
  • Joined: Apr 11, 2004
  • Posts: 20
  • Status: Offline

Post April 13th, 2004, 4:10 pm

The web page seems to be working fine now - thanks for the code for the music files. I was looking how to turn the music on and off manually so this is a great help - will change it later this week. Thank you again for all your help.
  • Nunzio390
  • Student
  • Student
  • User avatar
  • Joined: Mar 22, 2004
  • Posts: 70
  • Loc: Tharsis Ridge (Martian lowlands)
  • Status: Offline

Post April 14th, 2004, 3:21 am

Yer welcome :)
  • natrul
  • Novice
  • Novice
  • No Avatar
  • Joined: Apr 11, 2004
  • Posts: 20
  • Status: Offline

Post May 12th, 2004, 5:13 pm

A few weeks ago you helped us to solve a few probs with our web page and you also gave us a code for turning music on the site on and off. Is there anyway that we can use an on/off button instead of the media player icon that was included in your code.

One that we found was this one but it doesn't seem to work without opening media player first

<form method="get" action="http://URL.mid"><input type="submit" value="Music On/Off" text="blue"></font>

we would like a button or drop down menu similar to this if its possible.

web site is http://www.destinysmoonwithin.co.uk

any help would be appreciated
  • natrul
  • Novice
  • Novice
  • No Avatar
  • Joined: Apr 11, 2004
  • Posts: 20
  • Status: Offline

Post May 14th, 2004, 7:44 am

can anybody help with above pl
  • Liquescence
  • Proficient
  • Proficient
  • User avatar
  • Joined: May 11, 2004
  • Posts: 353
  • Loc: Queens, NY
  • Status: Offline

Post May 14th, 2004, 6:08 pm

Er... the only thing I can think of right now is using flash...
  • natrul
  • Novice
  • Novice
  • No Avatar
  • Joined: Apr 11, 2004
  • Posts: 20
  • Status: Offline

Post May 20th, 2004, 3:11 pm

i found the below code and it is the button im looking for for my web page. When I insert it into my page and try to use the button I get an error message saying media player can't open this file (the music plays but the message comes when trying to turn it off). Do I need any more code to use this type of button. Is it possible for someone to look at my homepage and see if I can change the current button to the one shown below

<form method="get" action="http://URL.mid"><input type="submit" value="Music On/Off" text="blue"></font>

web address http://www.destinysmoonwithin.co.uk

Post Information

  • Total Posts in this topic: 24 posts
  • Users browsing this forum: No registered users and 91 guests
  • 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 post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.