Foros del Web » Programando para Internet » Javascript »

problemas con IE 7

Estas en el tema de problemas con IE 7 en el foro de Javascript en Foros del Web. que tal Maestros: tengo un problema al querer ver una pagina con IE 7 ya que en las versiones anteriores no habia ningun problema. el ...
  #1 (permalink)  
Antiguo 10/01/2007, 16:10
Avatar de payo22  
Fecha de Ingreso: noviembre-2002
Ubicación: México
Mensajes: 839
Antigüedad: 21 años, 5 meses
Puntos: 1
Pregunta problemas con IE 7

que tal Maestros:

tengo un problema al querer ver una pagina con IE 7 ya que en las versiones anteriores no habia ningun problema.

el problema es con un menu desplegable ya que no despliega los menus, el ejemplo lo descargue de un sitio y el codigo es el siguiente:
Código PHP:
<script language="JavaScript1.2" src="coolmenus3.js">
/*****************************************************************************
Copyright (c) 2001 Thomas Brattli (www.bratta.com)

eXperience DHTML coolMenus - Get it at www.bratta.com
Version 3.02
This script can be used freely as long as all copyright messages are
intact.
******************************************************************************/
</script>
<script>
/*****************************************************************************
Default browsercheck - Leave this one
******************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
        this.ver=navigator.appVersion; this.agent=navigator.userAgent
        this.dom=document.getElementById?1:0
        this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
        this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
        this.ie4=(document.all && !this.dom)?1:0;
        this.ie=this.ie4||this.ie5||this.ie6
        this.mac=this.agent.indexOf("Mac")>-1
        this.opera5=this.agent.indexOf("Opera 5")>-1
        this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
        this.ns4=(document.layers && !this.dom)?1:0;
        this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
        return this
}
var bw=new lib_bwcheck() //Making browsercheck object

var mDebugging=2 //General debugging variable. Set to 0 for no debugging, 1 for alerts or 2 for status debugging.

oCMenu=new makeCoolMenu("oCMenu") //Making the menu object. Argument: menuname
oCMenu.useframes=0 //Do you want to use the menus as coolframemenu or not? (in frames or not) - Value: 0 || 1
oCMenu.frame="frmMain" //The name of your main frame (where the menus should appear). Leave empty if you're not using frames - Value: "main_frame_name"

oCMenu.useclick=0 //If you want the menu to be activated and deactivated onclick only set this to 1. - Value: 0 || 1

/*If you set this to 1 you will get a "hand" cursor when moving over the links in NS4.
NOTE: This does not apply to the submenus if the menu is used in frames due some mayor problems with NS4*/
oCMenu.useNS4links=1

if you want padding add it here.
oCMenu.NS4padding=2

//If you have select boxes close to your menu the menu will check for that and hide them if they are in the way of the menu.
//This feature does unfortunatly not work in NS4!
oCMenu.checkselect=0

/*If you choose to have this code inside a linked js, or if your using frames it's important to set these variables.
This will help you get your links to link to the right place even if your files are in different folders.
The offlineUrl variable is the actual path to the directory where you js file are locally.
This is just so you can test it without uploading. Remember to start it with file:/// and only use slashes, no backward slashes!
Also remember to end with a slash                                                                                                 */
oCMenu.offlineUrl="file:///C|/Inetpub/wwwroot/dhtmlcentral/" //Value: "path_to_menu_file_offline/"
//The onlineUrl variable is the online path to your script. Place in the full path to where your js file is. Remember to end with a slash.
oCMenu.onlineUrl="http://www.dhtmlcentral.com/coolmenus/examples/withoutframes/" //Value: "path_to_menu_file_online/"

oCMenu.pagecheck=1 //Do you want the menu to check whether any of the subitems are out of the bouderies of the page and move them in again (this is not perfect but it hould work) - Value: 0 || 1
oCMenu.checkscroll=0 //Do you want the menu to check whether the page have scrolled or not? For frames you should always set this to 1. You can set this to 2 if you want this feature only on explorer since netscape doesn't support the window.onscroll this will make netscape slower (only if not using frames) - Value: 0 || 1 || 2
oCMenu.resizecheck=1 //Do you want the page to reload if it's resized (This should be on or the menu will crash in Netscape4) - Value: 0 || 1
oCMenu.wait=500 //How long to wait before hiding the menu on mouseout. Netscape 6 is a lot slower then Explorer, so to be sure that it works good enough there you should not have this lower then 500 - Value: milliseconds

//Background bar properties
oCMenu.usebar=1 //If you want to use a background-bar for the top items set this on - Value: 1 || 0
oCMenu.barcolor="#0066cc" //The color of the background bar - Value: "color"
oCMenu.barwidth="70%" //tamaño del marc
oCMenu.barheight="menu" //The height of the background bar. Set this to "menu" if you want it to be the same height as the menu. (this will change to match the border if you have one) - Value: px || "%" || "menu"
oCMenu.barx=185 //posicion en la parte izquierda en pixeles
oCMenu.bary=90 //The top position of the bar Set this to "menu" if you want it be the same as the top position of the menu. (this will change to match the border if you have one)
  - Value: px || "%" || "menu"
oCMenu.barinheritborder=0 //Set this to 1 if you want the bar to have the same border as the top menus - Value: 0 || 1

//Placement properties
oCMenu.rows=1 //This controls whether the top items is supposed to be laid out in rows or columns. Set to 0 for columns and 1 for row - Value 0 || 1
oCMenu.fromleft=20 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCMenu.fromtop=90 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCMenu.pxbetween=10 //espacio entre campos del menu

oCMenu.menuplacement=0


oCMenu.menuplacement="center"

oCMenu.level[0].offsetY=-1 //The Y offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCMenu.level[0].NS4font="tahoma,arial,helvetica"
oCMenu.level[0].NS4fontSize="1"

/*New: Added animation features that can be controlled on each level.*/
oCMenu.level[0].clip=1 //Set this to 1 if you want the submenus of this level to "slide" open in a animated clip effect. - Value: 0 || 1
oCMenu.level[0].clippx=15 //If you have clip spesified you can set how many pixels it will clip each timer in here to control the speed of the animation. - Value: px
oCMenu.level[0].cliptim=50 //This is the speed of the timer for the clip effect. Play with this and the clippx to get the desired speed for the clip effect (be carefull though and try and keep this value as high or possible or you can get problems with NS4). - Value: milliseconds
//Filters - This can be used to get some very nice effect like fade, slide, stars and so on. EXPLORER5.5+ ONLY - If you set this to a value it will override the clip on the suppo
rted browsers
oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" //VALUE: 0 || "filter specs"



/oCMenu.level[0].align="bottom" //Value: "top" || "bottom" || "left" || "right"

oCMenu.level[1].width=oCMenu.level[0].width-2oCMenu.level[1].height=22
oCMenu.level[1].style="padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[1].align="bottom"
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+40
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1
oCMenu.level[1].bordercolor="#006699"

oCMenu.level[2].width=150
oCMenu.level[2].height=20
oCMenu.level[2].bgcoloroff="#0099ff"
oCMenu.level[2].bgcoloron="#0066cc"
oCMenu.level[2].style="padding:2px; font-family:tahoma,arial,helvetica; font-size:9px; font-weight:bold"
oCMenu.level[2].align="bottom"
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1
oCMenu.level[2].bordercolor="#006699"
oCMenu.level[2].NS4font="tahoma,arial,helvetica"
oCMenu.level[2].NS4fontSize="1"
oCMenu.level[2].clip=1
oCMenu.level[2].clippx=20
oCMenu.level[2].cliptim=50



oCMenu.makeMenu('top0','','&nbsp;&nbsp;Página Principal','pagina.php','')
oCMenu.makeMenu('top1','','&nbsp;Consulta','','')
        oCMenu.makeMenu('sub00','top1','Estaciones','estaciones.php')
        oCMenu.makeMenu('sub01','top1','Datos de Lluvia','lluvia.php')
        oCMenu.makeMenu('sub02','top1','Graficas','')
                oCMenu.makeMenu('sub001','sub02','- Contornos por Estado','','',160,0)
                    oCMenu.makeMenu('sub0010','sub001','Chihuahua','chihuahua.php')
                    oCMenu.makeMenu('sub0011','sub001','Sonora','sonora.php')
                    oCMenu.makeMenu('sub0012','sub001','Sinaloa','sinaloa.php')
                    oCMenu.makeMenu('sub0013','sub001','Morelos','morelos.php')
                oCMenu.makeMenu('sub002','sub02','- Series de Tiempo','','',160,0)
                    oCMenu.makeMenu('sub0020','sub002','Chihuahua','mapa_chihuahua.php')
                    oCMenu.makeMenu('sub0021','sub002','Sonora','mapa_sonora.php')
                    oCMenu.makeMenu('sub0022','sub002','Sinaloa','mapa_sinaloa.php')
                    oCMenu.makeMenu('sub0023','sub002','Morelos','mapa_morelos.php')

oCMenu.makeMenu('top2','','&nbsp;Captura Datos','')
        oCMenu.makeMenu('sub10','top2','Estacion Ãºnica','registro.php')
        oCMenu.makeMenu('sub11','top2','Grupo estaciones','registro2.php')

//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()
</script> 
no se si haya una solucion para poder ver esto en el IE 7

o que consejos me dan?

gracias por su apoyo.
  #2 (permalink)  
Antiguo 11/01/2007, 10:37
Avatar de payo22  
Fecha de Ingreso: noviembre-2002
Ubicación: México
Mensajes: 839
Antigüedad: 21 años, 5 meses
Puntos: 1
Re: problemas con IE 7

no se si en esta version de IE cambie la sintaxis del javascript

o se tenga que configurar algo en las herramientas del navegador?

he investigado pero no encuentro nada

gracias
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 05:51.