Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/12/2006, 17:04
viktoria
 
Fecha de Ingreso: septiembre-2006
Mensajes: 349
Antigüedad: 17 años, 7 meses
Puntos: 0
Re: creacion de botones desdeuna db mysql

Bueno pregunto de otro modo.
Nesesito generar los enlaces en forma de buttons en el menu.
Si lo hago mediante textHTML asi
a=new LoadVars();
a.load("load_menu.php");
a.onLoad=function(){
a.news_loaded=news_loaded.htmlText;
var i=0;
var j=10;
var total=a["total"];
while(i<total){
news_loaded.htmlText+=
"<b>"+ i +"</b>"+
"<a href='promo.php?id_promo="+
a["id_promo"+i]+"'><u>"+
a["name_promo"+i]+
"</u></a><br>";
i++;

}
}
me genera los enlaces, pero yo nesesito luego usar propiedades y metodos de los botonones como on rollover y no se si lo puedo aplicar a enlace en un campo de texto
Por eso motivo intetento hacer un attach de botones
asi
while(i<total){
b=a["id_promo"+i];
attachMovie("but", b, this.getNextHighestDepth());
b._x=j;
b._y=j;
i++;
}
}
Pero solo me hace attach de un boton.
Pero el valor de total es ahora 5.