First dynamic content




window.status


The WWW address line at the top can be made dynamic by inputting variables into the window.status DOM

On Intenet explorer the window.status is at the bottom of the window, same for Oregano 2, but on Oregano 2 it disappears when the document is complete so it cant be used.


<script type="text/javascript">

var scroll ="Welcome to my scrolly demo, you can add content up here! "
function scrollmessage()
{
scroll = scroll.substring(1, scroll.length) + scroll.substring(0, 1)
window.status = scroll
setTimeout("scrollmessage()", 500)
}
scrollmessage()

</script>
Note first example of a function scrollmessage() also using setTimeout

Dont worry too much about the programming, the important bit is to show something dynamic running on Oregano





Page8