Computer problems,Computer help
*AX SOFT>>>Programming & Design

Here in Javascript version. Anyone can change it to vbscript?


<html>
<head>
<script>
function findSmallest()
{var value1 = parseInt(document.forms[0].text1.value)
var value2 = parseInt(document.forms[0].text2.value)
var value3 = parseInt(document.forms[0].text3.value)
if(value1<value2 && value1<value3)
{if(value1%2==0)
{alert(value1 + " is Smallest number and Even number") }
else {alert(value1 + " is Smallest number and Odd number")}}
else if(value2<value3)
{if(value2%2==0)
{ alert(value2 + " is Smallest number and Even number")}
else { alert(value2 + " is Smallest number and Odd number") } }
else { if(value3%2==0) { alert(value3 + " is Smallest number and Even number")}
else { alert(value3 + " is Smallest number and Odd number") } } }
</script>
</head>
<body>
<form>
Enter a Number: 聽 <input name="text1"> <br>
Enter a Number: 聽 <input name="text2"> <br>
Enter a Number: 聽 <input name="text3"> <br>
<input type="button" value="Enter" onclick="findSmallest()">
</form>
</body>
</html>

vbscript isn't really a good choice as it is server side while javascript is client side. You would need a big rework of this and turn it into a form.

So you'd end up with a clunky form that you have to submit instead of something that happened instantly.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • How do I make fractions on the?

    Go to insert, object (make sure create new) tab is clicked, then scroll down to microsoft equation. if it's not there, then u might have to install that part off of the cd

    ...
  • Computers....?

    go to start then contol panel. select internet options , now a second screen will appear look all the way down to the bottom one and select delete all "web Browseing history pass-word etc.&quo...

  • Images on my website can only be viewed in Safari.....why!?

    I'll assume that you actually did upload the image file as well as the HTML, since you're following the tutorial. Check the HTML code for errors. Does your image tag look like this? .....

  • Can someone please tell me what a background url is? thanks a ton! 8)?

    Background URL refers to CSS styling, either inline, embedded or external css file, to pull an image to be used as a background within the container used. For a complete page bg image and using th...

  • How is it possible to make all the letters except for the first in every word be small caps in CSS?

    Um, I'm not sure what small caps is, did a quick google and hope this works. Say the class for your text is .texxxt .texxxt {font-variant:small-caps;} .texxxt:first-letter {font-variant...

  • How do I make eyes bigger in Gimp?

    Start here to learn some basic skills first ...

  • Whant to become graphic gesigner/ gaming designer?

    A good start would be to do game programming in flash. Make something simple with Flash, mainly using actionscript, and only time line when you really need to. A simple game, either think of one, o...

  • Visual Basic - Change Machine?

    At least try to write the code. If you get stuck, or get an error you can't figure out, a lot of us will help you. 'Help' is the operative word.

    ...
  •  

    Categories--Copyright/IP Policy--Contact Webmaster