CarloBenno
Members
-
Joined
-
Last visited
Reputation Activity
-
u can use css media queries and use different sized bg image like this
* Smartphones (portrait and landscape) ----------- */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { /* Styles */ body {background-image:url('paper9.gif'); } /* Smartphones (landscape) ----------- */ @media only screen and (min-width : 321px) { /* Styles */ body {background-image:url('paper8.gif'); } /* Smartphones (portrait) ----------- */ @media only screen and (max-width : 320px) { /* Styles */ body {background-image:url('paper7.gif'); } /* iPads (portrait and landscape) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { /* Styles */ body {background-image:url('paper6.gif'); } /* iPads (landscape) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { /* Styles */ body {background-image:url('paper5.gif'); } /* iPads (portrait) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { /* Styles */ body {background-image:url('paper4.gif'); } /* Desktops and laptops ----------- */ @media only screen and (min-width : 1224px) { /* Styles */ body {background-image:url('paper.gif'); } /* Large screens ----------- */ @media only screen and (min-width : 1824px) { /* Styles */ body {background-image:url('paper2.gif'); } /* iPhone 4 ----------- */ @media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) { /* Styles */ body {background-image:url('paper3.gif'); } -
CarloBenno reacted to zed in Need Some Help With Java & CSStry
<div style="width: 600px;"> <div style="float: left; width: 200px;"> <p id="devAnalogClock"></p> <script type="text/javascript"> var flashvars = { clockSkin: 'media/skins/skin001.png' }; swfobject.embedSWF( 'media/devAnalogClock.swf', // path to the widget 'devAnalogClock', '200', // width of the widget '200', // height of the widget '8', 'media/expressInstall.swf', flashvars, {scale: 'noscale', wmode: 'transparent'} ); </script> </div> <div style="float: left; width: 200px;"> <p id="devAnalogClock2"></p> <script type="text/javascript"> var flashvars = { clockSkin: 'media/skins/skin001.png' }; swfobject.embedSWF( 'media/devAnalogClock.swf', // path to the widget 'devAnalogClock2', '200', // width of the widget '200', // height of the widget '8', 'media/expressInstall.swf', flashvars, {scale: 'noscale', wmode: 'transparent'} ); </script> </div> <div style="float: left; width: 200px;"> <p id="devAnalogClock3"></p> <script type="text/javascript"> var flashvars = { clockSkin: 'media/skins/skin001.png' }; swfobject.embedSWF( 'media/devAnalogClock.swf', // path to the widget 'devAnalogClock3', '200', // width of the widget '200', // height of the widget '8', 'media/expressInstall.swf', flashvars, {scale: 'noscale', wmode: 'transparent'} ); </script> </div> <br style="clear: left;" /> </div>