|
Scripts and Tools Share your free scripts , tools , icons, fontz, screen savers , etc here. |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Good and Nice JavaScripts
JavaScript library Fahrenheit to Cel. Converter This JavaScript will convert celsius to fahrenheit or fahrenheit to celsius, all you have to do is fill in the prompts and the conversion will appear in an alert box!... detail [IMG]hxxp ://w w w.javascriptbank. com/javascript.images/calculation/fahrenheit-to-cel-converter.jpg[/IMG] Demo: Fahrenheit to Cel. Converter How to setup Step 1: Place HTML below in your BODY section HTML Code:
<SCRIPT LANGUAGE="JavaScript"> // Lav Mir <!-- Begin var themethod= prompt("Please enter celsius to fahrenheit(c to f) or fahrenheit to celsius(f to c)", "Not case sensitive") var thenewmethod= themethod.toLowerCase() function f2c(fahrenheit1) { var answer ; celsius1= 5/9 * (fahrenheit1 - 32) return ; } function c2f(celsius2) { var answer ; var fahrenheit2 ; fahrenheit2= 9/5 * celsius2 + 32 return fahrenheit2 ; } switch (thenewmethod) { case "f to c": var thefahrenheit= prompt("Please enter the degrees in fahrenheit", " ") ; f2c(thefahrenheit); answer= celsius1 ; alert(thefahrenheit + " is " + answer) break; case "c to f": var thecelsius= prompt("Please enter the degrees in celsius", " ") var result= c2f(thecelsius); alert(+ thecelsius + " is " + result) ; break; default: document.write("Please reload the page as there was an error") break; } // End --> </script> <!-- This script downloaded from w w w.JavaScriptBank. com Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com --> JavaScript Make link open in new tab/window - JavaScript World clock - circumference calculator
Quote:
|
#2
|
|||
|
|||
Nice code, very clean
|
#3
|
|||
|
|||
Here is list of things you need to do;in order.
Click on My PC ,disk drive C, open windows folder,next high lite Folder labeled Java,Delete it. |
#4
|
|||
|
|||
Javascript you only need a browser and text editor..
|
#5
|
|||
|
|||
Java-script can be easily used to display RSS feeds on a website,Java-script is a web mark-up language that is recognised and read by the user's browser, but not all the time, depending on the set up of the site. Java-scripts can also be controlled by the host server in displaying RSS feeds on a website,Java Script will allow many page effects Some page effects that Java-Script,Java-Script not only provides access to HTML objects, it also gives access to browser and platform-specific objects like browser plug-ins and here a example of javascript <html>
<body> <script type="text/javascript"> document.write("This is my first JavaScript!"); </script> </body> </html>
__________________
[Only Registered users can see links . Click Here To Register...] |
Bookmarks |
|
|