Ver Mensaje Individual
  #4 (permalink)  
Antiguo 31/03/2007, 02:11
Avatar de kaninox
kaninox
 
Fecha de Ingreso: septiembre-2005
Ubicación: In my House
Mensajes: 3.597
Antigüedad: 18 años, 8 meses
Puntos: 49
Re: Anular boton derecho en un Popup

seguro probe tu script y a mi me funciona yo lo decia por el pop up no por el html mira tu codigo quedaria haci

Código:
<script language="javascript">

var ventana
var cont=0
var titulopordefecto = "Titulo" //texto por defecto a mostrar en la barra de título en caso de omitir el argumento titulo

function afoto(cual,titulo)
{
if(cont==1){ventana.close();ventana=null}
if(titulo==null){titulo=titulopordefecto}
ventana=window.open('','ventana','resizable=yes,sc rollbars=no')
ventana.document.write('<html><head><title>' + titulo + '</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0" oncontextmenu="return false"><img src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height)">')
ventana.document.close()
cont++
}
function redimensionar(ancho,alto)
{
ventana.resizeTo(ancho+12,alto+28)
ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2) //
}
</script>
a mi me funciona muy bien lo probe ;)
__________________
Gokuh Salvo al mundo. PUNTO!!!!