can 1 of u guys that can reads spanish change the spanish to english in this 4 me plz
just the comments


stop();
//loadMovie("chat.swf",1000);
// para mostrar texto con carácteres especiales (acentos, etc..)
System.useCodepage = true;
//
// **********************************************************************
//     RESIZE ALTURA CONTENIDO
// **********************************************************************

allowResize = "true";
Stage.scaleMode = "noScale";
// Alinear el Stage al centro
Stage.align = "T";

function resize() {
if (allowResize == "true") {
h1 = Math.ceil(contenido._y + contenido._height + bottom._height)+10;
h2 = ventanas_varias._y + ventanas_varias._height + 10;
v1_medio._height = contenido._height - 10;
bottom._y = contenido._y + contenido._height -10;
if (h1>h2) {
h = h1;
getURL("_javascript_:setFlashHeight('mother',"+h+");");
} else {
h = h2;
getURL("_javascript_:setFlashHeight('mother',"+h+");");
}
}
};

// **********************************************************************
//     AMPLIAR EL CAMPO DE TEXTO AL CONTENIDO
// **********************************************************************

contenido.autoSize = "Left";

// **********************************************************************
//                           CARGA DEL ARCHIVO CSS
// **********************************************************************

var styleObj = new TextField.StyleSheet();
styleObj.load("style.css");
styleObj. {
if (success) {
contenido.styleSheet = styleObj;
comentarios_mc.textArea_mc.styleSheet = styleObj;
}
};

// **********************************************************************
//                 REPRESENTACION DEL MENU DE LAS CATEGORIAS
// **********************************************************************

cargaCat();
botonMas._visible = false;
botonMenos._visible = false;
function cargaCat() {
// distancia entre botones, el ALTO (_height) del clip a duplicar.
distancia = categorias_mc._height;
// coordenada inicial del primer botón, en la posición del escenario.
yinicial = categorias_mc._y;
// Crear el objeto LoadVars y cargar el archivo
Categorias = new LoadVars();
Categorias.load("php/categorias.php");
Categorias. {
if (suceso) {
for (var i = 1; i<=this.cantidad; i++) {
duplicateMovieClip("categorias_mc", "categorias_mc"+i, i);
setProperty("categorias_mc"+i, _y, yinicial);
// mandamos las variables a los botones
set("categorias_mc"+i+".titulo.htmlText", this["categoria"+i]);
set("categorias_mc"+i+".id", this["id"+i]);
yinicial = yinicial + distancia;
}
} else {
// si no carga el archivo, realizar la siguiente acción:
getURL("_javascript_:alert('ERROR: No se ha cargado correctamente la página')");
}
coord_y = categorias_sup._y ;
altura = categorias_sup._height;
menu_inf._y = coord_y + altura + (distancia * this.cantidad);
// posición menús inferiores al de Categorias
ventanas_varias._y = menu_inf._y + menu_inf._height - 25;
// ocultar el clip original
categorias_mc._visible = false;
// comprueba altura navegador
resize();
// envia variable URL y llama a la función 'ListCat'
tmp = new Date();
URL1 = "php/indexArticulos1.php?fecha=" +tmp.getTime();
ListCat();
}
};
// *******************************************************************
//               FUNCION CARGAR CONTENIDO INICIAL
// *******************************************************************

// función para cargar el contenido
function ListCat() {
// para subir el scroll arriba
getURL("_javascript_:window.scroll(0,0)");
// Para cargar en blanco.
contenido.text = "Cargando contenido...";
// Carga de texto
noticias1 = new LoadVars();
noticias1.load(URL1);
noticias1. {
if (cargo) {
contenido.htmlText = this.articulos;
texto_cat.htmlText = this.texto_cat;
resize();
// variables para realizar la paginación de resultados.
cantidadTotal.htmlText = this["cantidadTotal"];
paginaActual = this["actual"];
totalPaginas = this["totalpages"];
paginas.htmlText = "Páginas "+paginaActual+"/"+totalPaginas +" total";
// botones avance y retroceso
pageNum_rsListadoCat = this["pageNum_rsListadoCat"];
totalRows_rsListadoCat = this["totalRows_rsListadoCat"];
retroceso = Number(pageNum_rsListadoCat)-Number(2);
cat_id = this["cat_id"];
direccion = this["direccion"];
titulo = this["titulo"];
cat_id.htmlText = this["cat_id"];
botonAvance = direccion+"?pageNum_rsListadoCat="+pageNum_rsListadoCat+"&totalRows_rsListadoCat="+totalRows_rsListadoCat+"&cat_id="+cat_id+"&titulo="+titulo;
botonRetroceso = direccion+"?pageNum_rsListadoCat="+retroceso+"&totalRows_rsListadoCat="+totalRows_rsListadoCat+"&cat_id="+cat_id+"&titulo="+titulo;
// condiciones para ocultar botones avance y retroceso.
botonMas._visible = true;
botonMenos._visible = true;
if (totalPaginas == paginaActual) {
botonMas._visible = false;
}
if (pageNum_rsListadoCat == "1") {
botonMenos._visible = false;
}
if (totalPaginas<"1") {
botonMas._visible = false;
contenido.htmlText ="No se han encontrado resultados";
}
} else {
contenido.htmlText = "Error: No se ha podido conectar con el servidor.<br>Inténtelo más tarde.";
}
}
};

// Botón subir arriba
bottom.subir. {
getURL("_javascript_:window.scroll(0,0)");
};

// ***********************************************
// REPRESENTACION COMENTARIOS
// ***********************************************

// Ocultar ventana comentarios
comentarios_mc._visible = false;
// Subir de nivel para una correcta visualización
comentarios_mc.swapDepths(1000);

function verDetalles(id){
tmp = new Date();
comentarios_mc._visible = true;
URL3 = "php/leer_comentarios.php?articulo_id=" + id + "&fecha=" + tmp.getTime();
detallesComent();
getURL("_javascript_:window.scroll(0,0)");
}
function detallesComent() {
tmp = new Date();
// borrar contenido anterior (si lo hay, claro)
comentarios_mc.textArea_mc.htmlText = "...cargando contenido...";
comentarios_mc.total.htmlText = "";
//
detalle = new LoadVars();
detalle.load(URL3); // URL es la dirección del archivo 'php/detalleArticulos.php'
detalle. {
if (succes) {
// enviar contenido nuevo
comentarios_mc.textArea_mc.htmlText = this["comentario"];
comentarios_mc.total.htmlText = this["total"];
comentarios_mc.articulo_id = this["articulo_id"];
} else {
// si no carga el archivo, mostrar el siguiente texto:
comentarios_mc.textArea_mc.htmlText = "Error al cargar los comentarios. Inténtelo más tarde.";
}
}
}

// ***********************************************
// REPRESENTACION ENLACES FAVORITOS
// ***********************************************

favoritos();

//Función para cargar el combo box de datos manualmente
function favoritos() {
var favor:Array = [    
{label:'after-hours.org', data:"http://www.after-hours.org"},
{label:'Robotua.com', data:"http://www.robotua.com"},
{label:'Xtranet.es', data:"http://www.xtranet.es"},
{label:'carlosrovira.com', data:"http://www.carlosrovira.com"},
{label:'design-nation.net', data:"http://www.design-nation.net/es"},
{label:'toto-multimedia.com', data:"http://www.toto-multimedia.com/"},
{label:'startdrag.com', data:"http://www.startdrag.com"}];
//introducir los datos en el combo box
ventanas_varias.box1.dataProvider = favor;
}
// acciones del botón de Ir al ENLACES FAVORITOS.
ventanas_varias.enlace.> getURL(ventanas_varias.box1.getSelectedItem().data, "_blank");
}

// *************************************************************
//             ACCIONES APARTADO BUSQUEDA
// *************************************************************

ventanas_varias.submit.> if( ventanas_varias.texto1 != null ){
URL1 = "php/busquedaArticulos.php?titulo=" + ventanas_varias.texto1;
ListCat();
page = "php/busquedaArticulos.php?titulo=" + ventanas_varias.texto1;
// borrar campo de texto
ventanas_varias.texto1 = "";
// ACCIONES BOTON BACK
URL2= "php/3.php?dato=" + URL1;
getURL(URL2 , "datos");
}
else {
getURL("_javascript_:alert('ERROR: Introduce un campo de búsqueda.')");
}
};

// **************************************************************
//     FUNCIONES PARA CARGAR LOS DETALLES DESDE EL CONTENIDO
// **************************************************************

function detalles(id){
URL1 = "php/detalleArticulos.php?articulo_id=" + id;
ListCat();
// ACCIONES BOTON BACK
URL2= "php/3.php?dato=" + URL1;
getURL(URL2 , "datos");
page = URL1;
};

// **************************************************************
//     FUNCION PARA LISTAR POR CATEGORIAS DESDE EL CONTENIDO
// **************************************************************

function categorias(id){
URL1 = "php/listadoArticulos.php?cat_id=" + id;
ListCat();
// ACCIONES BOTON BACK
URL2= "php/1.php?cat_id=" + id;
getURL(URL2 , "datos");
page = URL1;
}
//******************************

// enlaces a Activas.net y motion4graphics.com
bottom.hosting. () {
  getURL("http://www.activas.net", _blank);

};
bottom.motion. () {
  getURL("http://www.motion4graphics.com", _blank);

};
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to