<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Insel der Engel&#039; &#187; (x)HTML</title>
	<atom:link href="http://engelium.netsons.org/blog/category/webmastering/xhtml/feed" rel="self" type="application/rss+xml" />
	<link>http://engelium.netsons.org/blog</link>
	<description>Il mio piccolo pezzo di Paradiso</description>
	<lastBuildDate>Thu, 05 Nov 2009 13:14:06 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Filmati Flash in background con i CSS</title>
		<link>http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html</link>
		<comments>http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html#comments</comments>
		<pubDate>Wed, 19 Mar 2008 23:14:11 +0000</pubDate>
		<dc:creator>Engelium</dc:creator>
				<category><![CDATA[(x)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Web-Design]]></category>
		<category><![CDATA[Webmastering]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html</guid>
		<description><![CDATA[Un semplice tutorial che ci insegna come visualizzare un filmato flash come sfondo delle nostre pagine web.<p>L'articolo <a href="http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html">Filmati Flash in background con i CSS</a> è stato pubblicato su <a href="http://engelium.netsons.org/blog">Insel der Engel&#039;</a>, a cura di <a href="http://engelium.netsons.org/">Engelium.</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Ed iniziamo con questo articolo una serie di <em>guide</em> e di <em>tips &amp; tricks</em> per eventuali webmasters alle prime armi che passassero da queste parti. Onestamente non so bene neanche io come (e se) si svilupperà la cosa. Ma come sempre l&#8217;importante è iniziare no?</p>
<p>L&#8217;idea mi è venuta grazie ad una domanda posta da un utente sul <a title="MLI Forum" href="http://www.megalab.it/forum/" target="_blank">forum di MegaLab.it</a>. Vedendo come operazioni apparentemente molto semplici possano sembrare dei problemi insormontabili ad un neofita mi ha spinto a cominciare questa nuova &#8220;rubrica&#8221;.</p>
<p>Ed adesso andiamo al tema di oggi: <em>&#8220;Come creare in modo semplice e veloce una pagina web in cui un filmato flash farà da cornice alla nostra pagina vera e propria&#8221;</em>.</p>
<p>Il trucchetto si rivela utile soprattutto per chi il <a title="Wikipedia IT: Adobe Flash" href="http://it.wikipedia.org/wiki/Adobe_Flash" target="_blank">Flash</a> non lo conosce proprio al meglio, visto che la soluzione migliore sarebbe sviluppare tutto direttamente con questo programma sfruttandone le pressochè illimitate possibilità.</p>
<p>Per realizzare il nostro progetto ci limiteremo dunque al solo uso di codice <a title="Wikipedia IT: (x)HTML" href="http://it.wikipedia.org/wiki/XHTML" target="_blank">(x)HTML</a> e <a title="Wikipedia IT: CSS" href="http://it.wikipedia.org/wiki/Foglio_di_stile" target="_blank">CSS</a> e, in particolare, alle specifiche <a title="W3C Reference: XHTML 1.0" href="http://www.w3.org/TR/xhtml1/" target="_blank">XHTML 1.0 Strict</a> e <a title="W3C Reference: CSS 2.1" href="http://www.w3.org/TR/CSS21/" target="_blank">CSS 2.1</a> così da garantire un&#8217;ottima compatibilità cross-browser e cross-platform (nonostante quell&#8217; XHTML 1.0 Strict possa far pensare diversamente qualche profano <img src='http://engelium.netsons.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=':wink:' class='wp-smiley' />  ).</p>
<p>Per ottenere l&#8217;effetto desiderato, ovvero avere due livelli sovrapposti in vario modo esattamente come siamo abituati a vedere in programmi di grafica come Photoshop, la specifica CSS2 infatti ci mette a disposizione la proprietà <a href="http://www.w3.org/TR/REC-CSS2/visuren.html#q30">z-index</a>.</p>
<p>Tutto quello che dobbiamo fare è quindi creare due <em>box</em> posizionati assolutamente ed ai quali attribuire dei valori diversi per lo <em>z-index</em> (maggiore per quello che deve essere visualizzato sopra). Tuttavia questo non è ancora sufficiente in quanto limitandovi ad inserire il vostro file <strong>.swf</strong> tramite il codice standard (in genere fornito dalla routine di esportazione stessa) noterete che invece di fare da sfondo al livello superiore verrà visualizzato in primo piano coprendo la vostra pagina.</p>
<p>Questo comportamento, apparentemente inspiegabile, è in realtà normale in quanto, affinchè il <a title="Adobe Flash Player" href="http://www.adobe.com/it/products/flashplayer/" target="_blank">plugin flash del vostro browser</a> posizioni e visualizzi il filmato nel modo desiderato, è necessario che aggiungiate al codice fornito per il suo inserimento (ammesso che si tratti di <a title="W3C Validator" href="http://validator.w3.org/" target="_blank">codice XHTML valido</a>) la seguente stringa:</p>
<p>[sourcecode language='xhtml']<param name="wmode" value="transparent">[/sourcecode]</p>
<p>ottenendo quindi un codice di questo tipo:</p>
<p>[sourcecode language='xhtml']<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100" height="100" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="movie.swf" /><embed type="application/x-shockwave-flash" width="100" height="100" src="movie.swf" wmode="transparent"></embed></object>[/sourcecode]</p>
<p>A questo punto avrete ottenuto l&#8217;effetto desiderato senza dovervi scervellare a gestire il tutto tramite il ben più complicato Flash. Comodo no? <img src='http://engelium.netsons.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=':wink:' class='wp-smiley' /> </p>
<p>Ed ecco infine il codice completo di una pagina di esempio in cui un filmato preso da <a title="YouTube" href="http://it.youtube.com/" target="_blank">YouTube</a> farà da sfondo al testo:</p>
<p>[sourcecode language='xhtml']< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"  dir="ltr" lang="it-IT"><br />
<head></p>
<p><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></p>
<style type="text/css">
<!--
#box1 { background: #ffffff; width: 450px; position: absolute; top: 120px; left: 30px; z-index: 1; }
#box2 { background: #f3f3f3; width: 300px; position: absolute; top: 160px; left: 90px; z-index: 2; }
-->
</style>
<p></head><br />
<body></p>
<div id="box1">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100" height="100" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/dZWl-SOC5jQ" /><embed type="application/x-shockwave-flash" width="100" height="100" src="http://www.youtube.com/v/dZWl-SOC5jQ" wmode="transparent"></embed></object></div>
<div id="box2">Come volevasi dimostrare questo testo viene visualizzato sopra il filmato</div>
<p></body><br />
</html><br />
[/sourcecode]</param>
<p>L'articolo <a href="http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html">Filmati Flash in background con i CSS</a> è stato pubblicato su <a href="http://engelium.netsons.org/blog">Insel der Engel&#039;</a>, a cura di <a href="http://engelium.netsons.org/">Engelium.</a></p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>Segnala presso:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html&amp;title=Filmati+Flash+in+background+con+i+CSS" title="Aggiungi 'Filmati Flash in background con i CSS' a Del.icio.us"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Aggiungi 'Filmati Flash in background con i CSS' a Del.icio.us" alt="Aggiungi 'Filmati Flash in background con i CSS' a Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html&amp;title=Filmati+Flash+in+background+con+i+CSS" title="Aggiungi 'Filmati Flash in background con i CSS' a digg"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Aggiungi 'Filmati Flash in background con i CSS' a digg" alt="Aggiungi 'Filmati Flash in background con i CSS' a digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html" title="Aggiungi 'Filmati Flash in background con i CSS' a Technorati"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Aggiungi 'Filmati Flash in background con i CSS' a Technorati" alt="Aggiungi 'Filmati Flash in background con i CSS' a Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html&amp;t=Filmati+Flash+in+background+con+i+CSS" title="Aggiungi 'Filmati Flash in background con i CSS' a Yahoo My Web"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/yahoo_myweb.png" title="Aggiungi 'Filmati Flash in background con i CSS' a Yahoo My Web" alt="Aggiungi 'Filmati Flash in background con i CSS' a Yahoo My Web" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html&amp;title=Filmati+Flash+in+background+con+i+CSS" title="Aggiungi 'Filmati Flash in background con i CSS' a Stumble Upon"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Aggiungi 'Filmati Flash in background con i CSS' a Stumble Upon" alt="Aggiungi 'Filmati Flash in background con i CSS' a Stumble Upon" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html&amp;title=Filmati+Flash+in+background+con+i+CSS" title="Aggiungi 'Filmati Flash in background con i CSS' a Google Bookmarks"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/google.png" title="Aggiungi 'Filmati Flash in background con i CSS' a Google Bookmarks" alt="Aggiungi 'Filmati Flash in background con i CSS' a Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bloglines.com/sub/http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html" title="Aggiungi 'Filmati Flash in background con i CSS' a Bloglines"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/bloglines.png" title="Aggiungi 'Filmati Flash in background con i CSS' a Bloglines" alt="Aggiungi 'Filmati Flash in background con i CSS' a Bloglines" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://segnalo.alice.it/post.html.php?url=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html&amp;title=Filmati+Flash+in+background+con+i+CSS" title="Aggiungi 'Filmati Flash in background con i CSS' a Segnalo"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/segnalo.png" title="Aggiungi 'Filmati Flash in background con i CSS' a Segnalo" alt="Aggiungi 'Filmati Flash in background con i CSS' a Segnalo" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://oknotizie.alice.it/post?url=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html&amp;title=Filmati+Flash+in+background+con+i+CSS" title="Aggiungi 'Filmati Flash in background con i CSS' a OKnotizie"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/oknotizie.gif" title="Aggiungi 'Filmati Flash in background con i CSS' a OKnotizie" alt="Aggiungi 'Filmati Flash in background con i CSS' a OKnotizie" /></a><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="https://favorites.live.com/quickadd.aspx?url=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html&amp;title=Filmati+Flash+in+background+con+i+CSS" title="Aggiungi 'Filmati Flash in background con i CSS' a Live-MSN"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/live.png" title="Aggiungi 'Filmati Flash in background con i CSS' a Live-MSN" alt="Aggiungi 'Filmati Flash in background con i CSS' a Live-MSN" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?title=Filmati+Flash+in+background+con+i+CSS&amp;url=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html" title="Aggiungi 'Filmati Flash in background con i CSS' a SlashDot"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/slashdot.png" title="Aggiungi 'Filmati Flash in background con i CSS' a SlashDot" alt="Aggiungi 'Filmati Flash in background con i CSS' a SlashDot" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.diggita.it/submit.php?title=Filmati+Flash+in+background+con+i+CSS&amp;url=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html" title="Aggiungi 'Filmati Flash in background con i CSS' a Diggita"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/diggita.png" title="Aggiungi 'Filmati Flash in background con i CSS' a Diggita" alt="Aggiungi 'Filmati Flash in background con i CSS' a Diggita" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/share.php?u=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html&amp;t=Filmati+Flash+in+background+con+i+CSS" title="Aggiungi 'Filmati Flash in background con i CSS' a FaceBook"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Aggiungi 'Filmati Flash in background con i CSS' a FaceBook" alt="Aggiungi 'Filmati Flash in background con i CSS' a FaceBook" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.wikio.it/vote?url=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html" title="Aggiungi 'Filmati Flash in background con i CSS' a Wikio"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/wikio.png" title="Aggiungi 'Filmati Flash in background con i CSS' a Wikio" alt="Aggiungi 'Filmati Flash in background con i CSS' a Wikio" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.myspace.com/Modules/PostTo/Pages/?t=Filmati+Flash+in+background+con+i+CSS&amp;c=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html" title="Aggiungi 'Filmati Flash in background con i CSS' a MySpace"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/myspace.png" title="Aggiungi 'Filmati Flash in background con i CSS' a MySpace" alt="Aggiungi 'Filmati Flash in background con i CSS' a MySpace" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://ziczac.it/a/segnala/?gurl=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html&amp;gtit=Filmati+Flash+in+background+con+i+CSS" title="Aggiungi 'Filmati Flash in background con i CSS' a ZicZac"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/ziczac.png" title="Aggiungi 'Filmati Flash in background con i CSS' a ZicZac" alt="Aggiungi 'Filmati Flash in background con i CSS' a ZicZac" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home?status=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html" title="Aggiungi 'Filmati Flash in background con i CSS' a Twitter"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/twitter.png" title="Aggiungi 'Filmati Flash in background con i CSS' a Twitter" alt="Aggiungi 'Filmati Flash in background con i CSS' a Twitter" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://friendfeed.com/share/bookmarklet/frame#title={titleff}&amp;url=http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html" title="Aggiungi 'Filmati Flash in background con i CSS' a FriendFeed"><img src="http://engelium.netsons.org/blog/wp-content/plugins/social-bookmarking-reloaded/friendfeed.png" title="Aggiungi 'Filmati Flash in background con i CSS' a FriendFeed" alt="Aggiungi 'Filmati Flash in background con i CSS' a FriendFeed" /></a></div>
<!-- Social Bookmarking Reloaded END --><p  class="related_post_title">Perchè non leggi anche:</p><ul class="related_post"><li><a href="http://engelium.netsons.org/blog/2009/03/29/best-of-week-9-2.html" title="Best of Week (+/-) #9">Best of Week (+/-) #9</a></li><li><a href="http://engelium.netsons.org/blog/2009/02/08/best-of-week-4-2.html" title="Best of Week (+/-) #4">Best of Week (+/-) #4</a></li><li><a href="http://engelium.netsons.org/blog/2009/01/18/best-of-week-2-2.html" title="Best of Week (+/-) #2">Best of Week (+/-) #2</a></li><li><a href="http://engelium.netsons.org/blog/2009/05/17/best-of-week-13-2.html" title="Best of Week (+/-) #13">Best of Week (+/-) #13</a></li><li><a href="http://engelium.netsons.org/blog/2009/04/28/speed-dial-come-cambiarne-immagini-e-titoli.html" title="Speed Dial: come cambiarne immagini e titoli">Speed Dial: come cambiarne immagini e titoli</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://engelium.netsons.org/blog/2008/03/20/filmati-flash-in-background-con-i-css.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
