...
Установленные скрипты
Страница: 1
Сообщений 1 страница 7 из 7
Поделиться25 января, 2017г. 15:14
Кнопка Вверх в каждом сообщении справа от Цитировать.
Автор: Duka
Установлен: HTML в форме ответа
Код:
<script type="text/javascript">
var arr=document.getElementsByTagName("li")
i=0
while(arr[i] ){
if(arr[i].className=="pl-quote"){
name=arr[i].innerHTML
name=name.substring(0)
arr[i].innerHTML=""+name+"     <a href=\"javascript:scroll(0,0);\">Вверх</a> "
}
i++
}
</script>Поделиться35 января, 2017г. 18:56
Скрываем название дополнительного поля
Автор: Deff
Установлен: HTML низ
Код:
<script type="text/javascript">
var A=[1,2,3,4,5]
$(".post .post-author li").each(function (){
for(var i=0; i<A.length;i++){if($(this).hasClass("pa-fld"+A[i])){
$(this).html($(this).html().replace(/^[^:]*:/,''));}};});
</script>Поделиться48 января, 2017г. 22:40
Кнопка выравнивания текста по ширине
Код:
<script>
$("#button-right").after('<td id="button-justify" title="Выравнивание по ширине"><img src="/i/blank.gif" onclick="bbcode(\'[align=justify]\', \'[/align]\');"/></td>');
</script>
<style>
#button-justify {
background: url("http://se.uploads.ru/LVN4z.png") no-repeat scroll center 6px rgba(0, 0, 0, 0) !important;
}
</style>Поделиться58 января, 2017г. 22:45
Код:
<script type="text/javascript">
function select_text(elem) {
if(window.getSelection) {
var s=window.getSelection();
if(s.setBaseAndExtent){
s.setBaseAndExtent(elem,0,elem,elem.innerText.length-1);
}
else {
var r=document.createRange();
r.selectNodeContents(elem);
s.removeAllRanges();
s.addRange(r);
}
}
else if(document.getSelection){
var s=document.getSelection();
var r=document.createRange();
r.selectNodeContents(elem);
s.removeAllRanges();
s.addRange(r);
}
else if(document.selection){
var r=document.body.createTextRange();
r.moveToElementText(elem);
r.select();
}
}
</script>
<script type="text/javascript">
var div = document.getElementById('pun-main').getElementsByTagName('div');
for(x in div){
if(div[x].className=='code-box'){
div[x].getElementsByTagName('strong')[0].innerHTML = '<a href="#" onclick="select_text(this.parentNode.parentNode.childNodes[1].getElementsByTagName(\'pre\')[0]); return false;">Выделить код</a>';
}
}
</script>Поделиться68 января, 2017г. 22:55
Код:
<!--ТЕГ абзаца - [indent] -->
<style>#button-indent {background:url(http://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:1em 2.1em;"></span>'; /*удвоенные Отступы сверху и слево*/
$('.post-content p:contains("'+b+'")').each(function(){ $(this).html( $(this).html().replace(/\[indent\]/gm,indent));});}());
</script>Поделиться715 февраля, 2018г. 04:04
оформление зачёркнутого текста
Код:
/* Форматирование текста */
s, strike, del{
display: inline-block;
text-decoration: none;
color: rgba(255, 255, 255, 0);
position: relative;
background: repeat-x, rosybrown;
transition: all 1s ease-out;}
s, strike, del:hover {
display: inline-block;
color: black;
text-decoration: none;
background: none;
background-position-y: 6px;
transition: all 1s ease-out;
}Страница: 1