Inline Script

Sample HTML Markup:

A sample <SCRIPT> tag:<SCRIPT LANGUAGE="JavaScript">
var ct = 0 ;
var mark = 2 ; // when tick >= this, do something
function show_result()
{
var tk = 1 ;
if( document.datasource != null ) tk = document.datasource.tick ;
if( tk >= mark ) { // tick has been incremented, do something
ct++ ; // possibly interesting
ph = document.datasource.phase ;
if( ph == 3 ) {
window.parent.frames[2].document.clear();
var str = document.datasource.InsString ;
window.parent.frames[2].document.write(str);
}
if( ph == 4 ) { document.cookie = document.datasource.InsString ;
// alert("new cookie");
}
mark = tk + 1 ; // this primes for next cycle
}
window.setTimeout("show_result();", 800 ) ;
} // cycles forever

<NOSCRIPT>
This page utilizes JavaScripting for part of its functionality. You must have a JavaScript compatible browser to view this page.

</NOSCRIPT>

</SCRIPT>