Ver Mensaje Individual
  #6 (permalink)  
Antiguo 17/08/2003, 01:10
BLACK RIVER
Invitado
 
Mensajes: n/a
Puntos:
no tranquilo. en funciones.js tengo funciones XD

por ejemplo... mejor te lo pongo

[php
//************************************************** **********************************************
//********************* FUNCION GENERICA PARA ABRIR VENTANAS *************************************
//************************************************** **********************************************

function ventana(url,ventana,anchura,altura){
//Valores Top y Left para centrar la ventana en la pantalla
LeftPosition = (screen.width) ? (screen.width-anchura)/2 : 0;
TopPosition = (screen.height) ? (screen.height-altura)/2 : 0;

//Cadena con la configuración de la ventana
opciones="height="+altura+",width="+anchura+",top= "+TopPosition+",left="+LeftPosition;
opciones=opciones+",scrollbars=no,resizable=no,alw aysRaised=yes,status=no,toolbar=no";

//Mostramos la nueva ventana
win = window.open(url,ventana,opciones)

//Si no tiene el foco se lo ponemos
if(win.window.focus){
win.window.focus();
}
}

<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=250,height=250,left = 275,top = 175');");
}
</script>

//************************************************** **********************************************
//********************* FUNCION PARA ABRIR VENTANA DE IMAGENES ***********************************
//************************************************** **********************************************

function ventanaimg(url,ventana,anchura,altura){
//Valores Top y Left para centrar la ventana en la pantalla
LeftPosition = (screen.width) ? (screen.width-anchura)/2 : 0;
TopPosition = (screen.height) ? (screen.height-altura)/2 : 0;

//Cadena con la configuración de la ventana
opciones="height="+altura+",width="+anchura+",top= "+TopPosition+",left="+LeftPosition;
opciones=opciones+",scrollbars=yes,resizable=no,al waysRaised=yes,status=no,toolbar=no";

//Mostramos la nueva ventana
win = window.open(url,ventana,opciones)

//Si no tiene el foco se lo ponemos
if(win.window.focus){
win.window.focus();
}
}

<!--rollover-->
<script language="JavaScript1.2">

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)", 50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=30
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpa city)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

</script>

//************************************************** **********************************************
//********************* FUNCIONES PARA CAMBIAR PROPS DE OBJETOS DE FORM **************************
//************************************************** **********************************************
function dentro(objeto){
document.all(window.event.srcElement.name).style.b ackground="#F4F4F4";
}

function fuera(objeto){
document.all(window.event.srcElement.name).style.b ackground="#FFFFFF";
}

//************************************************** **********************************************
//********************* FUNCION PARA SALTAR A PAGINA DE BLOQUEO **********************************
//************************************************** **********************************************
function bloqueo(){
location.replace("mantenimiento.php");
}

//************************************************** **********************************************
//******************************* FUNCION PARA ENVIAR ENCUESTAS **********************************
//************************************************** **********************************************
function enviarencuesta(){
document.forms.frmEncuesta.submit();return false;
}[/php]