<?
// ****************************************************** //
// class ScrollSpam //
// { //
// function ScrollSpam() //
// function CreateLine() //
// function BreackLine() // // function AddSpam() //
// function FinishSpam() //
// } //
// Daniel Afonso Heisler //
// daniel@univates.br //
// CPD - UNIVATES //
// ****************************************************** //
class ScrollSpam
{
function ScrollSpam()
{
echo"<SCRIPT Language=\"Javascript\">\n".
" var menuwidth=20\n".
" var offsetleft=480\n".
" var offsettop=20\n\n".
" var ns4=document.layers?1:0\n".
" var ie4=document.all?1:0\n".
" var ns6=document.getElementById&&!document.all?1:0\n\n".
" function makeStatic()\n".
" {\n".
" if (ie4)\n".
" {\n".
" object1.style.pixelTop=document.body.scrollTop+offsettop\n".
" }\n".
" else if (ns6)\n".
" {\n".
" document.getElementById(\"object1\").style.top=window.pageYOffset+offsettop\n".
" }\n".
" else if (ns4)\n".
" {\n".
" eval(document.object1.top=eval(window.pageYOffset+offsettop));\n".
" }\n".
" setTimeout(\"makeStatic()\",0);\n".
" }\n\n";
echo" function menu3()\n".
" {\n".
" if (ns6||ie4||ns4)\n".
" makeStatic()\n".
" }\n\n".
" window.onload=menu3\n";
echo" if (ie4||ns6)\n".
" {\n".
" document.write('<span ALIGN=\"CENTER\" ID=\"object1\" STYLE=\"Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;\"><TABLE BORDER=\"1\" width=\"'+menuwidth+'\" CELLPADDING=\"0\" CELLSPACING=\"0\" BORDERCOLOR=\"black\" bgcolor=\"white\">')\n".
" }\n".
" else if (ns4)\n".
" {\n".
" document.write('<LAYER top=\"20\" name=\"object1\" left=\"'+offsetleft+'\" BGCOLOR=black><TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"1\"><TR><TD><TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" width=\"'+menuwidth+'\">')\n".
" }\n".
"</SCRIPT>\n";
}
function CreateLine()
{
echo"<SCRIPT Language=\"Javascript\">\n".
" if (ie4||ns6)\n".
" {\n".
" document.write('<TR>')\n".
" }\n".
" else if (ns4)\n".
" {\n".
" document.write('<TR>')\n".
" }\n".
"</SCRIPT>\n";
}
function BreackLine()
{
echo"<SCRIPT Language=\"Javascript\">\n".
" if (ie4||ns6)\n".
" {\n".
" document.write('</TR>')\n".
" }\n".
" else if (ns4)\n".
" {\n".
" document.write('</TR>')\n".
" }\n".
"</SCRIPT>\n";
}
function AddSpam($value,$colspan=null)
{
echo"<SCRIPT Language=\"Javascript\">\n".
" if (ie4||ns6||ns4)\n".
" document.write('<TD width=\"*\" colspan=\"$colspan\" BGCOLOR=\"#3399FF\" BORDERCOLORDARK=\"#99CCFF\" BORDERCOLORLIGHT=\"#003399\"><P ALIGN=CENTER><FONT SIZE=\"4\" FACE=ARIAL>$value</FONT></TD>')\n".
"</SCRIPT>\n";
}
function FinishSpam()
{
echo"<SCRIPT Language=\"Javascript\">\n".
" if (ie4||ns6)\n".
" {\n".
" document.write('</TABLE></span>')\n".
" }\n".
" else if (ns4)\n".
" {\n".
" document.write('</TABLE></TD></TR></TABLE></LAYER>')\n".
" }\n\n".
"</SCRIPT>\n";
}
}
?>
|