el tema es que funciona bien en IE6, IE7, FFX2 pero en el Firefox 3 nada..
cual puede ser el problema? en el firebug no me tira ningun error con respecto a este scroll.. gracias de antemano.. aqui el codigo..
Código PHP:
var timerID = 0;
function isIE(){ //detectar IE
return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);
}
var IE = isIE();
var gp_height = 0;
function up(){ //lleva a "content" arriba,el div que se va a mover
var marco = parseInt(document.getElementById("marco").style.height); //height del cuadro contenedor
var gp_V = document.getElementById('heightTotal').getAttribute('valor'); //cant de items en la lista (segun cant de items,el height sera mayor..
gp_height = -(gp_V*45)+marco; //gp_V x height de c/cuadro de elemento (negativo x la posicion)
var cont = document.getElementById("getpanels_container");
var contPos = parseInt(cont.style.marginTop); //posicion de "getpanels_container"
if(contPos < gp_height){
para();
}else{
if (IE){
cont.style.marginTop = (contPos - 3); //IE
}else{
cont.style.marginTop = (contPos - 3)+"px;"; //mozilla
}
}
}
function down(){ //lleva a "content" abajo
var cont = document.getElementById("getpanels_container");
var contPos = parseInt(cont.style.marginTop);
if(contPos == 0 || contPos == (0+"px;")){
para();
}else{
if (!IE){
cont.style.marginTop = (contPos + 3)+"px;"; //mozilla
}else{
cont.style.marginTop = (contPos + 3); //IE
}
}
}
function bajar(){
timerID=setInterval(function (){up();},10);
}
function subir(){
timerID=setInterval(function (){down();},10);
}
function para(){
clearInterval(timerID);
}