The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Codebox like here

View previous topic View next topic Go down

Codebox like here

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

How to have the select all
like here?

Code:

Yakko!
Forumember

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

Back to top Go down

Re: Codebox like here

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

We don't have that option yet.

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!

http://forumdesigners.forumotion.com/

Back to top Go down

Re: Codebox like here

Post by Guest on 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

Guest
Guest


Back to top Go down

Re: Codebox like here

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

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

Yakko!
Forumember

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

Back to top Go down

Re: Codebox like here

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

up

Yakko!
Forumember

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

Back to top Go down

Re: Codebox like here

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

I would also like to know

Thegun
New Member

Posts : 2
Reputation : 0
Language : English

Back to top Go down

Re: Codebox like here

Post by panterua on 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
Forumember

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

http://mudreadlocks.superforo.net/u8

Back to top Go down

Re: Codebox like here

Post by *Mare-SBK™* on 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™*
Forumember

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

http://design4u.forumsr.com/

Back to top Go down

Re: Codebox like here

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

where to put it?

Yakko!
Forumember

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

Back to top Go down

View previous topic View next topic Back to top


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