Jump to content
php.lv forumi

Flash kā php backgrounds


xfr33

Recommended Posts

Ja Tu domā ielikt kā kāda elementa backgroundu, tad nevar, ja Tu gribi lai elementu saturs nepalien zem flesha, tad var mēģināt parametram 'wmode' piešķirt vērtību 'transparent' ieliekot flešiņu lapā, te var palasīt. Php failam kā tādam backgroundu neliek, css vērtība background ir html elementiem, pie tam tur var ielikt tikai bildi (ja neskaita krāsu, bet tā jau nav kaut kāda objekta ielikšana).

Link to comment
Share on other sites

Sensenos laikos darīju tā:

 

<body id="body">
<script type="text/javascript">flbg();</script>

<div id="hc">
šeit seko  lapas kontents

 

function flbg(){
document.writeln('<div id="fu">'+
'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="star" align="middle">'+
'<param name="allowScriptAccess" value="sameDomain" />'+
'<param name="movie" value="planet.swf" />'+
'<param name="quality" value="best" />'+
'<param name="scale" value="noscale" />'+
'<param name="wmode" value="transparent" />'+
'<param name="bgcolor" value="#000000" />'+
'<embed src="planet.swf" quality="best" scale="scale" wmode="transparent" bgcolor="#000000" width="100%" height="100%" name="star" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
'</object>'+
'</div>');
}

 

html {overflow:hidden;}
body {padding: 0px;	margin: 0px; overflow: hidden;	background:#000;  font:12px arial;  background:#eef;}

#hc {color:#fff; position:absolute; top:0px; left:0px;	width:100%;	height:100%;	overflow:auto; text-align:center;}
#fu {left: 0px;	top: 0px;	width:100%;	height:100%;	background:#000;}

Link to comment
Share on other sites

×
×
  • Create New...