Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/12/2009, 14:08
Avatar de Superlinux
Superlinux
 
Fecha de Ingreso: octubre-2005
Ubicación: Colombia
Mensajes: 662
Antigüedad: 18 años, 7 meses
Puntos: 1
Pregunta Respuesta: trabajar con ventanas

he intentado con esto pero naa a un

Código PHP:
<head>
<
script type="text/javascript">
    var 
GB_ROOT_DIR "greybox/";
</script>

<script type="text/javascript" src="greybox/AJS.js" mce_src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js" mce_src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js" mce_src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" mce_href="greybox/gb_styles.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
function detectaExplorer() {
 
   var vIE=/*@cc_on function(){
      switch(@_jscript_version){
           case 5.5:return 5.5;
           case 5.6:return 6;
           case 5.7:return 7;
        }
     }()||@*/0;
 
     if (vIE==6) {
            function tuFunction(){
                GB_myShow('Descargue e instale Internet Explorer 8', 'http://www.microsoft.com/latam/windows/internet-explorer/', '600','800');
            }//Fin function tuFunction
            
            function GB_myShow(caption, url, height, width, callback_fn) {
                var options = {
                caption: caption,
                height: height || 500,
                width: width || 500,
                fullscreen: false,
                show_loading: false,
                callback_fn: callback_fn
                }
                var win = new GB_Window(options);
                return win.show(url);
            }//Fin function GB_myShow
     }
     else if (vIE==7) {
            function tuFunction(){
                GB_myShow('Descargue e instale Internet Explorer 8', 'http://www.microsoft.com/latam/windows/internet-explorer/', '600','800');
            }//Fin function tuFunction
            
            function GB_myShow(caption, url, height, width, callback_fn) {
                var options = {
                caption: caption,
                height: height || 500,
                width: width || 500,
                fullscreen: false,
                show_loading: false,
                callback_fn: callback_fn
                }
                var win = new GB_Window(options);
                return win.show(url);
            }//Fin function GB_myShow
     }
     else {
            alert('Ok... Usas Explorer 8 o superior');            
     }//Fin del else
}
</script>
</head>

<body onload="detectaExplorer()">

</body> 

mmmmmmm que sera ...
__________________
"La vida sigue su curso, tú toma parte de ella."