-
Trial and error...
ok, got it...ask the guy who wrote the WUHU program..variables listing are based on php language/coding. But the variables can also be called via a java script.
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Current Temp</title>
<script type="text/javascript">
window.onload = function(){
displayTemp(%OutdoorTempDegF%);
};
function displayTemp(ct) {
var infoDIV = document.getElementById("text");
var text = '' " +Math.round(ct)+("°F") + '<br />';
document.write (text)
}
</script>
</head>
</html>
I started writing a java script this evening, I can get it to display what I want just not in the correct font size. it prints in normal text font, but I would like to have it enlarged. any ideas on how to enlarge the text output in Java?
GB
-
Change:
Quote:
Code:
document.write (text)
to:
Code:
document.write ('<span style="font-size: larger;">' + text + '<\/span>');