PhL
asked on
Playing a MIDI file without seing MediaPlayer
When a MIDI file is selected as background you don't see MediaPlayer; however when you Click on a MIDI file it is played with MediaPlayer appearing.
How can you prevent this ?
How can you prevent this ?
ASKER
Can you explain a little more...
Let say with an example !
Thanks !
Let say with an example !
Thanks !
I have tried this too some time ago... unsuccessfully though! But by now I have learned that midi or wav files are not really such a great hit on a site, especially when you dont give the visitor the option to turn it off. I use background sound am continously reminded by visitors to play them only once or not at all... :-(
This is not ment to be a critisism but rather a little part of my own experience creating wep pages. Edi
This is not ment to be a critisism but rather a little part of my own experience creating wep pages. Edi
you can use an onMouseDown action. Place your code and I'll place in the onMouseDown code if you need it.
Or you can use a small console with an <EMBED> tag.
Or you can use a small console with an <EMBED> tag.
ASKER
1. I know quite nothing about HTML so could you please give an example ?
2. I made a very low volume background with only accoustic guitar
3. The other MIDI are my compositions so I would like other people to hear them...
2. I made a very low volume background with only accoustic guitar
3. The other MIDI are my compositions so I would like other people to hear them...
OK, here is a mouseOver event using an image as the href. To use text, just replace the <img src> tag with text.:
This is for Mouse click:
Place this within the <head> tags:
<SCRIPT>
function playSnd(sndName) {
snd1.src = sndName;
}
</SCRIPT>
<BGSOUND id=snd1>
Now place this where your image is:
<A onMouseDown="playSnd('file .midi')">< img src="image.gif" height="80" width="80" border="0"></a>
Give it a try, and let me know how it goes.
This is for Mouse click:
Place this within the <head> tags:
<SCRIPT>
function playSnd(sndName) {
snd1.src = sndName;
}
</SCRIPT>
<BGSOUND id=snd1>
Now place this where your image is:
<A onMouseDown="playSnd('file
Give it a try, and let me know how it goes.
ASKER
It seems OK !
Some help still needed...
1. Front Page Express doesn't allow to type (or save) what you say so I have to go to Notepad to try !
2. I replace your image by a text.
3. How to get a hand with finger up instead of the carret (or another symbol like a note) when I go upon the text ?
4. How can I enable only Left Mouse Button ?
Some help still needed...
1. Front Page Express doesn't allow to type (or save) what you say so I have to go to Notepad to try !
2. I replace your image by a text.
3. How to get a hand with finger up instead of the carret (or another symbol like a note) when I go upon the text ?
4. How can I enable only Left Mouse Button ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Once more a great answer !
1. What do I need to do before using a copyrighted JavaScript ?
2. The script did noy prevent the play of a song when you Right Click...
3. Will all this work on any browser or only ie5 ?
1. What do I need to do before using a copyrighted JavaScript ?
2. The script did noy prevent the play of a song when you Right Click...
3. Will all this work on any browser or only ie5 ?
to use a copyroghted Javascrupt, just leave the header in there that mentions the writer of it.
The reason the file played on right click was because the javascript is looking for a mouse click. The xcript I sent you will only disable the right click menu function. you cannot completely disable the mouseclick or else the midi file wont play.
It will work in both browsers.
Easy enough.
M
The reason the file played on right click was because the javascript is looking for a mouse click. The xcript I sent you will only disable the right click menu function. you cannot completely disable the mouseclick or else the midi file wont play.
It will work in both browsers.
Easy enough.
M
ASKER
You mean ie4 and ie5 or
MS and Netscape ?
MS and Netscape ?
IE4, IE5, Netscape4
robert.