HTML Show picture that fits screen -
i have followin code, shows picture:
<html> <head> <style>* {margin:0;padding:0;}</style> </head> <body style="margin: 0; padding: 0"> <center> <script type='text/javascript'><!--//<![cdata[ var m3_u = (location.protocol=='https:'?'url1':'url2'); var m3_r = math.floor(math.random()*99999999999); if (!document.max_used) document.max_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=1"); document.write ('&cb=' + m3_r); if (document.max_used != ',') document.write ("&exclude=" + document.max_used); document.write (document.charset ? '&charset='+document.charset : (document.characterset ? '&charset='+document.characterset : '')); document.write ("&loc=" + escape(window.location)); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&mmm_fo=1"); document.write ("'><\/scr"+"ipt>"); //]]>--></script><noscript><a href='url3' target='_blank'><img src='url4' border='0' alt=''/></a></noscript> </center> </body> </html> and want make picture fits screen, , have tried put width="100%" in img, in href... same size.
how can make it?
you can use backstretch jquery. backstretch jquery plugin allows add dynamically-resized background image page. image stretch fit page, , automatically resize window size changes.
here example:
Comments
Post a Comment