xfr33 Posted August 26, 2008 Report Share Posted August 26, 2008 Vai var uzlikt flashu kā php faila backgroundu vai vismaz lai pār flashu varētu rakstit? Link to comment Share on other sites More sharing options...
Maris-S Posted August 26, 2008 Report Share Posted August 26, 2008 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 More sharing options...
codez Posted August 26, 2008 Report Share Posted August 26, 2008 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 More sharing options...
xfr33 Posted August 27, 2008 Author Report Share Posted August 27, 2008 ok paldies :) Link to comment Share on other sites More sharing options...
Recommended Posts