http://mods.mybb.com/view/select-all-in-code-and-phpsarhad12 said:http://awesomescreenshot.com/0bf43g8p13
Shole im, refering to this code! select all is not working.
Only if you know how to cod the forum I think. Have you tried it with different themes ?sarhad12 said:is it not possible without mod?
<script type="text/javascript">
$('IDENTIFY YOUR SECTION').focus(function() {
var $this = $(this);
$this.select();
window.setTimeout(function() {
$this.select();
}, 1);
function mouseUpHandler() {
$this.off("mouseup", mouseUpHandler);
return false;
}
$this.mouseup(mouseUpHandler);
});
</script>
$('div.code').focus(function() {
<script type="text/javascript">
var textBox = document.getElementById("ID OF YOUR SECTION");
textBox.onfocus = function() {
textBox.select();
textBox.onmouseup = function() {
textBox.onmouseup = null;
return false;
};
};
</script>
var textBox = document.getElementById("blah");
Since 2007, Forum Promotion has specialized in providing advertising solutions to webmasters looking to promote their communities. We pride ourselves in being the bridge that connects forum administrators, bloggers, and more.
We use essential cookies to make this site work, and optional cookies to enhance your experience.