Subversion Repositories personal-webbase

Rev

Rev 3 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. require 'includes/main.inc.php';
  4.  
  5. ?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  6.  
  7. <html>
  8. <head>
  9.    <title>ViaThinkSoft Personal WebBase</title>
  10.    <link href="style.css.php" rel="stylesheet" type="text/css">
  11. </head>
  12.  
  13. <body class="dark">
  14.  
  15. <?php
  16.  
  17. if ((isset($mitscrolling)) && ($mitscrolling == 'yes'))
  18. {
  19.  
  20. ?><script language="JavaScript" type="text/javascript">
  21. <!--
  22.  
  23. var SCR_OBJ = [];
  24. function GLOBAL_SCROLL( o, i )
  25. {
  26.         SCR_OBJ[o].scroll( i );
  27. }
  28.  
  29. function scroll(objElement)
  30. {
  31.         this.obj = objElement;
  32.         this.timerID = -1;
  33.         SCR_OBJ[SCR_OBJ.length] = this; // SCR_OBJ.push(this);
  34.         this.objID = SCR_OBJ.length -1;
  35.  
  36.         this.scroll = function( iOff ) {with(this){
  37.                 if( obj.scrollBy )
  38.                 {
  39.                         obj.scrollBy(0,iOff);
  40.                         return;
  41.                 }
  42.                 if( iOff < 0 )
  43.                 {
  44.                         var i = obj.scrollTop + iOff;
  45.  
  46.                         if( i<0 ){
  47.                                 obj.scrollTop = 0;
  48.                                 stop();
  49.                         }
  50.                         else{
  51.                                 obj.scrollTop = i;
  52.                         }
  53.                 }
  54.                 else
  55.                 {
  56.                         if( obj.scrollTop + iOff < obj.scrollHeight )
  57.                         {
  58.                                 obj.scrollTop += iOff;
  59.                         }
  60.                         else
  61.                         {
  62.                                 obj.scrollTop = obj.scrollHeight;
  63.                                 stop();
  64.                         }
  65.                 }
  66.         }};
  67.  
  68.         this.stop = function() {with(this){
  69.                 if (timerID!=-1)
  70.                 {
  71.                         window.clearInterval(timerID);
  72.                 }
  73.         }};
  74.  
  75.         this.start = function( iOff ){ with(this){
  76.                 stop();
  77.                 timerID = window.setInterval( "GLOBAL_SCROLL("+objID+","+iOff+")", 25 );
  78.         }};
  79. }
  80.  
  81. var srollObject = null;
  82. var objElement = parent.frames.Navigation;
  83. srollObject = new scroll(objElement);
  84.  
  85. // -->
  86. </script>
  87.  
  88. <table cellspacing="0" cellpadding="0" border="0" width="180">
  89. <tr>
  90. <td align="left" valign="top"><img src="design/spacer.gif" width="1" height="2" alt=""><br><a href="#" onmouseover="srollObject.start(-4);" onmouseout="srollObject.stop();"><img src="<?php echo $design_ordner; ?>rauf.gif" border="0" alt=""></a></td>
  91. <td align="center" valign="top"><span style="font-size:0.85em">Men&uuml;scrollen</span></td>
  92. <td align="right" valign="top"><img src="design/spacer.gif" width="1" height="2" alt=""><br><a href="#" onmouseover="srollObject.start(4);" onmouseout="srollObject.stop();"><img src="<?php echo $design_ordner; ?>runter.gif" border="0" alt=""></a></td>
  93. </tr>
  94. </table>
  95.  
  96. <?php
  97.  
  98. }
  99.  
  100. ?>
  101.  
  102. </body>
  103.  
  104. </html>
  105.