Select all coded links

Status
Not open for further replies.

logger

Active Member
470
2012
38
290
is there a shortcode/plugin that makes you select ALL LINKS PLACED IN code .Example:

Code:
[COLOR=#ff0000][U][B]Select All links[/B][/U][/COLOR]

Link 1
Link 2
Link 3
Link 4
Link 5

thanks in advance
 
2 comments
no plugin reqd
simple javascript can do that


Code:
<script type="text/javascript">
    function selectText(containerid) {
        if (document.selection) {
            var range = document.body.createTextRange();
            range.moveToElementText(document.getElementById(containerid));
            range.select();
        } else if (window.getSelection) {
            var range = document.createRange();
            range.selectNode(document.getElementById(containerid));
            window.getSelection().addRange(range);
        }
    }
</script>


<style>
#selectable div{
width:10px;
}
</style>


<a href="#" onclick="selectText('selectable')">Select all</a>
<div id="selectable" style="background:#000;color:#fff;">
<div>
http://ul.to/files/5tghy76
http://k2s.cc/files/5tghy77
http://rg.to/files/5tghy78
</div>
</div>
 
thanks for the answer,but unfortunally thos goes in conflict with others java plugins i'm using on site..is the another solution by a chance?
 
Status
Not open for further replies.
Back
Top