*đây chỉ là đơn giản thêm 1 button vào thôi nhé chứ ko có thay thế nút quote có sẵn của forum đâu
Thêm vô css:
- Code:
.bbcode_container {
margin:20px;
margin-top:5px;
display:block;
}
.bbcode_container .bbcode_desc {
margin-bottom:2px;
font-size:11px;
}
.bbcode_container div.bbcode_code,
.bbcode_container pre.bbcode_code {
margin:0;
padding:6px;
border:1px inset;
text-align:left;
overflow:scroll;
direction:ltr;
background:#f2f6f8 repeat-x;
/*height:;*/
font-size:12px;
}
.bbcode_container code.bbcode_code {
margin:0;
text-align:left;
direction:ltr;
font-size:12px;
}
.bbcode_container code.bbcode_code code {
white-space:nowrap;
}
.bbcode_container div.bbcode_quote {
margin:0 10px;
margin-bottom: 10px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background: #f2f6f8 none ;
border-radius: 5px;
border: 1px solid #417394;
font: normal normal 13px Tahoma,Calibri,Verdana,Geneva,sans-serif;
position: relative;
top: 0;
}
.bbcode_container .bbcode_quote_container {
background: transparent url(http://2pmhottest.com/images/misc/quote-left.png) no-repeat left;
display:block;
width: 9px;
height: 13px;
position: absolute;
top: 5;
left: -9px;
}
.bbcode_quote div.quote_container {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
padding: 5px 10px 5px 10px;
}
.bbcode_quote .bbcode_postedby img {
position: relative;
top: 1px;
}
.bbcode_container div.bbcode_quote.printable {
background:none;
border:none;
}
.bbcode_container div.bbcode_quote div.message {
/*font-style:italic;*/
padding:8px 0px;
}
/* fix the bug where li's in quotes are floated */
.bbcode_container div.bbcode_quote div.message ol>li, .bbcode_container div.bbcode_quote div.message ul>li{
float: none;
}
- Code:
<button class="button2" onmouseover="helpline('xy')" onclick="bbfontstyle('<div class=bbcode_container><div class=bbcode_quote><div class=quote_container><div class=bbcode_quote_container>','</div>Nhập Nội dung ở đây</div></div></div>');return false" type="button"><img src="http://i79.servimg.com/u/f79/16/19/56/22/quote10.png" /></button>
- Code:
<button class="button2" onclick="selectWysiwyg(this,'font')" onmouseover="helpline('ft')" type="button"><img src="{PATH_IMG_FA}wysiwyg/font.png" /></button>
No Comment.