Status
Not open for further replies.
5 comments
if above code not work
then try this javascript code
Using javascript to control images


This method is very easy and simple by add the following javascript code in your-theme/main.tpl before </head>
PHP:
<script type="text/javascript"> window.onload= function() {     ims = document.images;     for (var i in ims) {         if (ims[i].width > 500) {             ims[i].width=500;             ims[i].height=Math.round(ims[i].height*500/ims[i].width);         }     } } </script>
 
Status
Not open for further replies.
Back
Top