08-17-2010, 05:30 AM
First of all, you have to put this code into headerinclude:
Next, go to ACP > Configuration > Languages > select your language > global.lang.php and search:
Do the same thing with code.
I don't think we need a demo here, good luck.
< link removed >
PHP Code:[Highlight]
<script type="text/javascript">
function selectCode(a)
{
var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0];
if (window.getSelection)
{
var s = window.getSelection();
if (s.setBaseAndExtent)
{
s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
}
else
{
var r = document.createRange();
r.selectNodeContents(e);
s.removeAllRanges();
s.addRange(r);
}
}
else if (document.getSelection)
{
var s = document.getSelection();
var r = document.createRange();
r.selectNodeContents(e);
s.removeAllRanges();
s.addRange(r);
}
else if (document.selection)
{
var r = document.body.createTextRange();
r.moveToElementText(e);
r.select();
}
}
</script>
Next, go to ACP > Configuration > Languages > select your language > global.lang.php and search:
Quote:[Highlight] php_codeThen you add this code after the lang value of php_code:
Code:[Highlight]
<a href="#" onclick="selectCode(this); return false;">(SELECT ALL)</a>
Do the same thing with code.
I don't think we need a demo here, good luck.
< link removed >