Skip to content
WJunction - Webmaster Forum

Select all coded links

Status
Not open for further replies.
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.

About the author

L
Active Member · Joined
locking for uploaders .paid: https://www.wjunction.com/threads/hiring-uploaders.246901/
470
Messages
38
Reactions
28
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom