Dreamweaver

Estoy haciendo una pagina web con dreamweaver y quiero hacer un hipervinculo popup desde una imagen, se que es muy facil pero lo e buscado y no lo encuentro

1 Respuesta

Respuesta
1
Le pones el target en _blank
no quiero que se me ponga todo la pagina, si no un trozo sabes?
Pones esto entre el <head> y </head>
<script language="javascript">
<!--
/* Escript para meter el popup centrado by Ricci
/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
y en el link pones:
javascript:NewWindow('http://www.google.com','name','310','400','yes');
no me sale :( seguro k no hay ninguna forma mas facil sin hacerlo con codigo con el dreamweaver??
Es una de las forma más fácil...
Copia y pega esto en un html en blanco. (En el código)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
<title>Prueba popup</title>
</head>
<body>
<a href="javascript:NewWindow('http://www.google.com','name','310','400','yes');">Abrir google en una ventana popup
</a>
</body>
</html>

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas