Forums / Cotonti / Support / [img] change size?

pieter
#28118 2011-01-26 14:53
Hi,

If you go to admin.php?m=bbcode
Search for [img]
In the column "Replacement" add inside the <img ...> a class:
eg class="resizeimage"

If got this:
<a href="$1"><img src="$2" alt="" class="resizeimage" /></a>

In css:
/*This is for Jquery*/
/* for understanding browsers */
.resizeimage   { max-width:250px;max-height:250px;}
/* for Internet Explorer */
/*\*/
* html .resizeimage{
border-width:1px solid #000000;
height: expression(this.height >= this.width && this.height > 250 ? '250px' : true);
width: expression(this.height < this.width && this.width > 250 ? '250px' : true);
}
[/img]
... can we help you ...