Drupal Questions & Answers

Ask and answer Drupal related questions! No question too simple or complex!
adrianmak's picture
Asked by on Sun 30th Aug 2009
my jquery script is not work

I wrote a small jquery script say imageresize.js to resize img tag

$(document).ready(function(){
  
  // adjust image dimensions
  $('table img.imagefield').each(function(i){
          
      // set new image dimensions
      $(this).height(100).width(100);
    }
  );  
});

and then load this js from page.tpl.php

I used firebug to look into the generated html, the js is loaded
however images are not resized. Thet still resist in it’s original size.

Commenting on this Drupal Question is closed.