Huy Ho?ng
12-06-2008, 10:00 PM
Function: Quote fast. Just to hightlight the need to quote text and click link, the hightlight automatically will move to frame answered quickly.
Demo: https://vborg.vbsupport.ru/attachment.php?attachmentid=90279&stc=1&d=1228659832
Setup:
* -Edit showthread template
o Find
</head>
o Add up
<!-- VbQuickQuote By MK -->
<script type="text/javascript">
function quick_quote()
{
quote_txt='';
if (document.getSelection)
{
quote_txt=document.getSelection();
}
else if (document.selection)
{
quote_txt=document.selection.createRange().text;
}
if (dle_txt.replace(" ","") != "")
{
quote_txt=''+quote_txt;
}
}
function quick_ins(username)
{
var quote=document.getElementById('qrform').message;
if (quote_txt!= "")
{
quote.value +=''+quote_txt+''+'\n' ;
}
else
{
quote.value += "@"+username+" :";
}
}
</script>
<!-- / VbQuickQuote By MK -+++++++++++++.com-->
* -Edit Postbit ( Postbit_Legacy ) template :
o Find
<!-- control -->
o Add up
<a onmouseover="quick_quote();" href="#" onClick="quick_ins('$post[username]'); return false;">[Quick Quote]</a>
Have fun!!
Please click Mark as Installed if you want to get support for this mod
Demo: https://vborg.vbsupport.ru/attachment.php?attachmentid=90279&stc=1&d=1228659832
Setup:
* -Edit showthread template
o Find
</head>
o Add up
<!-- VbQuickQuote By MK -->
<script type="text/javascript">
function quick_quote()
{
quote_txt='';
if (document.getSelection)
{
quote_txt=document.getSelection();
}
else if (document.selection)
{
quote_txt=document.selection.createRange().text;
}
if (dle_txt.replace(" ","") != "")
{
quote_txt=''+quote_txt;
}
}
function quick_ins(username)
{
var quote=document.getElementById('qrform').message;
if (quote_txt!= "")
{
quote.value +=''+quote_txt+''+'\n' ;
}
else
{
quote.value += "@"+username+" :";
}
}
</script>
<!-- / VbQuickQuote By MK -+++++++++++++.com-->
* -Edit Postbit ( Postbit_Legacy ) template :
o Find
<!-- control -->
o Add up
<a onmouseover="quick_quote();" href="#" onClick="quick_ins('$post[username]'); return false;">[Quick Quote]</a>
Have fun!!
Please click Mark as Installed if you want to get support for this mod