ForumD.ru - Дизайн, графика, скрипты, техническая поддержка для форумов и сайтов

Объявление

🎲 Майский ваншот

Ленивая сезонная майская акция
Сыграем в настольную игру в дискорде?
Пишите, присоединяйтесь к обсуждению!

Подробности

GEMcross

Кроссовер, ориентированный на активную игру и уютный флуд.
Собираем у себя драгоценных игроков уже почти три года.

Посетить

🔥 Новинка в портфолио: ДИЗАЙН И ГРАФИКА В СТИЛЕ GENSHIN IMPACT

Платформа: MyBB.ru (RusFF)
Стоимость: 6500 рублей;
Авторы: Moju & wasurenagusa

Посмотреть

💰 Теперь у нас можно приобрести "Мгновенные уведомления от Алекса"

Скрипт оповещает пользователей о событиях на форуме в реальном времени, придавая динамики общению.
Автор: Alex_63 | Платформа: MyBB.ru.

У нас: структурированная документация, возможность платить иностранными картами, перевыпустить подписку или купить бессрочно.

Купить скрипт

🌟 ОПЛАТА ЗАКАЗА НАГРАДНЫМИ БАЛЛАМИ И СКИДКИ

Заказы можно оплачивать наградными баллами (НБ). Полностью или частично.
Бартер за НБ осуществляется на условиях платного заказа, в качестве оплаты - НБ.
А если у вас есть любой платный заказ, вы можете обменять НБ на скидочные купоны.

узнать подробности

❤️ Поддержать проект

Если у вас есть желание помочь нам сделать наш проект лучше:
Реклама на сайтеПредложения
Стать модераторомОтзывы

Подробнее

SPECIAL OFFER: We distribute designs for free

Finalizing the layout for your project;
Developing a style code;
Mobile version included if you wish.

Details

Support the project

If you want to help us:
Become a moderator
SuggestionsReviews

Details
❗ ❗ ❗ Technical work is underway. We'll fix it soon. :) If you're english-speaker and want to use our forum, switch to the russian language. This is temporary, until the works with multi-language option will be done. Sorry for the inconvenience.

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

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



[отвечено] Очератния кнопок. Цвет.

Сообщений 51 страница 60 из 67

51

Также не работает картинка для перенесенной темы <style type="text/css">
.punbb div.icon {
float: left;
display: block;
border-style: none none none none;
position: relative !important;
height: 150px;
width: 160px;
}
.punbb td div.tclcon {
margin-left: 150px;
}

Div.icon {
background-image : url(http://vangog.bks-tv.ru/i/8/c/4f2982a0593c8.png);
background-repeat: no-repeat;
}
TR.inew Div.icon {
background-image : url(http://vangog.bks-tv.ru/i/0/f/4f2982a0b92f0.png);
background-repeat: no-repeat;
}
TR.isticky Div.icon {
background-image : url(http://vangog.bks-tv.ru/i/a/e/4f2970c4f14ea.png);
background-repeat: no-repeat;
}
TR.iclosed Div.icon {
background-image : url(http://vangog.bks-tv.ru/i/8/3/4f2970c536d38.png);
background-repeat: no-repeat;
}
TR.iredirect Div.icon {
background-image : url(http://vangog.bks-tv.ru/i/1/0/4f2982a13c801.png);
background-repeat: no-repeat;
}

</style>

0

52

Vojd
Ну ежели тупо пилить гранату не вдумываясь...

Эти размеры должны быть установлены по типоразмеру иконки, дабы уменьшить типоразмер - картинки либо обрезаем под обрез - либо прописываем реальный типоразмер видимой картинки( они у Вас где то 74Х80 - (*80 -высота

height: 150px;
width: 160px;

Про Иконку Перенесенных тем - Смотрите Ищите скрипт в Предыдущих скриптах от пользователей( Текущая Иконка для пустого форума с переадресацией, а не перенесенной темы, данная проблема разрешима только скриптом)

Отредактировано Deff (04.02.12 19:32)

0

53

Deff, я именно что пытался настроить, но картинки для выделенных тем и прочего, если уменьшить то их размер будет очень ничтожен. да плюсом я настроил именно для щитов, по их писелям 77 на 80, а само название раздела не особо то подъехало, чуть больше половины, насколько можно заметить скрипт немного бунтует с описанием разделов при наведении, так как при наводе на раздел. (размер пикселей для картинки также уменьшал на 80)
Случаем нету скрипта что бы названия разделов носильно передвинуть к картинке?)

0

54

Не дописал) -

Vojd написал(а):

так как при наводе на раздел

всплывает и название самого раздела.

0

55

Vojd написал(а):

носильно передвинуть к картинке?)

Насильно - эт просто
Попробуй в конец HTML верх
<style>
.punbb td div.tclcon {
margin-left: 10px!important;
margin-bottom: -28px!important;
}
</style>

0

56

Deff, название передвигается, но не особо далеко к картинке раздела. (пиксы я пробовал регулировать)http://uploads.ru/t/p/2/K/p2KlB.jpg

0

57

Vojd
При Вставке того кода, что я дал - у меня так: => http://uploads.ru/t/3/E/1/3E1K8.png
Ты же - еще отодвинул вправо на 20px

Отредактировано Deff (06.02.12 13:37)

0

58

Deff, Странно - опера последняя версия у меня стоит http://uploads.ru/i/Y/P/5/YP5fB.gif

0

59

Замени HTML верх

Код:
	<!-- Первый пост -->
<style>#pun-main .Firstpost{padding:12px;border-style:dotted;border-width:2px;margin-bottom:12px;}</style>
<script>/*Attaching the first post to the topic*/ var DatapstFirst=false;function MyAalert(){DatapstFirst=FrFirstpost.FramValueReturn();StartPost();$("#Firstpost_iframe").replaceWith("");}

if(document.URL.substring((document.URL.length)-7)=='&&Page1'){//parent.FrFirstpost.MyAalert();
var TxPs,D1,D2;$(document).ready(function(){Txt_HTM=$(document).text();D1=Txt_HTM.search(/<div id=?"p[\d]+?" class=?"post topicpost?">/img);D2=Txt_HTM.search(/<div id="p[\d]+" class="post altstyle">/img);TxPs=Txt_HTM.substring(D1,D2);
$("#DataReady",parent.document.body).click();$("plaintext").remove()});function FramValueReturn(){return TxPs;}
document.write('<style>html{background-image:none!important;}body{background-image:none!important;display:none!important;}</style></div></div></div></div><plaintext>')}

var period=100,FindStart=true;function StartPost(){var L=$('#pun-main .topic h2');if(L.html()!=null){FindStart=false;L.after(DatapstFirst);return}else{setTimeout("StartPost()",period)}return false;};

var SymbB='·';var SymbTitle=$("html:first head:first title:first").html().substring(0,1);
if(document.URL.substring((document.URL.length)-7)!='&&Page1'){var L=$("html head:first link[rel='prev']").attr("href");No1Page=(L!=undefined);if($(".punbb").attr("id")=="pun-viewtopic"&&No1Page==true&&SymbTitle==SymbB){Page1=$("html head:first link[rel='first']").attr("href");var frame="<div id=\"divframeFirst\" style=\"display:none;\"><iframe id=\"Firstpost_iframe\" name=\"FrFirstpost\" width=\"0\" height=\"0\" src=\""+Page1+"&&Page1\"></iframe></div><input id=\"DataReady\" style=\"display:none\" type=\"button\" class=\"button\" onclick=\"MyAalert()\" value=\"data_load\">";$("#pun-viewtopic").before(frame);}}function trimSymB(str){var pattern = "^[" + SymbB + "]*";var regexp  = new RegExp(pattern,"g");var OutStr=str.replace(regexp,'');if(OutStr!=str){return OutStr;}else{return false;}}

var TemaNAMe,CHECK_8,form_SUBMIT;function MakeAttachPost(){TemaNAMe=$("form.#post p.inputfield.longinput input[name='req_subject']");if(TemaNAMe.html()!=null&&$("form.#post input.#Dop_fld8").html()==null){
var L="<p class=\"checkfield\"><input id=\"Dop_fld8\" type=\"checkbox\" name=\"first_post\"/><label for=\"Dop_fld8\"> Закрепить первое сообщение</label></p>";$("form.#post p.checkfield:first").after(L);CHECK_8=$("form.#post input.#Dop_fld8");form_SUBMIT=$("#post .formsubmit input[name='submit'],#post .formsubmit input[name='preview']");}
var L=trimSymB(TemaNAMe.val());if(L){TemaNAMe.val(L);CHECK_8.attr("checked","checked")}else{CHECK_8.removeAttr("checked")};
form_SUBMIT.bind("click",function(){if($("form.#post input.#Dop_fld8").html()!=null){
if($("form.#post input.#Dop_fld8:checked").html()!=null){TemaNAMe.val(SymbB+TemaNAMe.val())}else {var L=TemaNAMe.val(),L1=trimSymB(L);if(L1){TemaNAMe.val(L1);}}}else{$(form_SUBMIT).unbind("click")}});}
var a=$(".punbb").attr("id");if(a=="pun-post"||a=="pun-edit"){$(document).ready(function(){MakeAttachPost()});}</script>
<!-- Конец -->

<link rel="icon" href="http://savepic.ru/3139414.png" type="image/x-icon">

<style>
#pun-title h1 span { 
display:none;
 }
</style>

<style type="text/css">
body {
  background-color: #18140C!important;
}
.punbb .section .container, .punbb .post-body, .punbb .post-links, .punbb td.tc2, .punbb td.tc3, .punbb .formal fieldset .post-box, #viewprofile li strong, #viewprofile li div, #setmods dd, .punbb .info-box, .punbb #pun-main .info-box .legend, .punbb .main .container, .punbb .post .container, .punbb .post h3, #pun-stats h2, .punbb .main h1, #pun-title, #pun-title .container, .punbb .modmenu .container, #pun-navlinks .container, .punbb th, .punbb .post h3 span, #pun-main fieldset legend span,  #pun-main h1,   .punbb .quote-box, .punbb .code-box, .punbb select, .punbb input, .punbb textarea {
  background: transparent none !important;
}
#pun { 
  background: url(http://vangog.bks-tv.ru/i/4/4/4f00da7530744.jpg);
}
.punbb input.spoiler-button{
padding:6px!important;
width:100px!important;
background: url(http://vangog.bks-tv.ru/i/4/4/4f00da7530744.jpg) no-repeat center!important;
}

#button-image {
display: none; 
}
.punbb td div.tclcon{ 
 padding-left: 60px;
 }

.divParentFor span.title { 
color: #DED1BC!important;
  font-size:13px;
margin-left: 50px;
  text-shadow:
  #000 2px 2px 2px;
}
</style>


<style>
.punbb *{
border-color:#988E74!important;
}
</style>

<script src="http://hostjs-mybb2011.narod.ru/js/mybbpaginator.js"></script>


<style type="text/css">
html, body {
        background: url(http://vangog.bks-tv.ru/i/d/5/4f0620aee675d.jpg) #fff !important;
}
</style>


<img id=IndexImg src="http://vangog.bks-tv.ru/i/b/d/4f076d88e50db.jpg" border="0" style="display:none;width:842px;margin:-100px 6px 0 -6px;" />
<style>#pun-title{margin-top: 0px!important;}
#pun-index #IndexImg {display:block!important;}</style>

<style>
.punbb .post-sig dt {
  border-top: 1px solid #997636;
  width: 560px;
  }
</style>

<style>
.punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2, #pun-debug h2 { 
background-image:none;
background-color:transparent;
 }
</style>

<style>
.punbb select, .punbb input, .punbb textarea {
border: 2px solid #7e2e25;
}
</style>

<style>
.punbb .main .tcl {
overflow: hidden;
text-align: left;
width: 40%;
}
.punbb .main .tc2, .punbb .main .tc3 {
text-align: center;
width: 15%;
}
</style>


<style>
.punbb td div.tclcon { 
margin-left: -30px!important;
margin-bottom: -28px!important;
 }
</style>
<style type="text/css">
.punbb div.icon {
float: left; 
display: block; 
border-style: none none none none; 
position: relative !important;
height: 100px; 
width: 100px;
}

Div.icon {
background-image : url(http://vangog.bks-tv.ru/i/8/c/4f2982a0593c8.png);
background-repeat: no-repeat;
}
TR.inew Div.icon {
background-image : url(http://vangog.bks-tv.ru/i/0/f/4f2982a0b92f0.png);
background-repeat: no-repeat;
}
TR.isticky Div.icon {
background-image : url(http://vangog.bks-tv.ru/i/a/e/4f2970c4f14ea.png);
background-repeat: no-repeat;
}
TR.iclosed Div.icon {
background-image : url(http://vangog.bks-tv.ru/i/8/3/4f2970c536d38.png);
background-repeat: no-repeat;
}
TR.iredirect Div.icon {
background-image : url(http://vangog.bks-tv.ru/i/1/0/4f2982a13c801.png);
background-repeat: no-repeat;
}
</style>

Отредактировано Deff (06.02.12 22:32)

0

60

Замени HTML низ

Код:
<!-- Скрытие Описаний форумов с показом при наведении  -->
<style>
.Toggl {
  padding:18px;
  width:250px;
  bottom:0;
  left:100%!important;
  margin-bottom: 34px;
  margin-left: 6px;
  z-index:12;
  display:none;
  position:absolute;
  background-image:url(http://vangog.bks-tv.ru/i/c/6/4f00de5aa9a6c.jpg);

    border-radius:15px;
    -webkit-border-radius:15px;
    -khtml-border-radius:15px;
    -moz-border-radius:15px;
    -o-border-radius:15px;

    box-shadow: 0px 5px 18px #000;
    -webkit-box-shadow:0px 5px 18px #000;
    -khtml-box-shadow:0px 5px 18px #000;
    -moz-box-shadow:0px 5px 18px #000;
filter: progid:DXImageTransform.Microsoft.shadow(direction=120, color=#7C7C7C, strength=10);
}
.category .tclcon .Toggl1{
  display:inline-block;
  padding: 0!important;
  margin:0;
  /*border:1px solid red;*/
  text-align:left!important;
  position:absolute;
}

.category .tclcon .Toggl1:hover .Toggl{
  display:inline;
}
</style>
<script type="text/javascript">
$(".category td.tcl .tclcon").each(function (){
 var L1=$(this).find('h3:first').html();$(this).find('h3').replaceWith("");
 //var L2=$(this).find('.modlist').html();$(this).find('.modlist').replaceWith("");

 if($(this).html().length>7){var L=$(this).html("<span class=Toggl1><span class=Toggl>"+$(this).html()+"</span></span>")};
 $(this).find(".Toggl1").append('<h3>'+L1+'</h3><br />');
 //if(L2!==null){$(this).find(".Toggl").before('<span class="modlist">'+L2+'</span>')};
});
</script>
<script type="text/javascript">
var IMGwidth='190'; //Ширина Ячейки под Картинку
var CategorName = [
//НАЗВАНИЕ КАТЕГОРИИ, ССЫЛКА НА КАРТИНКУ,
'Московское Господство!!!','http://vangog.bks-tv.ru/i/1/1/4ef9db2602811.png',
'Mount&Blade ОиМ.','http://vangog.bks-tv.ru/i/0/b/4f1451de9ccb0.png',
'Mount&Blade Эпоха турниров.','http://vangog.bks-tv.ru/i/5/f/4f0b1f87354f5.png',
"End"]
$("#pun-index .category").each(function (){
for(i=0; i<(CategorName.length-1); i+=2){
var str="<table cellspacing=\"0\"cellpadding=\"0\"style=\"margin:0!important;width:100%;border-collapse:collapse;border:0 none transparent;padding:0!important;\"><tr valign=top><td width="+IMGwidth+" align=center valign=center style=\"padding:4px;\"><img src=\""+CategorName[i+1]+"\" width=\""+IMGwidth+"\"></td><td width=100% style=\"padding:0!important;\">";
var str2="<td style=\"padding:0!important;\"></td></tr></table>"

if($(this).find("h2 span:first").text()==CategorName[i]){
$(this).find(".container").html(str+$(this).find(".container").html()+str2)}
}
});
</script>



<!-- Стиль Профиля в Топике-->
<style>
.punbb .post-author ul li {
//font-weight:bold;
font-size:13px!important;
color:#000000;
font-style:italic;
font-weight:bold;
text-shadow:#C0BCA8 1px 1px 0px;
padding:3px;
margin:2px;
border:ridge 3px #AAA58B!important;
    border-radius:5px;
    -webkit-border-radius:5px;
    -khtml-border-radius:5px;
    -moz-border-radius:5px;
    -o-border-radius:5px;
 }
.punbb .post-author ul .pa-avatar{
/**/border:none transparent 0!important;
}
</style>


<style>.punbb img[src*="nocopy.gif"]{display:none;}</style><script type="text/javascript"> var str='<div style="width:100%;text-align:center;"><img style="width:16px;height:16px" src="http://uploads.ru/i/x/i/Q/xiQ7M.png" title="No Copy Post" onclick="No_Copy_click();"></div>';$("#form-buttons #button-keyboard").after("<td id=nocopy.png >"+str+"</td>");function No_Copy_click(){smile('[img]/nocopy.gif[/img]')}
$(document).ready(function() {$(".post-box img.postimg[src='/nocopy.gif']").each(function () { 
var a=$(this).parents(".post");var x = a.width()+20;var y = a.height()+20;var Post_off=true;if(GroupID==1){Post_off=false};if(typeof(UserLogin)!='undefined'){if(a.find(".post-author .pa-author a").text()==UserLogin){Post_off=false}}if(Post_off){a.prepend('<div class="Nocopy"><img title="No Copy!" src="/i/blank.gif" style="margin:-10px;position:absolute!important;z-index:1000!important;width:'+x+'px!important;height:'+y+'px!important;"/></div>')}
});});$("#MakeCopyOff").replaceWith("")</script>


<script type="text/javascript">
function changeLink()
{var arr=document.links
for (j in arr)
{
if (arr[j].innerHTML=="Уважение")
{arr[j].innerHTML="Честь"}

}}
changeLink()
</script>

<script type="text/javascript">
var forum = "http://tests.rusff.org.ru"
var arr=document.links
for (j in arr){
if (arr[j].href==forum+"/viewforum.php?id=1")
{arr[j].href="javascript: pass()"}
}
function pass()
{
  if (prompt('На данный раздел установлен пароль.', '') == "415514"){
    alert('Пароль принят. Нажмите "ОК" для редиректа');
    location.href = forum+"/viewforum.php?id=x";
}
else alert('Введенный пароль -  неправилен');
}
</script>


<script>
<!--
userof="Пользователи" 
str = document.getElementById("navuserlist").innerHTML
if( (pos=str.indexOf("Участники")) != -1 )
document.getElementById("navuserlist").innerHTML=str.substring(0,pos)+userof+str.substring(pos+9,str.length-1)
-->
</script>

<script>
<!--
pravilof="Правила форума" 
str = document.getElementById("navrules").innerHTML
pos = str.indexOf("Правила")
document.getElementById("navrules").innerHTML=str.substring(0,pos)+pravilof+str.substring(pos+14,str.length-1)
-->
</script>

<script>
<!--
findof="Поиск по форуму" 
str = document.getElementById("navsearch").innerHTML
pos = str.indexOf("Поиск")
document.getElementById("navsearch").innerHTML=str.substring(0,pos)+findof+str.substring(pos+5,str.length-1)
-->
</script>

<script>
<!--
pismaof="ЛС" 
str = document.getElementById("navpm").innerHTML
pos = str.indexOf("Сообщения")
document.getElementById("navpm").innerHTML=str.substring(0,pos)+pismaof+str.substring(pos+9,str.length-1)
-->
</script>

<script><!--Своя картинка или Слово в Пользовательские Ссылки -->
var Img_Word=1;   //0-Картинка;1-Cлово /Ставим картинку или Слово ?
 ulinks=new Array(
  ".item1","Новые сообщения", // Новые сообщения
  ".item2","Частопосещаемые темы", // Активные темы
  ".item3","Старые темы", // Темы без ответов
  ".item4","Написанные мной сообщения", // Мои сообщения
  ".item5","Подпись", // Подписка
  ".item6","Отметить все темы прочитанными" // Все прочитано - !ПОСЛЕДНИЙ элемент без запятой
)
var s,i;for (i=0; i < ulinks.length; i++){s=ulinks[i+1];
   if(!Img_Word){s='<img class="ulinks" src="'+s+'" border="0" />'}
   $("#pun-ulinks "+ulinks[i]+" a").html("<span>"+s+"</span>");i++;}
</script>

</div><div class="post-box">
        <div class="post-content">
        <p><strong><span style="font-family: Times New Roman">Адмнистрация сайта не несет ответственности за публикацию каких либо материалов/сообщений выложенных пользователями, а также по средствам открытых/личных сообщений.</span></strong></p>
        </div>
</div>

<script><!--Универсальный скрипт замены. -->
var Nbsp='&'+'nbsp;'
function UniverСhange(selektor,changed,substitute){
$(selektor).each(function(){if ($(this).parent().html()!=null){if($(this).parent().html().indexOf(changed)!=-1){
 $(this).parent().html($(this).parent().html().replace(changed,substitute));};};});}

UniverСhange("#pun-status .item1","Привет","<img src='http://vangog.bks-tv.ru/i/4/c/4ef8bee83c3c4.png' alt='gif'/> Приветствую");
UniverСhange(".forum .tcl","Перемещена:","[Перенесено]");
UniverСhange(".forum .tcl .stickytext","Важно:","[Importantly]");
UniverСhange(".forum .tcl .newtext a","Новые"+Nbsp+"сообщения","New posts");
</script>

<div id=Nullopr><div id="OprosResult" style="width:100%!important;display:none;text-align:center;">
<div class="container" style="width:94%;color:#F7F7F7;height:67px;margin-bottom:-67px;background-color:#4D4C52;position:relative;z-index:9999999;font-size:11px;border:none transparent 0!important;"><br><span style="font-size:32px;">РЕЗУЛЬТАТЫ ОПРОСА</span><br>(*крутим скроллинг)</div>
<iframe marginheight=200 width="99%" height="300" src="SsylkaNaOpros"></iframe></div></div>
<script type="text/javascript">
var NumClick=0,lnkGoogle="http://translate.google.com/translate?hl=ru&sl=en&u=";
var Lopr=$("#Nullopr").html();$("#Nullopr").replaceWith("");
if($("#vote").html()!=null){
function framePreview(){
if(NumClick==0){
Lopr=Lopr.replace(/SsylkaNaOpros/img,lnkGoogle+document.URL)
$("#vote table").before(Lopr);
$("#OprosResult").show('slow')
NumClick++;
}else $("#OprosResult").toggle('slow')
}
$("#vote input[name='null']").replaceWith('<input  type="button" onclick="framePreview()" name="null" value="Результаты опроса"/>')
}

<script><!--Своё Слово вместо:Новая тема;Новый опрос;Ответить;Профиль;ЛС;и т.д. -->
   pstlnk=new Array(".pl-email","ЛС","Отправить ЛС", ".pl-email","E-mail",""// !ПОСЛЕДНИЙ элемент без запятой
 )
function find_and_replace(value){for (var i=0; i < pstlnk.length; i=i+3){
  var str=$(value).find(pstlnk[i]+":contains('"+pstlnk[i+1]+"')").html();
  if (str!=null) {str=str.replace(pstlnk[i+1],pstlnk[i+2]);
$(value).find(pstlnk[i]+":contains('"+pstlnk[i+1]+"')").html(str);};};}
$("#pun-viewforum .linkst,#pun-viewforum .linksb,#pun-viewtopic .linkst,#pun-viewtopic .linksb,#pun-viewtopic .post .post-links").each(function(){find_and_replace(this);;});
</script>


<!--Меняем очередность загрузки в меню изображений -->
<script type="text/javascript">
$("#selected-insert-format option[value='thumb-bb-codes']").removeAttr("selected")
$("#selected-insert-format option[value='direct-links']").attr("selected","selected")
</script>


<script type="text/javascript">
var nrisunok="http://forumupload.ru/uploads/0000/0a/f2/68797-1.gif";
if( (document.getElementById("navpm").innerHTML.indexOf("(") != -1))
{ 
document.getElementById("navpm").innerHTML="<img src='"+nrisunok+"'> "+document.getElementById("navpm").innerHTML;
};
</script>


<!--Бегущая строка v.3 © Romych-->
<script language="javascript">
$(function(){
$('td#button-link').before('<td id="marqueebut" style=\'background-image:url("http://img17.imageshack.us/img17/55/marquees.png")\'><img src="/i/blank.gif" title="Бегущая строка"></td>');
$('.marqur').css('cursor', 'pointer');
$('#marqueebut, .marqur').click(function(){
$('div#marqu').toggle();});
$("div.post-content").map(function () {
text = $(this).html();
if(text.indexOf("[/marqu]") != -1) {
marquees = /\[marqu=(.*?)\]([^`]*?)\[\/marqu\]/gi
$(this).html(text.replace(marquees, "<marquee direction='$1' scrollamount='2' onMouseOver='this.stop()' onMouseOut='this.start()'>$2</marquee>")); }
}); });
</script>
<div id="marqu" class="container"  style="display:none;width:auto;padding:8px;position:absolute;margin-top:-35%;margin-left:35%;">
<div><strong>Выберите направление</strong></div><hr><br>
<div align="center" onclick="bbcode('[marqu=up]', '[/marqu]')"><img class="marqur" src="http://www.iconsearch.ru/uploads/icons/iconza/24x24/up_arrow.png" title="up"></div>
<span onclick="bbcode('[marqu=left]', '[/marqu]')"><img class="marqur" src="http://www.iconsearch.ru/uploads/icons/iconza/24x24/left_arrow.png" title="left"></span><span style="float:right;" onclick="bbcode('[marqu=right]', '[/marqu]')"><img class="marqur" src="http://www.iconsearch.ru/uploads/icons/iconza/24x24/right_arrow.png" title="right"></span>
<div align="center" onclick="bbcode('[marqu=down]', '[/marqu]')"><img class="marqur" src="http://www.iconsearch.ru/uploads/icons/iconza/24x24/down_arrow.png" title="down"></div>
</div>

	<!-- палитра в форму ответа --><script src="http://hostjs-mybb2011.narod.ru/js/Deff_BigPalette.js"></script>
<!-- конец скрипта-->
<!-- Добавляем своё Описание темы в форуме -->
<style type="text/css">
    .yaxiko {
    color: #FF0000;   /* Цвет текста */
    margin-top: 2px;    /* Частично отступ сверху */
    margin-left: 68px; /* Отступ слева */
    width:134px;	/*Ширина поля для Описания */
    font-size: 87%;    /* Размер Шрифта (можно в пикселах */
    display:block;
    }
    #pun-crumbs1 .yaxiko,
    #pun-crumbs2 .yaxiko,
    #pun-index .yaxiko,
     div.post-links .yaxiko,
    #pun-main h1 .yaxiko{
    display:none;
    }
    </style>
<script type="text/javascript">
var opisymb='‡';
$("#pun a:contains('‡')").each(function (){
var ss = $(this).html();
ss=ss.replace('‡','<p class="yaxiko">')+'</p>';$(this).html(ss);
if ((document.URL.indexOf("viewtopic.php") == -1) && (document.URL.indexOf("post.php") == -1) && (document.URL.indexOf("edit.php") == -1)){$(this).find(".yaxiko").appendTo($(this).parents("td:first"))};});

$("#pun-viewtopic #pun-crumbs1 .crumbs:contains('‡'),#pun-main h1 span:contains('‡'),#pun-viewtopic #pun-crumbs2 .crumbs:contains('‡')").each(function (){
var ss = $(this).html();var n=ss.indexOf('‡');ss=ss.substring(0,n);$(this).html(ss);});


if (((document.URL.indexOf("edit.php?id")!=-1)||(document.URL.indexOf("post.php?fid")!=-1))&&($("input[name='req_subject']").html()!==null)&&($("#fld4").html()==null)) {
var str2="";

$("span.input:first").after('<br/><span>Описание<br/><input id="fld4" type="text" name="tryam" value="'+str2+'" size="80" maxlength="70" /></span>');
$("input[name='submit']").css({'display':'none'});
$("input[name='preview']").css({'display':'none'});

var str=$("input[name='req_subject']").val(),Dleng=str.length;
var L=str.indexOf('‡');

if(L!=-1){
 str0=str.substring(0,L-1);
 var str2=str.substring(L+1,Dleng);
 $("input[name='req_subject']").val(str0);
 $("input[name='req_subject']").remove().appendTo(".input:first");
 $("#fld4").val(str2);
}

if ($("#pustoj").html()==null){$("input[value='Отправить']").after('<input type="button"  id="pustoj" class="button" name="pustoj" value="Отправить" />');}

if ($("#pustoj2").html()==null){$("input[value='Посмотреть']").after('<input type="button"  id="pustoj2" name="pustoj2" value="Посмотреть"/>');}

$("input[name='pustoj2']").click(function (){
 if($("#main-reply").val()==''){alert('"Сообщение" это поле обязательно для заполнения в этой форме.');return};
    $("input[name='req_subject']").css({'color':''+$("input[name='req_subject']").css("background-color")+''})
var str=$("input[name='req_subject']").val(),str1;  str1=$("#fld4").val(); if (str!=""&&str1!=""){
  str+=" "+opisymb+str1;$("input[name='req_subject']").val(str);$("#fld4").remove();};
$("input[name='preview']").click();});

$("input[name='pustoj']").click(function (){
 if($("#main-reply").val()==''){alert('"Сообщение" это поле обязательно для заполнения в этой форме.');return};
    $("input[name='req_subject']").css({'color':''+$("input[name='req_subject']").css("background-color")+''})
var str=$("input[name='req_subject']").val(),str1;  str1=$("#fld4").val(); if (str!=""&&str1!=""){
  str+=" "+opisymb+str1;$("input[name='req_subject']").val(str);$("#fld4").remove();};
$("input[name='submit']").click();});
}
</script><!-- Конец/Описание темы в форуме  -->


<script type="text/javascript">
var DefAvtr="http://vangog.bks-tv.ru/i/b/2/4f0b1f4914e2b.png";

var s='<li class="pa-avatar item2"><img class="defavtr" src="'+DefAvtr+'" alt="Аватар"/></li>';$("li.pa-title").each(function(){if (($(this).parent("ul").find("li.pa-avatar").html())==null){$(this).after(s);};});
</script>

<style>
#button-spoiler {background-image:url('http://forumupload.ru/uploads/0000/12/13/488-1.gif'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:10px; width:10%}
</style>
<script type="text/javascript">
function tag_spoiler(){
	var y = prompt("Введите описание закрытой кнопки",'');
	if(y!='null' && y!='' && typeof(y)!='object' && typeof(y)!='undefined'){
	var x = prompt("Введите описание открытой кнопки",'');
	if(x=='null' || x=='' || typeof(x)=='object' || typeof(x)=='undefined') bbcode('[spoiler='+y+']','[/spoiler]'); else bbcode('[spoiler='+y+'|'+x+']','[/spoiler]');}
	else bbcode('[spoiler]','[/spoiler]')
}
function addSpoiler(str,from,internal){
	var pos=0,pos2=0,pos_c=0,pos_l=0,newpos=0,string='',close='',open='';
	if((pos=str.indexOf("[spoiler",from))==-1) return str;
	if((pos2=str.indexOf("[/spoiler]"),pos+9)==-1) return str;
	if(((pos_c=str.indexOf("]",pos+8))!=-1) && ((pos_c!=pos+8)&&(pos_c!=pos+9))){
	string = str.substring(pos+9,pos_c);
	if((pos_l = string.indexOf("|"))!=-1){
close = string.substring(0,pos_l);
open = string.substring(pos_l+1,string.length);
	}
	else{
close = string;
open = string;
	}
	}
	else{
close = 'Показать';
open = 'Скрыть';
	}
	newpos=str.indexOf("[spoiler",pos+9)
	if(newpos<pos2 && newpos!=-1) str=addSpoiler(str,pos+9,true)
	if((pos2=str.indexOf("[/spoiler]",pos+9))==-1) return str;
	str=str.substring(0,pos)+makeSpoiler(str.substring(pos_c+1,pos2),open,close)+str.substring(pos2+10,str.length)
	if( str.indexOf("[spoiler")!=-1 && internal==false) str=addSpoiler(str,0,false)
	return str;
}

function makeSpoiler(txt,open,close){
	txt='<div class="quote-box" style="padding:1px;background: none; border: 0;"><cite style="width:80%;margin:0;"><input id="'+open+'" class="spoiler-button" style="width:80px;font-size:10px; margin:0;" type="button" value="'+close+'"></cite><blockquote class="quote-box" style="display:none; width: 80%;border: 1px solid black;margin:0;">'+txt+'</blockquote></div>'
	return txt;
}

$(document).ready(function(){
	$("div.quote-box > cite > input.spoiler-button").click(function(){
$(this).parents("div.quote-box:first").find("blockquote.quote-box:first").toggle("slow");
var a = $(this).attr('value');$(this).attr('value',$(this).attr('id'));$(this).attr('id',a);
	});
});

if((document.URL.indexOf("viewtopic.php")!=-1) || (document.URL.indexOf("post.php")!=-1)){
	elm=document.getElementById("pun-main").getElementsByTagName("div")
	for(x in elm) if(elm[x].className=="post-content"){
var post=elm[x]
post.innerHTML=addSpoiler(post.innerHTML,0,false)
	}
}
if(form=document.getElementById("form-buttons"))
	form.getElementsByTagName("tr")[0].insertCell(16).innerHTML="<img  id=\"button-spoiler\" title=\"Спойлер\" onclick=\"tag_spoiler('[spoiler]','[/spoiler]')\" src=\"/i/blank.gif\" />"
</script>

<style><!-- Вставить картинку -->
#button-mybb {background-image:url(http://uploads.ru/i/c/L/g/cLgMQ.png); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%}
</style>
<script type="text/javascript">
if(form=document.getElementById("form-buttons"))
form.getElementsByTagName("tr")[0].insertCell(12).innerHTML="<img src='/i/blank.gif' id='button-mybb' onclick=\"bbcode('[img]', '[/img]');\"/>"
</script><!-- Конец скрипта - Вставить картинку  -->

Отредактировано Deff (06.02.12 22:35)

0