| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/rescommittee/modules/mod_filterednews/scripts/ |
Upload File : |
/*------------------------------------------------------------------------
# mod_filterednews - Filtered News Module
# ------------------------------------------------------------------------
# author Jesús Vargas Garita
# copyright Copyright (C) 2010 joomlahill.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.joomlahill.com
# Technical Support: Forum - http://www.joomlahill.com/forum
-------------------------------------------------------------------------*/
function FN_Browser(marquee,container,varname,speed){
this.marqueespeed=speed/1000;
this.pauseit=1; //Pause marquee onMousever (0=no. 1=yes)?
this.copyspeed=this.marqueespeed;
this.pausespeed=(this.pauseit==0)? this.copyspeed: 0;
this.delayb4scroll=2000; //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
this.marquee=marquee;
this.container=container;
this.varname=varname;
this.cross_marquee=document.getElementById(this.marquee);
this.actualheight='';
eval("this.cross_marquee.onmouseover=function(){"+this.varname+".pause();}");
eval("this.cross_marquee.onmouseout=function(){"+this.varname+".play();}");
if (window.addEvent) {
eval("window.addEvent('load',function(){"+this.varname+".initialize()})");
} else if (window.addEventListener) {
eval("window.addEventListener('load',function(){"+this.varname+".initialize()}, false)");
} else if (window.attachEvent) {
eval("window.attachEvent('onload',function(){"+this.varname+".initialize()})");
} else if (document.getElementById){
eval("window.onload=function(){"+this.varname+".initialize()}");
}
}
FN_Browser.prototype.pause=function(){
this.copyspeed=this.pausespeed;
}
FN_Browser.prototype.play=function(){
this.copyspeed=this.marqueespeed;
}
FN_Browser.prototype.scrollmarquee=function(){
if (parseInt(this.cross_marquee.style.top)>(this.actualheight*(-1)+8))
this.cross_marquee.style.top=parseInt(this.cross_marquee.style.top)-this.copyspeed+"px";
else
this.cross_marquee.style.top=parseInt(this.marqueeheight)+8+"px";
}
FN_Browser.prototype.initialize=function(){
this.cross_marquee.style.top=0;
this.marqueeheight=document.getElementById(this.container).offsetHeight;
this.actualheight=this.cross_marquee.offsetHeight;
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
this.cross_marquee.style.height=this.marqueeheight+"px";
this.cross_marquee.style.overflow="scroll";
return;
}
setTimeout('lefttime=setInterval("'+this.varname+'.scrollmarquee();",30)',this.delayb4scroll);
}