Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 12-04-2004, 19:40   #1 (permalink)
FBx
 
Benutzerbild von xlive
 
Registriert seit: May 2003
Beiträge: 968
popup-fenster

hi,

möchte das ein popup-fenster immer in der mitte es sceens erscheint, unabhängig von der bildschirmauflösung.
dazu habe ich folgendes script, nur so recht funzt es noch nicht.

getURL ("javascript:winOpen('danke.php', 'Danke', 'width=560, height=420, screenX=width/2, left=80, screenY=height/2, top=120, toolbar=0, menubar=0, location=0, status=1,scrollbars=0,resizable=0')");

gruss sven
xlive ist offline   Mit Zitat antworten
Alt 12-04-2004, 19:55   #2 (permalink)
brand new user
 
Benutzerbild von RustyCake
 
Registriert seit: May 2002
Ort: Laimbach 6 1/2
Beiträge: 16.884
ActionScript:
  1. this.btn.onPress = function  () {
  2.         getURL ("javascript:Openfenster(\'start.htm\', 800, 600); void(0);");
  3.     };
  4.  
  5. /*
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  7. <html>
  8. <head>
  9. <title>Unbenanntes Dokument</title>
  10. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  11. </head>
  12. <script language="JavaScript">
  13. function Openfenster(url,  breite, hoehe){
  14. links=(screen.width/2)-(breite/2);
  15. oben=(screen.height/2)-(hoehe/2);
  16. var men =window.open(url, "popup", "width="+breite+", height="+hoehe+", status = no, resizable = no, toolbar = no, menubar = no, location = no,  titlebar = no, scrollbars = no, fullscreen = no, top ="+oben+", left="+links);
  17. }
  18. </script>
  19. <body>
  20. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="200">
  21.   <param name="movie" value="test.swf">
  22.   <param name="quality" value="high">
  23.   <embed src="test.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="200"></embed></object>
  24. </body>
  25. </html>
  26. */
__________________
Bitte keine Fragen, zu Flash per PM. Dazu ist das Forum da. Danke MFG_RustyCake!
"Wer tanzen will, muß erst gehen lernen"
RustyCake ist offline   Mit Zitat antworten
Alt 12-04-2004, 20:59   #3 (permalink)
FBx
 
Benutzerbild von xlive
 
Registriert seit: May 2003
Beiträge: 968
hi,

super, danke.

gruss sven
xlive ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 02:11 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele