<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[includere css dentro php si può?]]></title><description><![CDATA[<p dir="auto">Sto realizzando un sito in responsive design, nella parte alta della pagina c'è uno slider con delle immagini che scorrono una alla volta.<br />
Vorrei che questo slider cambi dimensione al cambiare della dimensione del display.<br />
Secondo voi è possibile fare una cosa del genere?<br />
Perchè a me non funziona, cioè rimane sempre della dimensione (playlistWidth: 250)<br />
Evidentemente i fontenuti degli if non vengono interpretati.</p>
<pre><code>
&lt;? 
echo "&lt;script language=\"JavaScript\"&gt;\n"; 
echo "jQuery(function() {\n"; 

echo "jQuery('#allinone_bannerWithPlaylist_easy').allinone_bannerWithPlaylist({\n"; 
echo "skin: 'easy',\n"; 
echo "defaultEffect: 'fade',\n"; 
echo "autoPlay: 8,\n"; 
echo "responsive:true,\n"; 
echo "borderColor: '#000000',\n"; 
echo "circleColor: '#ffffff',\n"; 
echo "width: 940,\n"; 
echo "height: 384,\n"; 
echo "borderWidth: 0,\n"; 
?&gt;

&lt;? 
if ("&lt;style type='text/css'&gt; @media only screen and (min-width: 992px) { } &lt;/style&gt;")
{

echo "playlistWidth: 250,\n"; 

}
elseif ("&lt;style type='text/css'&gt; @media only screen and (min-width: 768px) and (max-width: 991px) { } &lt;/style&gt;")
{

echo "playlistWidth: 350,\n"; 

}
elseif ("&lt;style type='text/css'&gt; @media only screen and (min-width: 480px) and (max-width: 767px) { } &lt;/style&gt;")
{

echo ""; 

}
elseif ("&lt;style type='text/css'&gt; @media only screen and (max-width: 479px) { } &lt;/style&gt;")
{

echo ""; 

}
?&gt;

&lt;? 
echo "showThumbs:false,\n"; 
echo "numberOfThumbsPerScreen:4\n"; 
echo "});\n";     
            
echo "});\n"; 
echo "&lt;/script&gt;"; 
?&gt;

</code></pre>
]]></description><link>https://connect.gt/topic/187460/includere-css-dentro-php-si-può</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 18:15:57 GMT</lastBuildDate><atom:link href="https://connect.gt/topic/187460.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Apr 2013 17:52:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to includere css dentro php si può? on Tue, 16 Apr 2013 22:29:30 GMT]]></title><description><![CDATA[<p dir="auto">Infatti...son due cose completamente diverse... il php non ne sa nulla del device che usi per visualizzare il sito, è tutto relativo al frontend. Cmq basta scrivere su google "slide + responsive" che ci son già pronti, se vuoi fare diversi step è sufficente modificare la misura del container</p>
<p dir="auto">http dot //  responsive-slides.viljamis dot com</p>
]]></description><link>https://connect.gt/post/1119821</link><guid isPermaLink="true">https://connect.gt/post/1119821</guid><dc:creator><![CDATA[erise]]></dc:creator><pubDate>Tue, 16 Apr 2013 22:29:30 GMT</pubDate></item><item><title><![CDATA[Reply to includere css dentro php si può? on Mon, 08 Apr 2013 20:05:11 GMT]]></title><description><![CDATA[<p dir="auto">Ho provato però ora lo slider non si vede più:</p>
<pre><code>jQuery(function() {

        jQuery('#allinone_bannerWithPlaylist_easy').allinone_bannerWithPlaylist({
            skin: 'easy',
            defaultEffect: 'fade',
            autoPlay: 8,
            responsive:true,
            borderColor: '#000000',
            circleColor: '#ffffff',
            width: 940,
            height: 384,
            borderWidth: 0,
</code></pre>
<p dir="auto">if (&lt;style type=text/css&gt; <a class="plugin-mentions-user plugin-mentions-a" href="https://connect.gt/uid/92589">@media</a> only screen and (min-width: 992px) { } &lt;/style&gt;) {<br />
playlistWidth: 250,<br />
}<br />
else if (&lt;style type=text/css&gt; <a class="plugin-mentions-user plugin-mentions-a" href="https://connect.gt/uid/92589">@media</a> only screen and (min-width: 768px) and (max-width: 991px) { } &lt;/style&gt;) {<br />
playlistWidth: 350,<br />
}<br />
else if (&lt;style type=text/css&gt; <a class="plugin-mentions-user plugin-mentions-a" href="https://connect.gt/uid/92589">@media</a> only screen and (min-width: 480px) and (max-width: 767px) { } &lt;/style&gt;) {<br />
playlistWidth: 0,<br />
}<br />
else if (&lt;style type=text/css&gt; <a class="plugin-mentions-user plugin-mentions-a" href="https://connect.gt/uid/92589">@media</a> only screen and (max-width: 479px) { } &lt;/style&gt;) {<br />
playlistWidth: 0,<br />
}</p>
<pre><code>            showThumbs:false,
            numberOfThumbsPerScreen:4
        });        
        
        
    });</code></pre>
]]></description><link>https://connect.gt/post/1119820</link><guid isPermaLink="true">https://connect.gt/post/1119820</guid><dc:creator><![CDATA[prinzart]]></dc:creator><pubDate>Mon, 08 Apr 2013 20:05:11 GMT</pubDate></item><item><title><![CDATA[Reply to includere css dentro php si può? on Mon, 08 Apr 2013 19:51:36 GMT]]></title><description><![CDATA[<p dir="auto">Javascript, senza php? Perchè si può fare?</p>
]]></description><link>https://connect.gt/post/1119819</link><guid isPermaLink="true">https://connect.gt/post/1119819</guid><dc:creator><![CDATA[prinzart]]></dc:creator><pubDate>Mon, 08 Apr 2013 19:51:36 GMT</pubDate></item><item><title><![CDATA[Reply to includere css dentro php si può? on Mon, 08 Apr 2013 18:33:54 GMT]]></title><description><![CDATA[<p dir="auto">A mio parere l'if che stai facendo lato php non puo essere cosi calcolato.<br />
Come mai non vuoi farlo lato Javascript?</p>
]]></description><link>https://connect.gt/post/1119817</link><guid isPermaLink="true">https://connect.gt/post/1119817</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Mon, 08 Apr 2013 18:33:54 GMT</pubDate></item></channel></rss>