Working with variables
Lets learn about document.write()
document.write() can also be used to output calculations
<script type="text/javascript">
var a=10
var b=5
document.write("<h3>" + a + " X " + b + " = " + a*b + "<br><br>")
</script>
<script type="text/javascript">
var width=window.screen.width
var height=window.screen.height
document.write("<h3>screen width= " + width + "<br>screen height= " + height + "<br>Total number of pixels= " + width*height + "</h3><br><br>")
</script>
Basic examples, maybe not too exciting. Note that HTML can be mixed in with it.
Gallery example 1
Gallery example 2 (This is designed for extra functions in Internet Explorer and Firefox but will still work in a simplier way in Oregano 1 and 2)
Simple image resizing example
Page7