The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Codebox like here

5 posters

Go down

Codebox like here Empty Codebox like here

Post by Yakko! January 7th 2011, 6:56 pm

How to have the select all
like here?

Code:
Yakko!
Yakko!
Forumember

Male Posts : 661
Reputation : -5
Language : Italian, english, Français

Back to top Go down

Codebox like here Empty Re: Codebox like here

Post by Maki1 January 7th 2011, 7:02 pm

We don't have that option yet.
Maki1
Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English »» CSS Stylesheet
Location : The » Support » forum » Section! • No support by PM If you need custom theme please contact me!

Back to top Go down

Codebox like here Empty Re: Codebox like here

Post by Guest January 7th 2011, 7:23 pm

I think forumotion will make a tutorial about this. i have done that for some weeks ago (: in my forum ;D
avatar
Guest
Guest


Back to top Go down

Codebox like here Empty Re: Codebox like here

Post by Yakko! January 7th 2011, 7:52 pm

thank!s!
but do you know how to do?
Yakko!
Yakko!
Forumember

Male Posts : 661
Reputation : -5
Language : Italian, english, Français

Back to top Go down

Codebox like here Empty Re: Codebox like here

Post by Yakko! January 9th 2011, 2:05 pm

up
Yakko!
Yakko!
Forumember

Male Posts : 661
Reputation : -5
Language : Italian, english, Français

Back to top Go down

Codebox like here Empty Re: Codebox like here

Post by Thegun January 9th 2011, 3:50 pm

I would also like to know
avatar
Thegun
New Member

Posts : 2
Reputation : 0
Language : English

Back to top Go down

Codebox like here Empty Re: Codebox like here

Post by panterua January 9th 2011, 4:14 pm

I think it is a future feature in the forums, watch the language, french, so it gives me to think that they are developing (from forumactif, france). summarize: we have to wait (i think xD)
panterua
panterua
Forumember

Male Posts : 90
Reputation : 110
Language : Spanish, English
Location : Uruguay

http://mudreadlocks.superforo.net/u8

Back to top Go down

Codebox like here Empty Re: Codebox like here

Post by *Mare-SBK™* January 9th 2011, 8:46 pm

Code:

<script>function selectCode(a)
{
  // Get ID of code block
  var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0];
 
  // Not IE
  if (window.getSelection)
  {
      var s = window.getSelection();
      // Safari
      if (s.setBaseAndExtent)
      {
        s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
      }
      // Firefox and Opera
      else
      {
        // workaround for bug # 42885
        if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) == '<BR>')
        {
            e.innerHTML = e.innerHTML + ' ';
        }
 
        var r = document.createRange();
        r.selectNodeContents(e);
        s.removeAllRanges();
        s.addRange(r);
      }
  }
  // Some older browsers
  else if (document.getSelection)
  {
      var s = document.getSelection();
      var r = document.createRange();
      r.selectNodeContents(e);
      s.removeAllRanges();
      s.addRange(r);
  }
  // IE
  else if (document.selection)
  {
      var r = document.body.createTextRange();
      r.moveToElementText(e);
      r.select();
  }
}
if(text){}else{ var text = 'Selecionar todos';}
jQuery(document).ready(function(){
  jQuery("dl.codebox dt").not("dl.spoiler > dt").html('Code: <a href="#" onclick="selectCode(this); return false;"><font face="verdana" color="white">       </font>Select All</a>');
});
</script>
Very Happy
*Mare-SBK™*
*Mare-SBK™*
Forumember

Male Posts : 181
Reputation : 16
Language : Serbian, English, German

http://design4u.forumsr.com/

Back to top Go down

Codebox like here Empty Re: Codebox like here

Post by Yakko! January 10th 2011, 6:28 pm

where to put it?
Yakko!
Yakko!
Forumember

Male Posts : 661
Reputation : -5
Language : Italian, english, Français

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum