PHP Classes

File: float_objects.class

Recommend this page to a friend!
  Classes of Daniel Afonso Heisler  >  FloatObjects  >  float_objects.class  >  Download  
File: float_objects.class
Role: ???
Content type: text/plain
Description: class
Class: FloatObjects
Class to create float objects
Author: By
Last change:
Date: 19 years ago
Size: 4,353 bytes
 

Contents

Class file image Download
<?

// ****************************************************** //
// 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";

    }

  }

?>
For more information send a message to info at phpclasses dot org.