﻿/*------------------------------------------------------------------------------
//  Warning : This computer program is protected by copying law and international treaties.
//  unauthorized reproduction program or any portion of it will be prosecuted to the maximum extent possible under law .
//  Forbidding : Redistribution of this code, whole or in part, as source code  or in binary form, alone or 
//  as part of a larger distribution or product, is forbidden for any commercial or for-profit or Non-commercial
//  use without the author's explicit written permission.
//  Author : email:ruihade@hotmail.com , ruihade@gmail.com ,location: taiwan, cellphone:0919910435
//<script language="javascript" src="..\App_Js\masterint.js"></script>
-----------------------------------------------------------------------------*/
var step = 0;
var diff = 0;
var Interval = 2;
var top = null;
var speed = 50; //Millisecs
var dont = false;
function vermoving() {
    try {
        top = verkanbano.offsetHeight + parseFloat(verkanband.style.top);
        verkanband.style.top = step;
        if (top <= 0) {
            step = parseFloat(verkanband.style.posHeight) - Interval;
        }
        else {
            step -= Interval;
        }
    }
    catch (e) {
        if (!dont) {
            alert("RedhotSoft:" + e.message); //只提示一次
            dont = true;
        }
    }

}
//var retval = setInterval("vermoving();", scrollspeed);
function ververkanbanstart() {
    verkanbano.innerHTML = verkanbani.innerHTML
    var mynews = setInterval(vermoving, speed);
    news.onmouseover = function() { clearInterval(mynews) }
    news.onmouseout = function() { mynews = setInterval(vermoving, speed) }
}
function goto(wh) {
 try
 {
     if (wh) {
         window.open(wh);
      }
 }
 catch (e) {alert("RedhotSoft:" + e.message); }
}