http://itvnn.net/showthread.php?7090...g-nCode-Script
Nếu bạn muốn dùng css3 thì cho bạn khuyến cáo là sẽ k chạy tren một số trình duyệt cũ ie 6,7
Css resize:
Bước 1:
Go to--->ACP--->Custom BB Codes--->Add new BBcode.
Title: BBcode Image Resizer with CSS
BB Code Tag Name: imgr
Replacement:
PHP Code:
<a class="thumbnail" href="#thumb"><img src="{param}" width="320px" height="240px" border="0" /><span><img src="{param}" /><br />Image</span></a>
Bước 2:
Go to--->ACP--->Styles & Templates--->Style Manager--->You Styles--->Main CSS--->Additional CSS Definitions
Thêm vào ở hàng cuối cùng
PHP Code:
.thumbnail{ position: relative;
z-index: 0;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 60px; /*position where enlarged image should offset horizontally */
}