Java script

Discussion in 'Tech Talk' started by Chicky, Feb 13, 2004.

  1. Chicky

    Chicky
    [OP]
    New Member

    Joined:
    Sep 19, 2003
    Messages:
    97
    Likes Received:
    0
    Location:
    Moncton
    Is there anyone that understands java script or know of any good tutorial? cause im lost.
    :confused:
     
  2. Foster

    Toolboard

    Joined:
    Jun 5, 2003
    Messages:
    2,098
    Likes Received:
    0
    Location:
    In between places
    whats the problem?
     
  3. Chicky

    Chicky
    [OP]
    New Member

    Joined:
    Sep 19, 2003
    Messages:
    97
    Likes Received:
    0
    Location:
    Moncton
    I have to write a script that converts different temparutes and stuff like tjat my book sucks and im clueless on what do do or where to start. I kow my html and all that good stuff but the teacherjust expects us to know everything without him totally explaining averything. so ive been looking at my screen for like an hours now and all I have is my basic html with no java script:(
     
  4. Foster

    Toolboard

    Joined:
    Jun 5, 2003
    Messages:
    2,098
    Likes Received:
    0
    Location:
    In between places
    give me more details...like what do you mean converts different temperatures?
     
  5. Chicky

    Chicky
    [OP]
    New Member

    Joined:
    Sep 19, 2003
    Messages:
    97
    Likes Received:
    0
    Location:
    Moncton
    I have to take a tempature and convert it to celsius or ferenheit or kelvin so I have to program it so whe I type 10 or witch ever number celsius it'll convert it to either ferenheit or kelvin...and the other way around.
     
  6. Foster

    Toolboard

    Joined:
    Jun 5, 2003
    Messages:
    2,098
    Likes Received:
    0
    Location:
    In between places
    ahhhh, I gotcha!!

    I think I did an assignment like that 2 year of university...
     
  7. Chicky

    Chicky
    [OP]
    New Member

    Joined:
    Sep 19, 2003
    Messages:
    97
    Likes Received:
    0
    Location:
    Moncton
    he finally gave us the script and I understand it and everything but I wouldnt be able to do it on my own, it sucks, he just totally nagged at me cause i was trying to find tutorials online .
    im glad i only have 3 more month of this.
     
  8. Foster

    Toolboard

    Joined:
    Jun 5, 2003
    Messages:
    2,098
    Likes Received:
    0
    Location:
    In between places
    so its all good now?

    DAMN YOU

    I am almost done working on it...Wasting my employers time!!!
     
  9. Chicky

    Chicky
    [OP]
    New Member

    Joined:
    Sep 19, 2003
    Messages:
    97
    Likes Received:
    0
    Location:
    Moncton
    haha Im sorry, I still need tutorial that are worth looking at !!!
    I found wicked ones for photoshop and flash but dunno about java script!
     
  10. Foster

    Toolboard

    Joined:
    Jun 5, 2003
    Messages:
    2,098
    Likes Received:
    0
    Location:
    In between places
    thats because Java Script is like a mix between java and html...its rarely used...

    what is this for anyways? high school, university??
     
  11. Chicky

    Chicky
    [OP]
    New Member

    Joined:
    Sep 19, 2003
    Messages:
    97
    Likes Received:
    0
    Location:
    Moncton
    Im in college taking webmester...I know I probably wont find a good job in that feild so I applied at UdeM in phsychology
     
  12. Boots

    www.reality-check.ca

    Joined:
    Jun 3, 2003
    Messages:
    73,276
    Likes Received:
    3,585
    Location:
    Halifax
    Code:
    
    <!-- TWO STEPS TO INSTALL TEMPERATURE CONVERTER:
    
      1.  Copy the coding into the HEAD of your HTML document
      2.  Add the last code into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
    
    <HEAD>
    
    <SCRIPT LANGUAGE="JavaScript">
    
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    <!-- Original:  Bobby S. -->
    <!-- Web Site:  http://bobbyschultz.tripod.com -->
    
    <!-- Begin
    function show()
    {
    var far = document.degin.far.value
    var deg = (far - 32) * 5/9
    document.degin.cel.value = deg
    }
    
    function showt()
    {
    var cels = document.itt.celt.value
    var fin = (cels * 9/5)+32
    document.itt.fartw.value = fin
    }
    //  End -->
    </script>
    
    </HEAD>
    
    <!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
    
    <BODY>
    
    <div align="center">
    <h3><u>Fahrenheit to Celsius</u></h3>
    <form name="degin">
    Fahrenheit: <input type="text" name="far" size="5">
    <input type="button" value="Convert to Celsius -->" onClick="show()">
     <input type="text" name="cel" size="15">
    </form>
    
    <form name="itt">
    <h3><u>Celsius to Fahrenheit</u></h3>
    Celsius: <input type="text" name="celt" size="5">
    <input type="button" value="Convert to Fahrenheit -->" onClick="showt()">
     <input type="text" name="fartw" size="15">
    </form>
    </div>
    
    
    <p><center>
    <font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
    by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
    </center><p>
    
    <!-- Script Size:  1.59 KB -->
     
  13. Chicky

    Chicky
    [OP]
    New Member

    Joined:
    Sep 19, 2003
    Messages:
    97
    Likes Received:
    0
    Location:
    Moncton
    thank you !
    :P
     
  14. Boots

    www.reality-check.ca

    Joined:
    Jun 3, 2003
    Messages:
    73,276
    Likes Received:
    3,585
    Location:
    Halifax
    Thank Mr. Google.. I only put 10 keystrokes into the mix.. he did the rest :)
     
  15. Chicky

    Chicky
    [OP]
    New Member

    Joined:
    Sep 19, 2003
    Messages:
    97
    Likes Received:
    0
    Location:
    Moncton
    haha yeah but im looking for some good ones, I dont want feel like looking and looking and find nothign thats worth surfing thats why I asked if you guy had any that you think are worth looking at..but yeah googles is awsome for finding stuff....
     
  16. Boots

    www.reality-check.ca

    Joined:
    Jun 3, 2003
    Messages:
    73,276
    Likes Received:
    3,585
    Location:
    Halifax
    Thats how I teach myself most programming languages.. by looking at other source code :)
     

Share This Page