Тестовик

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Тестовик » Инструменты для пользователя » Тег абзаца


Тег абзаца

Сообщений 1 страница 6 из 6

1

Тег абзаца

Код:
<!--ТЕГ  абзаца - [indent] -->
    <style>#button-indent {background:url(https://s7.uploads.ru/t/mnkgq.png)no-repeat center 6px!important;}</style>
    <script type="text/javascript">
    (function(){
    var b = '[indent]';
    $("#button-strike").after('<td id="button-indent" title="Отступ"><img src="/i/blank.gif"  onclick="smile(\''+b+'\')"></td>');
    var indent = '<span style="display:inline-block;margin:12px 23px;"></span>'; /*удвоенные Отступы сверху и слево*/
    $('.post-content p:contains("'+b+'")').each(function(){
    $(this).html( $(this).html().replace(/\[indent\]/gm,indent));
    });}());
    </script>

0

2

Тег абзаца

Код:
<!--ТЕГ  абзаца - [indent=X,Y] -->
<style>#button-indent {background:url(https://s7.uploads.ru/t/mnkgq.png)no-repeat center 6px!important;}</style>
<script type="text/javascript">
(function(){var c="[indent",h,e='<span style="display:inline-block;margin:YYem XXem;"></span>';
$("#button-strike").after('<td id="button-indent" title="Отступы"><img src="/i/blank.gif"  onclick="insert(\''+c+'=1,0]\')\"></td>');
function a(b,d){if(!d){return e.replace("XX","2").replace("YY","1")} /*удвоенные Отступы слева и сверху по умолчанию*/
else{return d.replace(/=(\d+(?:\.\d+)?)((?:,\d+(?:\.\d+)?)?)$/,function(f,i,g){h=e.replace("XX",i);v=g.substr(1);return h.replace("YY",(v?v:"0"));
})}}$('.post-content p:contains("'+c+'")').each(function(){$(this).html($(this).html().replace(/\[indent([=\d\.,]*?)\]/gm,a))})}());
</script>

0

3

Тег абзаца

Код:
<!-- HTML верх: ТЕГ абзаца - [indent] -->
<style>#button-indent {background:url(https://s7.uploads.ru/t/mnkgq.png)no-repeat center 6px!important;}
.custom_tag_indent {margin:1em 2.1em;}</style>
<script>
    MyBBCode.addEditorButton('indent', {
        name: "Красная строка",
        onclick: () => smile('[indent]'),
    }, 'left');
</script>

0

4

Код:
<!---------------------------- абзац---------------------------->
<style>#button-indent {background:url(https://s7.uplds.ru/t/mnkgq.png)no-repeat center 6px!important;}</style>
<script type="text/javascript">(function(){ var b = '[indent]';
$("#button-strike").after('<td id="button-indent" title="Отступы"><img src="/i/blank.gif"  onclick="smile(\''+b+'\')"></td>');
var indent = '<span style="display:inline-block; margin: 0.2em 1.1em; "></span>'; /*сверху и слева*/
$('.post-content p:contains("'+b+'")').each(function(){ $(this).html( $(this).html().replace(/\[indent\]/gm,indent));});}());
</script>

0

5

Код:
<!---------------------------- абзац---------------------------->
<style>#button-indent {background:url(https://forumstatic.ru/files/000f/09/5e/56600.png)no-repeat center 6px!important;}</style>
<script type="text/javascript">(function(){ var b = '[indent]';
$("#button-strike").after('<td id="button-indent" title="Отступы"><img src="/i/blank.gif" onclick="smile(\''+b+'\')"></td>');
var indent = '<span style="display:inline-block; margin: 0.2em 1.1em; "></span>'; /*сверху и слева*/
$('.post-content p:contains("'+b+'")').each(function(){ $(this).html( $(this).html().replace(/\[indent\]/gm,indent));});}());
</script>

0

6

Код:
<!----------- ТЕГ  абзаца - [indent] ------------->
<!-- style>#button-indent {background:url(https://forumstatic.ru/files/000b/09/4f/66482.png)no-repeat center 6px!important;}</style -->
<script type="text/javascript">(function(){ var b = '[indent]';
$("#button-transL").after('<td id="button-indent" title="Отступы"><img src="/i/blank.gif"  onclick="smile(\''+b+'\')"></td>');
var indent = '<span style="display:inline-block;margin: 0.6em 0.5em;"></span>'; 
$('.post-content p:contains("'+b+'")').each(function(){ $(this).html( $(this).html().replace(/\[indent\]/gm,indent));});}());
</script>

0


Вы здесь » Тестовик » Инструменты для пользователя » Тег абзаца


создать форум