T'Chat

Entrez sur le tchat de PcInfo-Web:

Pseudonyme:

Dernières news :

Derniers tutoriels :

Derniers articles :

Sondage :

[RESOLU]{javascript} Pop-Up Goto page: 1, 2, 3  >  
Post new topic   Reply to topic    PcInfo-Web Forum Index -> Forum Informatique -> Internet - Navigation -Programmation - Scripts - Developpement FAQFAQ | SearchSearch(forum) | MemberlistMemberlist | UsergroupsUsergroups
Previous topic :: Next topic  
Author Message
-Sh4D0w-
Modérateur
Modérateur

Offline
Joined: 27 Sep 2007 Posts: 723
PostPosted: 24/04/2008, 23:47    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

Salut a tous , bon voila j'ai un petit problème

Code: Sélectionner - Agrandir
 <html>
<body>

<script language="Javascript">
window.open('www.google.fr','Google', 'width=500,height=500');
</script>


</body>
</html>


ne marche que si je le met sur mon FTP , et je voudrais qu'il fonctionne quand on clique deçu , ensuite j'aimerais savoir pourquoi cela n'envoi pas vers google et me dis que ma page web est introuvable ...

________________________________________________
http://img134.imageshack.us/img134/341/userbarpcinfowebvd6.png


Last edited by -Sh4D0w- on 30/04/2008, 14:50; edited 3 times in total
Back to top
Zarnergun
Modo général
Modo général

Offline
Joined: 24 Feb 2007 Posts: 2,589
Sexe: masculin
PostPosted: 25/04/2008, 07:26    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

Code: Sélectionner - Agrandir
<head>
<SCRIPT language="javascript">
   function popup(p) {
       window.open(p,"name-popup","menubar=no, status=no, scrollbars=no, menubar=no, width=500, height=500");
   }
</SCRIPT>
</head>
<body onload="popup(google.fr)>


Un truc du genre, bon la je dois yaller ^^

________________________________________________
http://zammik.free.fr/rss/
MY
Back to top
-Sh4D0w-
Modérateur
Modérateur

Offline
Joined: 27 Sep 2007 Posts: 723
PostPosted: 25/04/2008, 10:19    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

je voulais le faire en simple :p j'ai vu aussi ce code là lool enfin on va essayé

________________________________________________
http://img134.imageshack.us/img134/341/userbarpcinfowebvd6.png
Back to top
-Sh4D0w-
Modérateur
Modérateur

Offline
Joined: 27 Sep 2007 Posts: 723
PostPosted: 25/04/2008, 10:28    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

marche pas :p

________________________________________________
http://img134.imageshack.us/img134/341/userbarpcinfowebvd6.png
Back to top
Zarnergun
Modo général
Modo général

Offline
Joined: 24 Feb 2007 Posts: 2,589
Sexe: masculin
PostPosted: 25/04/2008, 12:54    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

Bizarre car c'est comme ca que je fais moi si je veux faire un pop, euh bah on verra ce soir alors si je peux me co car j'ai pas mal de truc a faire d'important !

________________________________________________
http://zammik.free.fr/rss/
MY
Back to top
-Sh4D0w-
Modérateur
Modérateur

Offline
Joined: 27 Sep 2007 Posts: 723
PostPosted: 25/04/2008, 15:14    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

ok de meme pour moi Smile mais je pense etre la ce soir

________________________________________________
http://img134.imageshack.us/img134/341/userbarpcinfowebvd6.png
Back to top
Zarnergun
Modo général
Modo général

Offline
Joined: 24 Feb 2007 Posts: 2,589
Sexe: masculin
PostPosted: 25/04/2008, 19:15    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

Excuse moi j'ai écris trop vite, alors je viens de tester un petit coup j'avais pas mis les '' ni le " fermant

Code: Sélectionner - Agrandir
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sh4 popup polueur</title>
<SCRIPT language="javascript">
   function popup(p) {
       window.open(p,"name-popup","menubar=no, status=no, scrollbars=no, menubar=no, width=500, height=500");
   }
</SCRIPT>
</head>

<body onload="popup('http://google.fr/')">
</body>
</html>

________________________________________________
http://zammik.free.fr/rss/
MY
Back to top
Troll
Administrateur
Administrateur

Offline
Joined: 24 Mar 2006 Posts: 6,742
Localisation: http://www.pcinfo-web.com
Sexe: masculin
PostPosted: 26/04/2008, 00:27    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

...et si tu veux que ça se fasse lorsque tu cliques sur un lien :

Code: Sélectionner - Agrandir

<a href="#" title="GOoOooOOOooOogle !"onclick="popup("http://www.google.fr");" >Cliquez-ici</a>

________________________________________________
|| Merci de mettre des titres explicites !!! ||
Vous voulez remercier l'équipe du forum ? Participez ! Exprimez-vous ! Revenez et parlez de ce que vous voulez ! Wink
Back to top
Visit poster’s website
-Sh4D0w-
Modérateur
Modérateur

Offline
Joined: 27 Sep 2007 Posts: 723
PostPosted: 26/04/2008, 09:53    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

oui sa j'ai vu . mais Zam m'a aider hier soir , et enfaite j'ai fais une boulette j'avais pis une alerte et j'ai pas vu que j'avais 2 fois

<SCRIPT language="javascript">

________________________________________________
http://img134.imageshack.us/img134/341/userbarpcinfowebvd6.png
Back to top
Troll
Administrateur
Administrateur

Offline
Joined: 24 Mar 2006 Posts: 6,742
Localisation: http://www.pcinfo-web.com
Sexe: masculin
PostPosted: 26/04/2008, 09:58    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

D'ailleurs en passant, ceci n'est pas valide :

Code: Sélectionner - Agrandir

<SCRIPT language="javascript" >
....
</SCRIPT>


Pour deux raisons :

1°) Le W3C spécifie que les noms et attributs de balises s'écrivent maintenant en minuscule (pas très important).
2°) L'attribut "language" n'a jamais existé. Il faut spécifier le type MIME comme ceci :

Code: Sélectionner - Agrandir

<script type="text/javascript" >
....
</script>


Voilà Wink

________________________________________________
|| Merci de mettre des titres explicites !!! ||
Vous voulez remercier l'équipe du forum ? Participez ! Exprimez-vous ! Revenez et parlez de ce que vous voulez ! Wink
Back to top
Visit poster’s website
-Sh4D0w-
Modérateur
Modérateur

Offline
Joined: 27 Sep 2007 Posts: 723
PostPosted: 26/04/2008, 18:41    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

bizarre j'ai vu

** Exemple :

<html>
<body>
<script language="Javascript">

et sur un autre la syntaxe que tu donne mais j'ai toujours vu <script language="Javascript">

________________________________________________
http://img134.imageshack.us/img134/341/userbarpcinfowebvd6.png
Back to top
-Sh4D0w-
Modérateur
Modérateur

Offline
Joined: 27 Sep 2007 Posts: 723
PostPosted: 26/04/2008, 22:31    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

juste un truc tu as un moyen pour que la page fonctionne meme sans etre sur un FTP ? si je la met en HTA ?

________________________________________________
http://img134.imageshack.us/img134/341/userbarpcinfowebvd6.png
Back to top
Zarnergun
Modo général
Modo général

Offline
Joined: 24 Feb 2007 Posts: 2,589
Sexe: masculin
PostPosted: 26/04/2008, 22:54    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

HTA => Application htm
ou
HTA => Hypertension artériel

Very Happy

... Aucune idée
En tout cas pour les standarts troll a raison mais j'avais pas envie de me faire chier !

________________________________________________
http://zammik.free.fr/rss/
MY
Back to top
-Sh4D0w-
Modérateur
Modérateur

Offline
Joined: 27 Sep 2007 Posts: 723
PostPosted: 26/04/2008, 23:09    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

HTA => Application htm

________________________________________________
http://img134.imageshack.us/img134/341/userbarpcinfowebvd6.png
Back to top
Zarnergun
Modo général
Modo général

Offline
Joined: 24 Feb 2007 Posts: 2,589
Sexe: masculin
PostPosted: 26/04/2008, 23:47    Post subject: [RESOLU]{javascript} Pop-Up Reply with quote

Je sais pas essaye.

je suis pas sur qu'une fenêtre HTA puisse en appelé une autre indépendante de celle ci même !

________________________________________________
http://zammik.free.fr/rss/
MY
Back to top
Display posts from previous:   
Post new topic   Reply to topic    PcInfo-Web Forum Index -> Forum Informatique -> Internet - Navigation -Programmation - Scripts - Developpement All times are GMT + 2 Hours
Goto page: 1, 2, 3  >
Page 1 of 3

 

 

Sauter vers :