Bienvenido: ( Identificarse | Registrarse )      
Foros de Trucos Windows
 
Closed TopicStart new topicStart Poll

Outline · [ Estándar ] · Lineal+

> necesito un codigo javascript

siriguilla
post Feb 20 2008, 09:47 AM
Publicado: #1


Maestro
*****

Grupo: Members
Mensajes: 275
Registrado: 11-March 07
Miembro nº: 195.287



hola necesito un codigo javascript que cuando pinche un enlace me habra una pagina nueva y que este maximizada urgente gracias


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Javi47008
post Feb 20 2008, 10:12 AM
Publicado: #2


Maestro Secreto
Group Icon

Grupo: Miembros Vitalicios
Mensajes: 813
Registrado: 1-October 04
Miembro nº: 22.469



Te he consegido este código, pero maximizado del todo no lo he visto pero modificando donde pone
CODE
'400','400'
por un tamaño mayor se abrirá mas grande.

CODE


<html>

<head>
<title>Abre ventana emergente desde un vínculo</title>


<p align="center"><b>Abre ventana emergente desde un vínculo</b>
<script LANGUAGE="JavaScript">

<!-- Original:  Eric King (eric_andrew_king[arroba]hotmail.com) -->
<!-- Web Site:  http://redrival.com/eak/ -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->
</script>
</head>

<body>

<!-- Put the URL inside the link's rel="nofollow" href="..." section, then carefully -->

<!-- change 'name' to a name for your popup window.  The last three -->
<!-- items represent the popup window width, height, and scrollbars. --></p>
<p align="center">
<a rel="nofollow" href="http://www.yahoo.com/" onclick="NewWindow(this.rel="nofollow" href,'name','400','400','yes');return false;">
Pulsa aquí para abrir Yahoo.com en una pantalla popup (emergente)</a> </p>
<p></p>
<center>
<p>&nbsp;</p>
</center>
<p></p>

</body>

</html>



Espero que te sirva, por lo menos de apaño.


User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
Closed TopicTopic OptionsStart new topic

Collapse

> Topicos similares

necesito ayuda, posible troyano biscione 72 7 Aug 20 2008, 11:15 PM
By: Caito
Necesito programa d4v1djo53 70 5 Aug 19 2008, 05:16 PM
By: d4v1djo53
Necesito programa d4v1djo53 0 0 Aug 19 2008, 03:42 PM
By: 888
Necesito ayuda con el Windows Media Player jonse 73 3 Aug 14 2008, 02:18 PM
By: patricioirrazabal
Problema con el codigo 39 lasangre77 104 2 Aug 14 2008, 03:40 AM
By: lasangre77

Google
Web www.trucoswindows.net