Форум А и О (скрипты, дизайн, общение)

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

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



Скрипты

Сообщений 31 страница 60 из 218

31

Студентка написал(а):

Сколько посетителей на Вашем сайте

Куда вставлять?

0

32

Пупся написал(а):

Куда вставлять?

я думаю что низ, только цвет поменять лучше-белый не очень смотрится

0

33

А можно я парочку подброшу :rolleyes:
Цветовыделение ников,админов и модераторов в низ

Отредактировано CIS (2009-03-18 19:47:14)

+1

34

Скрипт делаюший на форуме пунктир-рамку…в место цвета можно поставить любой свой #...

0

35

Скрипт позволяющий делать объявление на форуме очень заметным
Вставлять в объявление

Код:
<SCRIPT language=JavaScript> 
 <!-- Begin fantasyflash.ru
text = "ВАШ ТЕКСТ !"; 
color1 = "#9999FF"; 
color2 = "#99CC99"; 
fontsize = "6"; 
speed =" 98 "; 
i = 0;
if (navigator.appName == "Netscape") {
document.write("<layer id=a visibility=show></layer>");
}
else {
document.write("<div id=a></div>");
}
function changeCharColor() {
if (navigator.appName == "Netscape") {
document.a.document.write("<center><font size =" + fontsize + "><font color=" + color1 + ">");
for (var j = 0; j < text.length; j++) {
if(j == i) {
document.a.document.write("<font color=" + color2 + ">" + text.charAt(i) + "</font>");
}
else {
document.a.document.write(text.charAt(j));
}
}
document.a.document.write('</font></font></center>');
document.a.document.close();
}
if (navigator.appName == "Microsoft Internet Explorer") {
str = "<center><font size=" + fontsize + "><font color=" + color1 + ">";
for (var j = 0; j < text.length; j++) {
if( j == i) {
str += "<font color=" + color2 + ">" + text.charAt(i) + "</font>";
}//osw 
else {
str += text.charAt(j);
}
}
str += "</font></font></center>";
a.innerHTML = str;
}
(i == text.length) ? i=0 : i++; 
}
setInterval("changeCharColor()", speed);
--></SCRIPT>

0

36

Скрипт для выделения цветом(картинкой) -цитаты выделяемого, или скрытого текста-

Сейчас картинка у меня такая-

http://img1.liveinternet.ru/images/attach/b/3/6/164/6164090_19.gif

0

37

Как поставить картинку в форме быстрго ответа?

вот так, красным-меняем картинку

<style type="text/css">
.punbb textarea {background: url(http://site.ru/image.gif) top right no-repeat}
</style>

0

38

Все коды CSS вставляются в поле HTML-верх, какими страшными они небыли

Все коды CSS начинаются тэгом <style> и заканчиваются тэгом</style>

Вот самые востребованные коды CSS:

Сделать название темы и ее описание посредине:

Код:
<style>
#pun-main .category .container table .hasicon .alt1 .tcl .intd .tclcon,
#pun-main .category .container table .hasicon .alt2 .tcl .intd .tclcon {text-align: center}
</style>

Иконки тем и есть новые сообщения

Код:
<style>Div.icon {
background-image: url(http://img210.imageshack.us/img210/1153/onterrall6.gif);
background-repeat: no-repeat; }
Tr.inew Div.icon {
background-image: url(http://img210.imageshack.us/img210/4800/offterracy4.gif);
background-repeat: no-repeat; }</style>

Фон форума

Код:
<style>
HTML, BODY {background-image: url(http://re.foto.radikal.ru/0709/47/22eea14069b5.jpg)}
</style>

Логотип

Код:
<style>
#pun-title .title-logo {background-image: url(ССЫЛКА на картинку)}</style>

Ссылки при наведении становятся заданого цвета

Код:
<style>
.punbb a:hover {color: ЦВЕТ}
</style>

Цвет линии , отделяющий подпись

Код:
<style>
#pun #pun-viewtopic #pun-main .topic .container .post-body .post-box .post-content .post-sig dt {background-color: red}
</style>

Делает по центру абсолютно всё на главной

Код:
<style>
HTML, BODY , #pun, #pun #pun-index #pun-main .category .container table thead tr .tcl, #pun-main .category .container table .hasicon .alt1 .tcl .intd .tclcon,
#pun-main .category .container table .hasicon .alt2 .tcl .intd .tclcon {text-align: center}
</style>

Размер текста и шрифт

Код:
<style>
HTML, BODY {font-family:ШРИФТ ;font-size: Размер }
</style>

Варианты размеров: xx-small, x-small, small, medium, large, x-large, xx-large

Убрать ссылку "поиск"

Код:
<style>
#pun #pun-index #pun-navlinks .container #navsearch a span, #pun .punbb #pun-navlinks .container #navsearch a span,
#pun #pun-index #pun-navlinks .container #navsearch, #pun .punbb #pun-navlinks .container #navsearch,
{ display: none }
</style>

Убрать строку "зарегестрированых пользователей"

Код:
<style type="text/css">
#pun #pun-index #pun-stats .statscon .container .item3 span, #pun #pun-index #pun-stats .statscon .container .item3 strong {display: none}
</style>

Цвет ссылок

Код:
<style>
.punbb a:link {color: pink}
.punbb a:visited {color: red;}
.punbb a:hover {color: black;}

</style>

1 - цвет в норме
2 - посещенная ссылка
3 - при наведении

Это кроме меню навигации и ссылок снизу, они задаются соответственно

Код:
#pun-navlinks .container {color: white}
#pun-ulinks .container {color: white}

Фон статистики и цвет самой надписи "статистика"

Код:
<style>
#pun #pun-index #pun-stats h2{background-image: url(ССЫЛЬ) ; color: red}
</style>

Цвет фона статус строки цвет поля с названием форума

Код:
<style>
.pa-title {background-color: black}

#pun #pun-index #pun-crumbs1 .crumbs{background-color: aqua; color: red}
</style>

PS:
color- цвет текста
background-color- цвет фона
Первая строка в коде: цвет ссылок пользователя
2: фон поля, где салово "обьявление" и цвет самого слова
3: цвет фона статус-строки
4: цвет поля с названием форума и цвет самого названия форума


Ширина таблиц на главной

Код:
<style>
#pun {width:ЗНАЧЕНИЕ}
</style>

Цвет тему просматривают, рамка вокруг места для написания поста, смена цвета надписи "напишите ваше сообщение и нажмите отправить"

Код:
<style>
#pun #pun-viewtopic #pun-main .modmenu .container , #pun #pun-viewtopic #pun-main .modmenu .container b {color: red}

#pun #pun-viewtopic #pun-main .formal #post fieldset legend span {background-color: black ; color: white}

#pun #pun-viewtopic #pun-main .formal #post fieldset {border-color: red}
</style>

Первый блок - тему просматривают(цвет)
второй - "напишите ваваше сообщение и нажмите отправить" (цвет фона и цвет самого текста)
третий - "рамка"

Цвет ссылки на профиль(НИК, при нажатии на него -профиль)

Код:
<style>
#pun #pun-userlist #pun-main .usertable .container table tbody .altstyle .tcl .usersname,
#pun #pun-userlist #pun-main .usertable .container table tbody tr .tcl .usersname a:link {color: red;}

#pun #pun-userlist #pun-main .usertable .container table tbody .altstyle .tcl .usersname,
#pun #pun-userlist #pun-main .usertable .container table tbody tr .tcl .usersname a:hover {color: black;}

#pun #pun-userlist #pun-main .usertable .container table tbody .altstyle .tcl .usersname,
#pun #pun-userlist #pun-main .usertable .container table tbody tr .tcl .usersname a:visited {color: white}

</style>

Первый блок - цвет просто ссылки
Второй блок - цвет ссылки под курсором
Третий блок - посещенная ссылка!!!


Сделать все данные пользователя по центру

Код:
<style type="text/css">
.pa-adnote{ text-align: center;}
.pa-from{ text-align: center;}
.pa-reg{ text-align: center;}
.pa-posts{ text-align: center;}
.pa-reputation{ text-align: center;}
.pa-sex{ text-align: center;}
.pa-icq{ text-align: center;}
.pa-ip{ text-align: center;}
.pa-online{ text-align: center;}
.pa-age{ text-align: center;}
.pa-mailagent{ text-align: center;}
.pa-reg { text-align: center;}
.pa-avatar, .pa-title, .pa-author { text-align: center;}
.pa-time-visit{ text-align: center;}
.pa-last-visit{ text-align: center;}
.pa-fld1{ text-align: center;}
.pa-fld2{ text-align: center;}
.pa-fld3{ text-align: center;}
</style>

Убрать обьявление на странице ПОСТОВ

Код:
<style>
#pun #pun-viewtopic #pun-announcement{display: none}
</style>

Сделать весь форум курсивом

Код:
<style>
#pun #pun-index, #pun #pun-viewtopic, #pun .punbb{font-style: italic}
</style>


Изменить/поставить значки возле ссылок "форум" , "Участники" , "Правила" и тд

Код:
<style>
#pun #pun-index #pun-navlinks .container #navindex,
#pun #pun-index #pun-navlinks .container #navuserlist,
#pun #pun-index #pun-navlinks .container #navsearch,
#pun #pun-index #pun-navlinks .container #navprofile,
#pun #pun-index #pun-navlinks .container #navpm,
#pun #pun-index #pun-navlinks .container #navadmin,
#pun #pun-index #pun-navlinks .container #navlogout,
#pun #pun-index #pun-navlinks .container #navregister,
#pun #pun-index #pun-navlinks .container #navlogin,

#pun .punbb #pun-navlinks .container #navindex,
#pun .punbb #pun-navlinks .container #navuserlist,
#pun .punbb #pun-navlinks .container #navsearch,
#pun .punbb #pun-navlinks .container #navprofile,
#pun .punbb #pun-navlinks .container #navpm,
#pun .punbb #pun-navlinks .container #navadmin,
#pun .punbb #pun-navlinks .container #navlogout,
#pun .punbb #pun-navlinks .container #navregister,
#pun .punbb #pun-navlinks .container #navlogin

{background-image: url(Рисунок)}
</style>

Изменить фон таблиц

Код:
<style>
#pun #pun-index #pun-main .category .container table .hasicon .alt1 .tcl,
#pun #pun-index #pun-main .category .container table .hasicon .alt2 .tcl,
#pun #pun-index #pun-main .category .container table .hasicon .alt1 .tc2,
#pun #pun-index #pun-main .category .container table .hasicon .alt2 .tc2,
#pun #pun-index #pun-main .category .container table .hasicon .alt1 .tc3,
#pun #pun-index #pun-main .category .container table .hasicon .alt2 .tc3,
#pun #pun-index #pun-main .category .container table .hasicon .alt1 .tcr,
#pun #pun-index #pun-main .category .container table .hasicon .alt2 .tcr  {background-image: url(Рисунок)}
</style>

Цвет полосы прокрутки. Только для ИЕ

Код:
<style>
html, body{scrollbar-base-color: red}
</style>

Убрать слово "Обьявление"

Код:
<style>
#pun #pun-index #pun-announcement h2 span {display: none}
</style>

+1

39

Amber
:cool:
Спасибо!!Очень полезная информация!!!Лови + :flag:

0

40

Новый скрипт смайлов.
Duka

Зачем он? ведь и так много подобных скриптов? Ответ просто - тяжело найти чтото рабочее.
Чем этот скрипт отличается от других? Тем, что он заменяет/добавляет смайлики в блоке стандартных смайликов.
Код:

Код:
<script type="text/javascript">
var smileDiv = document.getElementById("smilies-block");
if(smileDiv)
{
var smileItem = new Array();
smileItem.push('http://s41.radikal.ru/i092/0810/20/1acb9975a250.gif');
smileItem.push('http://s41.radikal.ru/i092/0810/20/1acb9975a250.gif');

for (i=0; i<smileItem.length; i++){
smileDiv.innerHTML+='<img src="'+smileItem[i]+'" alt=":rusff:" onclick="smile(\'--\')" />';
}
}
</script>

Скрипт ставим в HTML форму ответа.

smileItem.push('http://s41.radikal.ru/i092/0810/20/1acb9975a250.gif');

Дублируем столько, сколько нужно добавить смайликов.

Ваши смайлики добавятся в блок общих смайликов.

Как убрать все стандартные смайлики и добавить своих?

Найти в скрипте

    var smileDiv = document.getElementById("smilies-block");

и после этого добавить

    smileDiv.innerHTML="";

0

41

Код:
<script type="text/javascript">
    var modir=document.getElementsByTagName("li")

    if(document.URL.indexOf("viewtopic.php")!=-1) for (x in modir)
    if (modir[x].className=="pa-author"){

      if(modir[x].innerHTML.indexOf("НИК")!=-1)
        modir[x].getElementsByTagName("a")[0].innerHTML="<img src='КАРТИНКА_ДЛЯ_НИКА' />"
    }
    </script>

КАРТИНКА -ВМЕСТО НИКА

0

42

Код:
<table><tr>
<td onclick="return changeVisibility('mycolor', this)"><img src="http://forum.mybb.ru/i/color_swatch.png" alt="Мои цвета" /></td></tr></table>
<div class="container" id="mycolor" style="display:none; width:200px">
	<table cellspacing="0">
<tr>
<td style="background-color:#00FF00" height="15px" width="15px" onclick="bbcode('[color=#00FF00]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#00FF66" height="15px" width="15px" onclick="bbcode('[color=#00FF66]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#00FFFF" height="15px" width="15px" onclick="bbcode('[color=#00FFFF]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#66FF66" height="15px" width="15px" onclick="bbcode('[color=#66FF66]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#99FF99" height="15px" width="15px" onclick="bbcode('[color=#99FF99]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#CCFF00" height="15px" width="15px" onclick="bbcode('[color=#CCFF00]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#CCFF66" height="15px" width="15px" onclick="bbcode('[color=#CCFF66]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#CCFFCC" height="15px" width="15px" onclick="bbcode('[color=#CCFFCC]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#FFFF00" height="15px" width="15px" onclick="bbcode('[color=#FFFF00]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#FFFF99" height="15px" width="15px" onclick="bbcode('[color=#FFFF99]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#00CC66" height="15px" width="15px" onclick="bbcode('[color=#00CC66]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#339966" height="15px" width="15px" onclick="bbcode('[color=#339966]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#6699CC" height="15px" width="15px" onclick="bbcode('[color=#6699CC]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#CCCC66" height="15px" width="15px" onclick="bbcode('[color=#CCCC66]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#009966" height="15px" width="15px" onclick="bbcode('[color=#009966]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#9999FF" height="15px" width="15px" onclick="bbcode('[color=#9999FF]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#CC9933" height="15px" width="15px" onclick="bbcode('[color=#CC9933]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#CC66CC" height="15px" width="15px" onclick="bbcode('[color=#CC66CC]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#FF6600" height="15px" width="15px" onclick="bbcode('[color=#FF6600]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#FF6666" height="15px" width="15px" onclick="bbcode('[color=#FF6666]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#003333" height="15px" width="15px" onclick="bbcode('[color=#003333]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#003366" height="15px" width="15px" onclick="bbcode('[color=#003366]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#0033FF" height="15px" width="15px" onclick="bbcode('[color=#0033FF]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#333300" height="15px" width="15px" onclick="bbcode('[color=#333300]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#663399" height="15px" width="15px" onclick="bbcode('[color=#663399]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#993300" height="15px" width="15px" onclick="bbcode('[color=#993300]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#CC3333" height="15px" width="15px" onclick="bbcode('[color=#CC3333]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#FF3300" height="15px" width="15px" onclick="bbcode('[color=#FF3300]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#FF66FF" height="15px" width="15px" onclick="bbcode('[color=#FF66FF]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#003366" height="15px" width="15px" onclick="bbcode('[color=#003366]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#FF3366" height="15px" width="15px" onclick="bbcode('[color=#FF3366]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#0000FF" height="15px" width="15px" onclick="bbcode('[color=#0000FF]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#660033" height="15px" width="15px" onclick="bbcode('[color=#660033]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#990000" height="15px" width="15px" onclick="bbcode('[color=#990000]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#FF0000" height="15px" width="15px" onclick="bbcode('[color=#FF0000]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#FF0066" height="15px" width="15px" onclick="bbcode('[color=#FF0066]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#FFCCCC" height="15px" width="15px" onclick="bbcode('[color=#FFCCCC]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#ffcc66" height="15px" width="15px" onclick="bbcode('[color=#ffcc66]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#666633" height="15px" width="15px" onclick="bbcode('[color=#666633]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#cc6633" height="15px" width="15px" onclick="bbcode('[color=#cc6633]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#993300" height="15px" width="15px" onclick="bbcode('[color=#993300]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#99ff00" height="15px" width="15px" onclick="bbcode('[color=#99ff00]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#cccccc" height="15px" width="15px" onclick="bbcode('[color=#cccccc]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#ffcccc" height="15px" width="15px" onclick="bbcode('[color=#ffcccc]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#336666" height="15px" width="15px" onclick="bbcode('[color=#336666]', '[/color]'); return changeVisibility('mycolor', this)"></td>
	<td style="background-color:#ff9999" height="15px" width="15px" onclick="bbcode('[color=#ff9999]', '[/color]'); return changeVisibility('mycolor', this)"></td>
</tr>
	</table>
	</div>

(Cтавить в форму ответа)

Дополнительные цвета для форума 46 шт. (c) Duka

0

43

Текст между подфорумами

СКРИН

Код:
<script type="text/javascript">
var pun = document.getElementById("pun-category1")
pun.innerHTML += 'Текст';
</script>

ХТМЛ НИЗ


не забываем-вставлять скрипты нужно с большой осторожностью, так как они могут конфликтовать между собой( если вставили и появилась прабла-к примеру вы не можете на главной странице ничего сделать-ни открыть админку, ни еще чтото- то нужно  приписать к названию вашего форума-http://Адрес форума/admin_index.php

0

44

Эффект с логотипом, при наведении будет другой рисунок

Код:
<style type="text/css">
#pun-title h1{
        background: url(Рисунок логотипа) transparent no-repeat !important;
#pun-title h1:hover {
        background: url(Рисунок логотипа при наведении) transparent no-repeat !important;
</style>

0

45

НЕ ОЧЕНЬ УДОБНЫЙ СКРИПТ-

МУЗЫКА НА ФОРУМ
Ссылку заменить на свою, ставить в html верх.
не удобный тем, что музон нельзя отключить)

Код:
<embed src="прямая ссылка до песни" autostart="true" hidden="true" repeat="true" loop="true" id="ff12" name="ff12"></embed>

Рабочий скрипт- уже со ссылкой на музыку-

Код:
<embed src="http://www.hotlinkfiles.com/files/2302902_x3eao/FortMinor.mp3" autostart="true" hidden="true" repeat="true" loop="true" id="ff12" name="ff12"></embed>

0

46

Я вот заметила у вас появились новые цвета под окном сообщения....Я тоже хочу такой скрипт...Поделитесь?

0

47

Пупся написал(а):

Я вот заметила у вас появились новые цвета под окном сообщения....Я тоже хочу такой скрипт...Поделитесь?

ага:) со мной тоже поделились

Скрипт дополнительные цвета

Код:
<style>
#custom-mycolor {background-image:url('http://s60.radikal.ru/i168/0903/65/de67e22761d8.jpg'); 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(19).innerHTML="<img src='/i/blank.gif' title='Мои цвета' id='custom-mycolor'  title='Мои цвета' onclick=\"return changeVisibility('mycolor', this);\" />"
</script>
<div class="container" id="mycolor" style="display:none; width:710px">
<table cellspacing="0">
<tr>
<td style="background-color:#FF6633; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CC3300; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#660000; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#990066; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF3366; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#000066; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#003366; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#0033FF; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#00CC00; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#669966; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#006600; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF6600; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CC6633; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FFD700; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#666666; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#00FF66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#00FF00; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#00FFFF; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#66FF66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#99FF99; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CCFF00; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CCFF66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CCFFCC; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FFFF00; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FFFF99; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#00CC66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#339966; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#6699CC; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CCCC66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#009966; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#9999FF; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CC9933; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#CC66CC; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF6666; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#003333; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#333300; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#663399; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#993300; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF3300; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF66FF; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#0000FF; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#660033; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#990000; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF0000; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FF0066; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#FFCCCC; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#ffcc66; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#666633; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#cc6633; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#99ff00; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#cccccc; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#ffcccc; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#336666; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
<td style="background-color:#ff9999; height:15px" onclick="bbcode('', ''); return changeVisibility('mycolor', this)"></td>
</tr>
</table>
</div>

0

48

Студентка написал(а):

Скрипт для выделения цветом(картинкой) -цитаты выделяемого, или скрытого текста-

А можно у вас скриптик позаимствовать :question:

0

49

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

А можно у вас скриптик позаимствовать

:D а то, я их тоже не сама состряпала))

0

50

Студентка написал(а):

а то, я их тоже не сама состряпала))

:D Спасибо!

0

51

Код:
<script type="text/javascript">
var trr=document.getElementsByTagName("div")
var fi=0
for (fi=0; fi<=(trr.length-1);fi++)
{if (trr[fi].className=="post-links")
{var drr=trr[fi].getElementsByTagName("a")
drr[0].innerHTML="<img src='картинка Профиль'/>"
drr[1].innerHTML="<img src='картинка ЛС' />"
var er=2
for (er=2; er<=(drr.length-1); er++)
{if (drr[er].innerHTML.indexOf("E-mail")!=-1)
{drr[er].innerHTML="<img src='картинка E-mail' />"}
else if (drr[er].innerHTML.indexOf("Вебсайт")!=-1)
{drr[er].innerHTML="<img src='картинка WWW'  />"}
else if (drr[er].innerHTML.indexOf("Цитировать")!=-1)
{drr[er].innerHTML="<img src='картинка Цитата'/>"}
else if (drr[er].innerHTML.indexOf("Редактировать")!=-1)
{drr[er].innerHTML="<img src='картинка Редактировать' />"}
else if (drr[er].innerHTML.indexOf("Удалить")!=-1)
{drr[er].innerHTML="<img src='картинка Удалить' />"}
}}}
</script>

Картинки вместо ссылок( лишнее можно убрать)

0

52

спасибо
нашло у вас, несколько скриптов

в том числе напоминалку что пришло новое сообщение

знаете, я у других видела, напоминалка выскакивает только один раз, и такая цветом неприметная, и  там написано перейти к сообщению

у вас есть такой скрипт?

вобщем ваш тоже пригодица, хоть он и лезет настойчиво!

еще раз спасибо за скрипты!

0

53

можно здесь спросить, у вас клевая штука есть, цитата фон клеточка, там надо набрать 1000 сообщений чтоб скрипт скрытый посмотреть, я прям не дождусь!

в этой теме и есть ответ-про фон в клеточку

Как в цитированном сделать фон-картинку!?

<style>
#pun-main .quote-box {background: url(Адрес картинки);}
</style>

а про 1000 сообщений- в какой это теме?

0

54

спасибо за скрипт
это тут же
тока там не 1000 меньше, но все равно долго ждать и это как 1000...

ну как говорят, что это было сто лет назад.
обозначение что очень долго!

0

55

Красна_Девица написал(а):

знаете что странно, у меня дает пунктирную линию, а у вас пунктирной лини нет

причины не знаю, может от браузера зависит

Красна_Девица написал(а):

скрипт, чтобы сделать кнопку скрыть объявление

В ХТМЛ-верх:

Код:

<style type="text/css">
#pun_wrap #pun #pun-index .section h2 span {display: none; }
</style>

плюс-в ХТМЛ НИЗ-

<script type="text/javascript">
document.getElementById('pun-announcement').getElementsByTagName("div")[0].id="annbody"
function lookCook()
{
if (document.cookie.indexOf("announce")!=-1)
{var an1=document.cookie.substr(document.cookie.indexOf("announce"))
var an=an1.substr(an1.indexOf("id")+2, 2)
if (an=="op")
{document.getElementById('annbody').style.display="block"
var knopka="Скрыть объявление"}
else if (an=="cl")
{document.getElementById('annbody').style.display="none"
var knopka="Показать объявление"}}
else if (document.cookie.indexOf("announce")==-1)
{document.getElementById('annbody').style.display="block"
var knopka="Скрыть объявление"}
document.getElementById('pun-announcement').getElementsByTagName("h2")[0].innerHTML+="<div align='right'>"+"<input type='button'"+" id='hider'"+" value='"+knopka+"' "+"onclick='hideAnn() ; wCook()' /></div>"}

lookCook()

function hideAnn()
{
if (document.getElementById('annbody').style.display!="none")
{document.getElementById('annbody').style.display="none"
document.getElementById('hider').value="Показать объявление"}
else
{document.getElementById('annbody').style.display="block"
document.getElementById('hider').value="Скрыть объявление"}
}

function wCook()
{
var ann="announce=id"
if (document.getElementById('annbody').style.display!="none")
{ann+="op"}
else
{ann+="cl"}
var d=new Date()
d.setDate(d.getDate()+1)
ann+=";expires="+d.toGMTString()
document.cookie=ann}

</script>

0

56

Как сделать что-бы шапка менялась в зависимости от времени суток?

сама не пробовала-

<script type="text/javascript">
var h=(new Date()).getHours();
if (h > 23 || h <7) MyLogo("Картинка ночь")
if (h > 6 && h < 12) MyLogo("..утро")
if (h > 11 && h < 19) MyLogo("день")
if (h > 18 && h < 24) MyLogo("вечер")
function MyLogo(img){
document.getElementById("title-logo-tdl").style.background='url('+img+') no-repeat'
}
</script>

или-

<script
        language="JavaScript">
<!--begin fantasyflash.ru
var h=(new Date()).getHours();
if (h > 23 || h <7) document.write('Привет лунатикам!') ;
if (h > 6 && h < 12) document.write('Доброе утро! Как спалось?');
if (h > 11 && h < 19) document.write('Добрый день!');
if (h > 18 && h < 24) document. write('Привет! Уже вечер...');
//-->
</script>

выделенное-можно менять и наверное ставить туда картинку-*сама не пробовала)-
<img src="адрес картинки" >

0

57

Красна_Девица написал(а):

я пробовала чат скрыть в объявлении

у меня работает

0

58

<script language="JavaScript">
TargetDate = "31/12/2009 00:00 AM";
BackColor = "#FF99FF";
ForeColor = "#0033CC";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "Осталось %%D%% Дней, %%H%% Часов, %%M%% Минут, %%S%% Секунд  ДО НОВОГО ГОДА ";
FinishMessage = "НОВЫЙ ГОД ПРИШЕЛ))) !";
</script><script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script></center>

СКРИПТ -СКОЛЬКО ОСТАЛОСЬ

0

59

Шрифт в постах, ставить HTML верх:

<style type="text/css">
.post-content {font-family: Comic Sans Ms;font-size: 14px;}
</style>

размер шрифта можно убрать

Название шрифта меняйте на своё.

0

60

Как прибавить новую ссылку в панель ссылок( +к  форум, профиль, пользователи)

Заходите в админку Настройки - окошко Дополнительные пункты меню и вставляете туда

1=<a href="адрес темы">Название ссылки</a>

Выделенное - номер позиции ссылки

0



Сервис форумов BestBB © 2016-2020. Создать форум бесплатно