As Mario said you could use JScript via ASP. However, I do not recommend 

In most cases you would use a scripting language like PHP and get the image 
width via attribute. Then you can write it like that:
<img class="<?= (<%att_image_width%> > 200) ? "myclass" : "" ?>" 

In the example above you should make sure that img_image is set or that the 
check for width can handle an empty value if img_image is not set yet.


On Tuesday, February 13, 2018 at 11:02:43 PM UTC+1, Heather Napoleone wrote:
> I was wondering if I can preexecute a jquery function before my page 
> publishes.  I want the function to run before it gets publishes.  Putting a 
> preexcute tage around it, does not work.
> For example I want to add a class to all images that have a width of less 
> than 200.  I don't want this function to be seen on the published page and 
> just have the class on all the images that are less than 200 in width.  

You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to