Difference between revisions of "User talk:SteveBaker"

From Wikiid
Jump to: navigation, search
(+nowiki)
Line 1: Line 1:
 
<nowiki>
 
<nowiki>
//<!-- Hide from browsers that do not support JavaScript
+
<SCRIPT LANGUAGE="JavaScript">
  
function swapPic(page,url,nav,orig,id,title,desc,w,h)
 
{
 
  var Image = url+"/notfound.gif" ;
 
  var Original = url+"/notfound.gif" ;
 
  
  if (document.images)
+
function CF(){
  {
+
        var c = document.convert.Celsius.value;
    Image = document.images[id];
+
 
    Original = Image.parentNode;
+
        document.convert.fahrenheit.value = 9*c/5 + 32;
  }
+
  
  Original.href = page+"?img="+orig+"&url="+url+"&desc="+desc+"&title="+title+"&w="+w+"&h="+h ;
 
  Image.title = desc ;
 
  Image.src = url+"/loading.gif" ;
 
  Image.src = nav ;
 
 
}
 
}
  
//-->
+
function FC(){
 +
 
 +
        var f = document.convert.fahrenheit.value;
 +
 
 +
        document.convert.Celsius.value = (f-32)* 5/9;
 +
 
 +
}
 +
 
 +
 
 +
</SCRIPT>
 
</nowiki>
 
</nowiki>

Revision as of 21:19, 19 November 2007

<SCRIPT LANGUAGE="JavaScript"> function CF(){ var c = document.convert.Celsius.value; document.convert.fahrenheit.value = 9*c/5 + 32; } function FC(){ var f = document.convert.fahrenheit.value; document.convert.Celsius.value = (f-32)* 5/9; } </SCRIPT>