Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/08/2002, 10:45
jotaceerre
 
Fecha de Ingreso: agosto-2002
Mensajes: 22
Antigüedad: 21 años, 8 meses
Puntos: 0
Re: Perdon, pero no tiene nada que ver con Flash

Amigo DragonX, a ver si es que pones esto en dos partes; el Javascript en tu head y lo otro el body. Pasa la voz y haz pruebas...

//1) Esto en el head----------

<script language="javascript" type="text/javascript">
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.w idth)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.w idth)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=no,too lbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->

//2) esto en el body-------

<a href="pop_up" onclick="NewWindow(this.href,'DrangonX','300' ,'300','no','center');return false" onfocus="this.blur()">YourLinkText&lt ;/a>

Suerte ;)