b0VIM 6.3      9`5H  f  root                                    hydra.unife.it                          /portale/www/prova/homepage/rssticker.js                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            3210    #"! U                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 tp           T                            =       U                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ad          T           O            f              x  W  5    
              c  a  U  S  Q  >  <  ;        8  7  
  
  [
  
  	  	  2	  #	    p  S                <                  |  z  x  w  0      r  q  @        8               vvvvvvvvvvvvvvvvvvvvvvvvvvvar instanceOfTicker=this } return document.getElementById(this.tickerid).innerHTML="<b>Il sistema &egrave; in attesa delle nuove notizie</b><br />"+this.ajaxobj.responseText if(xmldata.getElementsByTagName("item").length==0){ //if no <item> elements found in returned content var xmldata=this.ajaxobj.responseXML if (this.ajaxobj.status==200){ //if request was successful if (this.ajaxobj.readyState == 4){ //if request of file completed rssticker_ajax.prototype.initialize=function(){   // ------------------------------------------------------------------- // -Gets contents of RSS content and parse it using JavaScript DOM methods  // initialize()- Initialize ticker method. // -------------------------------------------------------------------  } } this.ajaxobj.send(null) this.ajaxobj.open('GET', lastrssbridgeurl+"?"+parameters, true) this.ajaxobj.onreadystatechange=function(){instanceOfTicker.initialize()} var parameters="id="+encodeURIComponent(this.RSS_id)+"&cachetime="+this.cachetime+"&bustcache="+new Date().getTime() var instanceOfTicker=this if (this.ajaxobj){ rssticker_ajax.prototype.getAjaxcontent=function(){  // ------------------------------------------------------------------- // getAjaxcontent()- Makes asynchronous GET request to "bridge.php" with the supplied parameters // -------------------------------------------------------------------  } this.getAjaxcontent() this.mozopacityisdefined=(window.getComputedStyle(document.getElementById(this.tickerid), "").getPropertyValue("-moz-opacity")==1)? 0 : 1 if (window.getComputedStyle) //detect if moz-opacity is defined in external CSS for specified class document.write('<div id="'+divId+'" class="'+divClass+'" >Caricamento delle notizie in corso...</div>') this.ajaxobj=createAjaxObj() this.title=[], this.link=[], this.description=[], this.pubdate=[] //Arrays to hold each component of an RSS item this.opacitysetting=0.2 //Opacity value when reset. Internal use. this.pointer=0 this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over ticker (and pause it if it is) this.logicswitch=(typeof logicswitch!="undefined")? logicswitch : "" this.delay=delay //Delay between msg change, in miliseconds. this.tickerid=divId //ID of ticker div to display information this.cachetime=cachetime //Time to cache feed, in minutes. 0=no cache. this.RSS_id=RSS_id //Array key indicating which RSS feed to display function rssticker_ajax(RSS_id, cachetime, divId, divClass, delay, logicswitch){  // ------------------------------------------------------------------- // rssticker_ajax(RSS_id, cachetime, divId, divClass, delay, optionallogicswitch) // Main RSS Ticker Object function // -------------------------------------------------------------------  } return httprequest } } catch (e){} } httprequest=new ActiveXObject("Microsoft.XMLHTTP"); try{ catch (e){ }  httprequest=new ActiveXObject("Msxml2.XMLHTTP"); try { else if (window.ActiveXObject){ // if IE } httprequest.overrideMimeType('text/xml') if (httprequest.overrideMimeType) httprequest=new XMLHttpRequest() if (window.XMLHttpRequest){ // if Mozilla, Safari etc var httprequest=false function createAjaxObj(){  ////////////No need to edit beyond here//////////////  //var lastrssbridgeurl="http://"+window.location.hostname+"/lastrss/bridge.php" //Absolute URL syntax. Uncomment below line if you wish to use an absolute reference:  var lastrssbridgeurl="homepage/lastrss/bridge.php" //Relative URL syntax:  // ------------------------------------------------------------------- // Author: Dynamic Drive (http://www.dynamicdrive.com) // Advanced RSS Ticker (Ajax invocation) core file // ------------------------------------------------------------------- ad         =         p  C      3      t                y  2  1        Y  '  
  
  (
  	  	  i	  	      G            R        w  B  +        t  f  "             l  >  !                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     } clearInterval(this[timerid]) if (fadetype=="up" && this.opacitysetting>=1) this.opacitysetting+=0.2 if (fadetype=="up") } tickerDiv.style.MozOpacity=this.opacitysetting else if (typeof tickerDiv.style.MozOpacity!="undefined" && this.mozopacityisdefined){ } tickerDiv.style.filter="alpha(opacity="+this.opacitysetting*100+")" else //IE 5.5 tickerDiv.filters[0].opacity=this.opacitysetting*100 if (typeof tickerDiv.filters[0].opacity=="number") //IE6+ if (tickerDiv.filters && tickerDiv.filters[0]){ this.opacitysetting=0.2 if (fadetype=="reset") var tickerDiv=document.getElementById(this.tickerid) rssticker_ajax.prototype.fadetransition=function(fadetype, timerid){  // ------------------------------------------------------------------- // fadetransition()- cross browser fade method for IE5.5+ and Mozilla/Firefox // -------------------------------------------------------------------  } } setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay) //update container every second this.pointer=(this.pointer<this.feeditems.length-1)? this.pointer+1 : 0 this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT tickerDiv.innerHTML=tickercontent this.fadetransition("reset") //FADE EFFECT- RESET OPACITY var tickercontent=linktitle+feeddate+description //STRING FOR FEED CONTENTS  if (this.logicswitch.indexOf("date")==-1) feeddate="" if (this.logicswitch.indexOf("description")==-1) description="" var feeddate='<div class="rssdate">'+this.pubdate[this.pointer]+'</div>' var description='<div class="rssdescription">'+this.description[this.pointer]+'</div>' var linktitle='<div class="rsstitle"><a href="'+this.link[this.pointer]+'">'+this.title[this.pointer]+'</a></div>' var tickerDiv=document.getElementById(this.tickerid) else{ //else, construct item, show and rotate it! setTimeout(function(){instanceOfTicker.rotatemsg()}, 100) if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing (pause it) var instanceOfTicker=this rssticker_ajax.prototype.rotatemsg=function(){  // ------------------------------------------------------------------- // rotatemsg()- Rotate through RSS messages and displays them // -------------------------------------------------------------------  } } } this.rotatemsg() document.getElementById(this.tickerid).onmouseout=function(){instanceOfTicker.mouseoverBol=0} document.getElementById(this.tickerid).onmouseover=function(){instanceOfTicker.mouseoverBol=1} } this.pubdate[i]=""//this.feeditems[i].getElementsByTagName("pubDate")[0].firstChild.nodeValue this.description[i]=""//this.feeditems[i].getElementsByTagName("description")[0].firstChild.nodeValue this.link[i]=this.feeditems[i].getElementsByTagName("link")[0].firstChild.nodeValue this.title[i]=this.feeditems[i].getElementsByTagName("title")[0].firstChild.nodeValue for (var i=0; i<this.feeditems.length; i++){ //Cycle through RSS XML object and store each peice of an item inside a corresponding array this.feeditems=xmldata.getElementsByTagName("item") 
