dopasowanie flasha

HTML to podstawy w dziedzinie tworzenia stron WWW, Style CSS warto opanować, bowiem za ich pomocą można dostosować odpowiednio wygląd swojej witryny WWW. Zagłębiamy się dalej i udostępniamy w tym forum możliwość zadawania pytań o JavaScript.
ODPOWIEDZ
zooey
Posty: 1
Rejestracja: pn sty 28, 2008 7:36 pm
Kontakt:

dopasowanie flasha

Post autor: zooey »

witam
Mam problem z dopasowaniem zawartości strony do wielkości okna.
Cała strona jest jednym obiektem flash (.swf) Co gorsza u mnie strona wyświetla sie w 100% poprawnie co utrudnia mi wprowadzenie poprawek bo nie widzę jaki przynoszą efekt. U innych wyświetlany obszar ma na monitorze 17'' wielkość ok 810x610 zamiast 1024 786

znalazłem taki oto skrypt który w innej stronie działał właściwie
skrypt:

Kod: Zaznacz cały

<script language="javascript">
	    if (isIE)
   {
     cWidth = parseInt(document.body.offsetWidth);
     cHeight = parseInt(document.body.offsetHeight);
   }
   else
   {
     cWidth = window.innerWidth
     cHeight = window.innerHeight
   }
</script>
jednak muszę dopasować TĘ właśnie stronę i wstawić go do TEGO html'a tak aby zadziałało to właściwie. Musze poprostu wiedzieć gdzie wstawić ten skrypt żeby zadziałał (ewent inny skrypt lub modyfikacje html'a-strony)
Podaje kod strony do której muszę go wstawić
Z góry dziękuję za pomoc
pozdrawiam
moja strona: http://www.grzegorz-zaleski.pl/
kod:

Kod: Zaznacz cały

<html><head><title>Grzegorz Zaleski - Architektura krajobrazu</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="Architektura krajobrazu. Grzegorz Zaleski. Projektowanie Ogrodow. Projektowanie Ogrodów. Kampus SGGW. Krajobrazu Projektanci. PUSH.FORWARD>">
<meta name="keywords" content="Architektura Krajobrazu, Ogrody, Tereny Zieleni, Grzegorz Zaleski, Landscape Architecture, SGGW, Projektowanie, Parki, Garden, Zielony, Lotar, Design, Altany, Projekty, Zielen, Koncepcyjny, Zagospodarowania, Budowlany, Ogrodnictwo, Wizualizacje">
<style type="text/css">

#navigation {
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.flash{
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 11px;
	text-align: left;
	height:100%;
}
.right{
	background-color:#FFFFFF;
	padding-bottom:20px;
	padding-left:20px;
	padding-top:20px;
	padding-right:40px;
	width:260px;
	height:120px;
	text-align:left;
	line-height:16px;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:11px;
	vertical-align:bottom;
	color:#000000;
}
.right a:link{
	color:#40453d;
	text-decoration:none;
	font-weight:bold;
}
.right a:active{
	color:#40453d;
	text-decoration:none;
	font-weight:bold;
}
.right a:visited{
	color:#40453d;
	text-decoration:none;
	font-weight:bold;
}
.right a:hover{
	color:#40453d;
	text-decoration:underline;
	font-weight:bold;
}
.mid{
	width:1px;
	background-color:#d8d9d8;
}
</style>
<script language='javascript'>
if (this.name!='fullscreen'){ 
window.open(location.href,'fullscreen','fullscreen=1,scrollbars=0');
}
</script>

<script type="text/javascript" src="PUSH/flashobject.js"></script>
<script src="PUSH/urchin.js" type="text/javascript"></script>
<script type="text/javascript"> _uacct ="UA-2314475-1"; urchinTracker(); </script>
<script language="javaScript">
	function open_window(uRL) {
		var window_height = 400, window_width = 300;
		var win = window.open(uRL, "wINDOW","toolbar=no, width="+window_width+", height="+window_height+" ,status=no, scrollbars=no, resizable=no, menubar=no");
	}

	function ld(theurl) {
		document.getElementById("url").href = theurl;
		document.getElementById("url").click();
	}
</script></head><body style="margin: 0px;" bgcolor="#ffffff">
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
	<tbody><tr>
		<td align="center" valign="middle">		
		<div id="flashcontent" class="flash">		
		<!-- NO FLASH PAGE -->
		<br><br><br><br><br>
		<table border="0" cellpadding="0" cellspacing="0" height="160" width="100%">
		  <tbody><tr>
			<td> </td>
			<td height="160" width="200">
			<a href="http://www.adobe.com/products/flashplayer/" target="_blank"><img src="PUSH/_flashicon.gif" border="0" height="160" width="200"></a></td>
			<td class="mid" height="160"></td>
			<td class="right" height="160">
			You need to upgrade your Flash Player.<br>This site requires a more recent version of the Flash plugin than you currently have. This plugin is free and can downloaded <a href="http://www.adobe.com/products/flashplayer/" target="_blank">here</a>.<br>Or, if you're absolutely positive you have the most recent plugin, then click <a href="http://www.pushhere.com/index.php?detectflash=false" target="_self">here</a> to force the site to load.</td>
			<td> </td>
		  </tr>
		</tbody></table>		
		<!--//-->
		</div>
	</td>
		<td style="vertical-align: middle;">
		<img src="PUSH/_spacer.gif" alt="" height="610" width="1"><div id="navigation"><a href="http://www.pushhere.com/blog/" target="_self">Push blog</a><br>
			<a href="http://www.pushhere.com/pressroom/" target="_self">Push press room</a></div></td>
	</tr>
	<tr>
		<td><img src="PUSH/_spacer.gif" alt="" height="1" width="960"></td>
		<td height="1"></td>
  </tr>
</tbody></table>
<!-- STATS VOOR EXTERNE SERVER -->
<iframe src="PUSH/index.html" style="display: none; visibility: hidden;" border="0" height="0" width="0"></iframe>
<!--//-->
<a href="" id="url" target="_blank">

<script type="text/javascript">
	// <![CDATA[
	var fo = new FlashObject("fullScreenBt.swf", "movie", "100%", "100%", "8", "#FFFFFF");
	fo.addVariable("ie", "0");
	fo.addVariable("p", "");
	fo.addParam("allowfullscreen","true");
	fo.write("flashcontent");
	// ]]>
</script>

</a></body></html>
ODPOWIEDZ