| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Jul 2005
Beiträge: 39
| Ich habe eine offline Präsentation mit Flash vor die auf PC`s sowohl auch auf Mac`s laufen soll. Da meine Dateien aber komischer weiße wohl zu groß für eine Mac Projekt sind, da sich Flash immer aufhängt bin ich auf die Idee gekommen mit dem Internet explorer zu arbeiten. Ein Freund hat mir vor ein paar Jahren etwas gebastelt mit dem ich zwar arbeiten konnte, aber ich bekomme die scrollbar nicht weg. Er hat mir zwei Dateien geschickt. index.html : <html> <head> <title></title> <meta name="author" content="Johannes König"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript"> <!-- //browser sniffer var agt=navigator.userAgent.toLowerCase(); var is_major = parseInt(navigator.appVersion); var is_minor = parseFloat(navigator.appVersion); var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1)); var is_nav2 = (is_nav && (is_major == 2)); var is_nav3 = (is_nav && (is_major == 3)); var is_nav4 = (is_nav && (is_major == 4)); var is_nav4up = (is_nav && (is_major >= 4)); var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1) || (agt.indexOf("; nav") != -1)) ); var is_nav5 = (is_nav && (is_major == 5)); var is_nav5up = (is_nav && (is_major >= 5)); var is_ie = (agt.indexOf("msie") != -1); var is_ie3 = (is_ie && (is_major < 4)); var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) ); var is_ie4up = (is_ie && (is_major >= 4)); var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) ); var is_ie5up = (is_ie && !is_ie3 && !is_ie4); // os detection var is_pc=(navigator.platform.substring(0,3)=='Win'); var is_mac=(navigator.platform.substring(0,3) == 'Mac') function Launch() // { var width=screen.availWidth; var height=screen.availHeight; var wleft=0; var wtop=0; if(is_ie4up&&is_pc) { var NewWin=window.open("flash.html","pussywindow","ful lscreen=1,scrollbars=0,status=1,left="+wleft+",top ="+wtop+",width="+width+",height="+height+""); NewWin.focus(); } else if(is_nav4up&&is_pc) { var NewWin=window.open("flash.html","pussywindow","scr eenX="+wleft+",screenY="+wtop+",width="+width+",he ight="+height+",directories=0,location=0,menubar=0 ,scrollbars=0,status=1,toolbar=0"); NewWin.focus(); } else if(is_nav4up&&is_mac) { var NewWin=window.open("flash.html","pussywindow","scr ollbars=0,left="+wleft+",top="+wtop+",width="+widt h+",height="+height-30+",directories=0,location=0,menubar=0,resizable= yes,status=1,toolbar=0"); NewWin.focus(); } else if(is_ie4up&&is_mac) { var NewWin=window.open("flash.html","pussywindow","scr ollbars=0,status=1,left="+wleft+",top="+wtop+",wid th="+width+",height="+height+""); NewWin.focus(); } else { self.location.href = "flash.html"; } } //--> </script> </head> <body onLoad="Launch();"> <!-- Your Body --> </body> </html> Diese öffnet dann ein Vollbild html in der ich die scrollbars nicht weg bekomme: <html> <head> <title></title> <meta name="author" content="marc jech"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body topmargin="0" leftmargin="0" text="#434448" bgcolor="#000000" link="#434448" alink="#434448" vlink="#434448"> <table cellspacing="0" cellpadding="0" align="center" border="0" height="100%" width="100%"> <tr> <td> <div align="right"><font size="2" face="Arial"><a href="javascript:self.close();" title="Schließt das Fenster">close</a> </font></div> </td> </tr> <tr><td valign="middle" align="center"> <!-- URL's used in the movie--><!-- text used in the movie--> <OBJECT classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="700" HEIGHT="400" id="flash1"><PARAM NAME=movie VALUE="film1.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="film1.swf" quality=high bgcolor=#000000 WIDTH="700" HEIGHT="400" NAME="Unbenannt-1" ALIGN="center" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> </td> </tr> </table> </body> </html> Ich denke, dass mein Grundgedanke ganz ok ist. So kann ich auf dem PC und Apfel einfach die gleiche swf Datei benutzen. Klar ist, dass die Kunden dann zwar ein flash player brauchen, aber den könnte ich ja mit auf die CD legen. |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |