Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Derek G
HTML Programming Maximum number with window prompt?
This is what I have so far which prompts the user three numbers and then displays the max of the numbers and all three of them.
<head>
<title>Maximum Number</title>
</head>
<body>
<center><h2>Maximum Number</h2>
<script language="JavaScript" type="text/javascript">
function Max(num1, num2,num3)
{
var largest=arguments[num1, num2, num3]
for (i=0; i<arguments.length; i++)
{
if ((num1>num2)&&(num1>num3))
largest=num1
else if((num2>num1)&&(num2>num3))
largest=num2
else
largest=num3
}
return(largest)
}
document.write("</br>")
var num1=prompt("Enter the first number: ", "")
var num2=prompt("Enter the second number: ", "")
var num3=prompt("Enter the third number: ", "")
var max= Max(num1, num2, num3)
document.write("You entered: ", num1, ", ", num2, ", ", num3)
document.write("</br>")
document.write("The Maximum number is: ", max)
</script></center>
</body>
</html>
Now the last thing I was wanting to do is change it from three prompts to just one prompt. How could I prompt to type in three numbers in one prompt and get the max from those three numbers.? Any help would be greatly appreciated. Thank you in advance!
1 AnswerProgramming & Design9 years agoHooking up amplifier to factory Head unit?
I have a 4 channel amplifier, 2 rear speakers, 2 front speakers and 1 sub woofer. I want to hook all this up to the factory head unit. I know where to hook the remote wire, ground, and 12volt. My question is where do i hook the speakers up? Do I run the 2 front and back speakers directly to the amp bridged and then hook up the one sub? Do you have to use the RCA inputs and outputs on the amp for it to work?
I was also reading about LOC (line out converter). To use those, is all i need to do is tap into the speaker wires running from the speakers themselves to the head unit?
1 AnswerCar Audio1 decade agoBurn long movies to one DVD?
I have a couple of movies that I want to burn onto DVD's. The movies are longer than 120 min which is the normal DVD disc size. Is there any way to burn a movie long than 120 minutes onto a DVD?
2 AnswersOther - Electronics1 decade agoChanged OS from vista to XP.?
I just changed my operating system on my laptop from vista to xp. Now a bunch of my devices are not working. How do i go about installing drivers for these. Couple of them are called Base System Device, Coprocessor, Ethernet Controller, PCI Device. and so on.
2 AnswersSoftware1 decade agoI have two tv screens on the back of my seats in my car. All of a sudden one of them is upside down?
I did not mess with anything so i dont have any idea why it happened. If anyone could help that would be great. Thank you.
2 AnswersCar Audio1 decade agoTurn off Service Message for 2003 Mercedes CLK 430.?
I have a 2003 Mercedes CLK 430 and i dont know how to turn off the service message. I got the service checked but the guy did not know how to turn off the message. Can someone tell me how to do it? Also, someone has told me that it is in the manual. Can anyone tell me where I can view the manual online or can send it to my email?
Thank you very much for your help.
1 AnswerMercedes-Benz1 decade agoMy Car Audio Sound System isn't hitting as hard as it used too?
My 2 subwoofers used to hit really hard and then one day i turn it on and it hits like half as loud as it used too. I checked all of the wires and they are all hooked up right. I also checked the settings on the headunit and the amp. Everything is the same. Please help.
5 AnswersCar Audio1 decade agoI bought a broken item?
I recently bought a phone from a guy off of craigslist.org. He told me everything was working fine on the phone. When i went to meet him i put my sim card in the phone that he had previously told me was an at&t phone. It worked for the 2 minutes that i was there. Later when i returned home that phone had no service. So i called at&t and they told me the phone is not an at&t phone and nor will it be able to work with at&t. The phone is the LG Ke970 Shine. It is a european phone... It will only work for t-mobile in the US, not at&t. I have called and emailed him within the last week and a half. I haven't received any contact back. What can I do?
4 AnswersLaw Enforcement & Police1 decade agoFemale Parakeet laying eggs by herself?
Hi, i have one single female parakeet in a pretty small cage. There are 2 sticks that are wedged between the cage pretty high up. I think she may have layed the eggs when she was sitting up on those sticks and when she had the eggs they dropped and cracked on the ground. Could she have anymore eggs anytime soon? How will i know? If she does have more eggs can they hatch? If she has more eggs do i need to get her a nest?
Please help
6 AnswersBirds1 decade agoHow many times can a Parakeet Lay eggs?
My parakeet just laid 2 eggs but when i found them they had holes in them. Can i be expecting any more eggs anytime soon?
3 AnswersBirds1 decade ago