Foros del Web » Programando para Internet » Javascript »

Ayuda Expertos Me urge...

Estas en el tema de Ayuda Expertos Me urge... en el foro de Javascript en Foros del Web. Tengo problemas en la ejecucion de dos scrip de esta pagina web <a href='ir.asp?http://www.nicaraguamagazine.com/ntg2/' target='_blank'>http://www.nicaraguamagazine.com/ntg2/...</a> el problema se da que tanto el scrip de el ...
  #1 (permalink)  
Antiguo 09/09/2002, 15:10
 
Fecha de Ingreso: enero-2002
Ubicación: en mi casa
Mensajes: 59
Antigüedad: 22 años, 3 meses
Puntos: 0
Ayuda Expertos Me urge...


Tengo problemas en la ejecucion de dos scrip de esta pagina web <a href='ir.asp?http://www.nicaraguamagazine.com/ntg2/' target='_blank'>http://www.nicaraguamagazine.com/ntg2/...</a>

el problema se da que tanto el scrip de el menu desplegable asi como el del banners rotativo el cual lo tome de Scrip master no funcionan en netscape.

Por lo que necesito alguien me pueda dar una mano para que pueda servir en Netscape estos dos Scrip.

  #2 (permalink)  
Antiguo 09/09/2002, 15:13
 
Fecha de Ingreso: enero-2002
Ubicación: en mi casa
Mensajes: 59
Antigüedad: 22 años, 3 meses
Puntos: 0
Re: Ayuda Expertos Me urge...

Les dejo el codigo por si alguien pueda dar una mano..

Código:
&lt;SCRIPT language=JavaScript&gt;
&lt;!--

var ns = (document.layers)? true:false;
var ie = (document.all)? true:false;
var visibleMenu = &quot;&quot;;
var visibleThumb = &quot;promoTn&quot;;

function background() {
	
	var bgndNumber = Math.round(Math.random() * 6) + 1;
	if (ie) {
		document.bgnd.src = &quot;/images/&quot; + bgndNumber + &quot;.jpg&quot;;
	} else if(ns) {
		document.bgndImg.document.bgnd.src = &quot;/images/&quot; + bgndNumber + &quot;.jpg&quot;;
	}
}

function evalObj(objName) {

	var objPath = &quot;&quot;;
 	if(ns){
      objPath = eval(&quot;document.&quot; + objName);
   	} else if(ie) {
      objPath = eval(objName + &quot;.style&quot;);
   	}
	return objPath;
	
}

function openMenu(layerID) {

	if (visibleMenu != &quot;&quot;) {
		var visibleLayer = evalObj(visibleMenu);
		visibleLayer.visibility = &quot;hidden&quot;;
	} 

	var theLayer = evalObj(layerID );
	theLayer.visibility = &quot;visible&quot;;
	visibleMenu = layerID;
}

function closeMenu() {

	if (visibleMenu != &quot;&quot;) {
	//	alert(&quot;the open menu is &quot; + visibleMenu);
		var visibleLayer = evalObj(visibleMenu);
		visibleLayer.visibility = &quot;hidden&quot;;
	} 
}

function showThumb(layerID) {

	var visibleLayer = evalObj(visibleThumb);
	visibleLayer.visibility = &quot;hidden&quot;;
	var theLayer = evalObj(layerID );
	theLayer.visibility = &quot;visible&quot;;
	visibleThumb = layerID;
}

function swapImage (image_name, new_image) {
	
	if (ie) {
		var the_image = eval(&quot;document.&quot; + image_name);
	} else if(ns) {
		var the_image = eval(&quot;document.smallTmb.document.&quot; + image_name);
	}		
	the_image.src = new_image;

}

document.onclick = closeMenu;
if (ns) document.captureEvents(Event.CLICK);

//--&gt;
&lt;/SCRIPT&gt;
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:55.