Muchas gracias Naahuel por tu super codigo java...GRACIASSSS!!!!!!!...
yo tambien he conseguido hacer algo...y me funciona...que es lo que mas me sorprende.    
Código HTML:
Ver originalfunction rotar_imagen(){
  var tiempo = 5000;//tiempo en milisegundos
  var arrImagenes = ['xxxxxxx.jpg','xxxxxxx.png', 'xxxxxxx.png'];
  var arrhref = ['http://www.xxxxxxx.com','http://www.xxxxxxx.com', 'http://www.xxxxxxx.com']
  
  _img = document.getElementById('rotativo');
  _a = document.getElementById('rotativos');
  
  //cargar la 1er imagen
  _img.src = arrImagenes[0];
  _a.href = arrhref[0];
  var i=1;
  var y=1;
  setInterval(function(){
    _img.src = arrImagenes[i];
    _a.href = arrhref[y];
    i = (i == arrImagenes.length-1)? 0 : (i+1);
    y = (y == arrhref.length-1)? 0 : (y+1); 
  }, tiempo);
}
 
-------------------------
 
<a id="rotativos" target="_blank"><img id="rotativo"  /></a> 
  
Ya os digo...puede que haya algo que no se necesite en el código ya que no tengo mucha idea de JAVA...pero me funciona..JEJEJE. 
MUCHAS GRACIAS POR TU COLABORACIÓN NAAHUEL!!!!! 


