...

View Full Version : I need javascript code please



jkhalbe
11-08-2004, 11:25 PM
Ok, i dont know javascript, but i need code for this html that is associated with javascript. Can you please help? Like i just said, i know nothing about javascript, but how do i call "javascript: formhandler(form)" to open a new window to play the file? Thank you

<form name="form">
<div align="center">
<select name="site" size=1 onChange="javascript:formHandler(form)">
<option value="">Listen to Music Here While you Browse...
<option value="http://www.jeffhalbe.com/joker.mid">Steve Miller Band - Joker</option>
<option value="http://www.jeffhalbe.com/wonder_wall.mid">Oasis - Wonderwall</option>
<option value="http://www.jeffhalbe.com/slowride.mid">Beastie Boys - Slowride</option>
<option value="http://www.jeffhalbe.com/run_around.mid">Blues Travellers - Run Around</option>
</select>
</form>

fci
11-08-2004, 11:43 PM
you do realize 99% of people find the playing of midi files on a website annoying .. ?

jkhalbe
11-08-2004, 11:53 PM
well that is not of my concern here nor does it answer my question and this website is for personal use and my friends, so out of those people your facts are completely wrong.

fci
11-09-2004, 12:10 AM
ok, well I found these for you:
http://java.sharewith.us/mididropdown.html
http://www.3sign.org/341/409/411/41135340.php
http://wererat.net/tutorials/javascript1.htm
http://javascript.internet.com/user-details/midi-player.html
http://www.javascript-page.com/ranmidi.html
http://www.prowebserv.com/jesus/java.htm
http://home.dmv.com/~les/MIDIPLYR.HTM

I have no idea if any of those work. sorry I can't be of more direct help.

Philip M
11-09-2004, 08:49 AM
you do realize 99% of people find the playing of midi files on a website annoying .. ?

Why do you say that? I have midi flies on most of my pages as background music and no-one has ever commented adversely or complained. Of course the music needs to be good quality (some midis are pretty manky), and in my case the music is selected to be "appropriate", e.g. "Wheels" on the page listing wheels.

The visitor can easily reduce the volume or turn the music off if they wish.
As easilyas they can choose full screen or not, font size "larger" and so forth.

Roy Sinclair
11-09-2004, 05:39 PM
I sit in a cubicle with three co-workers, I have sound enabled on my computer so that I can hear when I receive new mail or have meeting reminders or other things that truly need attention but I have disabled the purely "there for noise" sounds in windows since there's no reason my coworkers need to "hear" when I reboot my machine, logon or logoff, minimize or maximize a windows or other common actions.

I do not appreciate visiting any web site that provides uneccesary noises which could disturb my coworkers and "turning off the sound" is not something I should have to do simply because some web coder thinks background music is a cool thing. I would leave such a site in a hurry simply because it's noxious to me. Does that help you understand why it could be considered a bad thing?

Note however, this is a precept for commercial sites. Personal sites should always have the option of doing "cool" things if the owner likes.

hemebond
11-09-2004, 09:53 PM
I have midi flies on most of my pages as background music and no-one has ever commented adversely or complained.Probably because it's easier just to leave and never come back.

Roy Sinclair
11-09-2004, 10:43 PM
Ease up everyone, he did state that it's a personal site. As his own personal site he should be given a lot more personal freedom to build the site to fit his own desires.

If I hadn't skimmed over his earlier responses and missed the fact that he already said it was a personal site I'd not have written my earlier message.

Philip M
11-10-2004, 09:00 AM
Ease up everyone, he did state that it's a personal site. As his own personal site he should be given a lot more personal freedom to build the site to fit his own desires.



How kind of you to say so!

Roy Sinclair
11-10-2004, 05:10 PM
Did anything that fci gave you help you resolve this?

jbot
11-10-2004, 05:26 PM
I have midi flies on most of my pages as background music. in my case the music is selected to be "appropriate", e.g. "Wheels" on the page listing wheels.

i always put you down as probably having more taste than that. guess i shouldn't judge a poster by the posts they make, eh! ;)




The visitor can easily reduce the volume or turn the music off if they wish.
As easilyas they can choose full screen or not, font size "larger" and so forth.

it's a hassle. also, i might be listening to my own music (ie via a CD in the PC) at the time and therefore have to stop the track just to get rid of any dirge emmanating from your website.

personal or not, sites should not use music on a site unless it comes with some sort of in-built control to stop the soundtrack if required by the user. thus you're better off using Flash to play background music.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum