спасибо за столько полезных скриптов, многие пригодились и отлично работают.
🎧 Подкаст «НЕТЕРОЛЕВЫЕ»
Рассказываем и обсуждаем Форумные Ролевые Игры (ФРПГ).
Telegram Обсудить
ForumD.ru - Дизайн, графика, скрипты, техническая поддержка для форумов и сайтов |
Привет, Гость! Войдите или зарегистрируйтесь.
Вы здесь » ForumD.ru - Дизайн, графика, скрипты, техническая поддержка для форумов и сайтов » Архив устаревших тем » Запросы скриптов
спасибо за столько полезных скриптов, многие пригодились и отлично работают.
Здравствуйте, будьте добры подскажите где мне взять:
1) скрипт именно такого спойлера, как в форме ответа на вашем форуме и
2) скрипт надписи, ведущей в начало страницы. Тоже как на этом форуме.
Отредактировано Джонни (03.03.10 17:13)
Можете дать скрипт двигающегося шарика(или что оно собой представляет >.<) :
Подробнее его можно увидеть здесь в таблице: http://newhouseofnight.forumbb.ru/
Можете дать скрипт двигающегося шарика(или что оно собой представляет
Это называется Облако Тегов
скрипт именно такого спойлера, как в форме ответа на вашем форуме и
<!--Спойлер-->
<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:100%;margin:0;"><a id="' + open + '" class="spoiler" style="width:100%;font-size:10px; margin:0;border:none;cursor:pointer;text-align:left;">'+close+'</a></cite><blockquote class="quote-box" style="display:none; width: 95%;border: 1px solid black;margin:0;">' + txt + '</blockquote></div>'
return txt;
}$(document).ready(function(){
$("div.quote-box > cite > a.spoiler").click(function(){
$(this).parents("div.quote-box:first").find("blockquote.quote-box:first").toggle("slow");
var a = this.innerHTML;
this.innerHTML= $(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("answer"))
form.getElementsByTagName("tr")[0].insertCell(1).innerHTML="<img id=\"spoiler\" title=\"Спойлер\" onclick=\"tag_spoiler('[spoiler]','[/spoiler]')\" src=\"/i/blank.gif\" />"
</script>
скрипт надписи, ведущей в начало страницы. Тоже как на этом форуме.
<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=\"#pun-main\">В начало страницы</a> "
}
i++
}
</script>
в скриптах ничего изменять не надо
Спасибо, но как к первому скрипту "прикрутить" иконку для панели инструментов в форме ответа?
но как к первому скрипту "прикрутить" иконку для панели инструментов в форме ответа?
и еще это в хтмл-верх
<script type="text/javascript" src="http://sadhaka.moy.su/JS/jquery.js"></script>
и это куда душе угодно
<script type="text/javascript">
if(form=document.getElementById("form-buttons"))
form.getElementsByTagName("tr")[0].insertCell(20).innerHTML='<img onclick="tag_spoiler();" title="Спойлер" src="http://s56.radikal.ru/i153/0911/48/69964a67eb86.png" style="width:35px;height:27px;">'
</script>
картинку (и ее размер), описание и порядковый номер в панели бб-кодов выделенные цветом можете менять.
Ой, чуть не забыла. А можно еще скрипт на дополнительные смайлики под формой ответа как у вас? Не те, которые в экспандере, а те, что прямо под полем ввода ответа.
И еще один вопрос. Последний.
Позволяет ли движок наших форумов использовать в объявлении flash-анимацию как здесь, например: http://aion1.ru/
Отредактировано Джонни (04.03.10 15:17)
Ой, чуть не забыла. А можно еще скрипт на дополнительные смайлики под формой ответа как у вас? Не те, которые в экспандере, а те, что прямо под полем ввода ответа.
<br><center><b>Смайлики предоставлены <a href="http://forumdes.mybb.ru/">http://forumdes.mybb.ru/</a></b></center></br><br><a title="*1" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/yu.gif"/></a><a title="*2" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/yes2.gif"/></a><a title="*3" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/yes.gif"/></a><a title="*4" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/yahoo.gif"/></a><a title="*5" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/wizard.gif"/></a><a title="*6" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/wink.gif"/></a><a title="*7" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/warning2.gif"/></a><a title="*8" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/wacko.gif"/></a><a title="*9" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/vinsent.gif"/></a><a title="*10" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/victory.gif"/></a><a title="*11" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/vampire.gif"/></a><a title="*12" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/unsure.gif"/></a><a title="*13" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/umnik2.gif"/></a><a title="*14" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/to_keep_order.gif"/></a><a title="*15" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/tongue.gif"/></a><a title="*16" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/this.gif"/></a><a title="*17" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/tease.gif"/></a><a title="*18" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/taunt.gif"/></a><a title="*19" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/swoon2.gif"/></a><a title="*20" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/superstition.gif"/></a><a title="*21" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/superman.gif"/></a><a title="*22" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/stop.gif"/></a><a title="*23" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/stink.gif"/></a><a title="*24" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/spiteful.gif"/></a><a title="*25" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/sorry.gif"/></a><a title="*26" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/snooks.gif"/></a><a title="*27" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/smile3.gif"/></a><a title="*28" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/skull.gif"/></a><a title="*29" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/shok.gif"/></a><a title="*30" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/secret.gif"/></a><a title="*31" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/search.gif"/></a><a title="*32" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/scenic.gif"/></a><a title="*33" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/scare.gif"/></a><a title="*34" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/sad.gif"/></a><a title="*35" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/russian_roulette.gif"/></a><a title="*36" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/russian.gif"/></a><a title="*37" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/rtfm.gif"/></a><a title="*38" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/rolleyes.gif"/></a><a title="*39" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/rofl.gif"/></a><a title="*40" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/rabbi.gif"/></a><a title="*41" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/pioneer.gif"/></a><a title="*42" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/pardon.gif"/></a><a title="*43" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/paladin.gif"/></a><a title="*44" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/orc.gif"/></a><a title="*45" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/ok.gif"/></a><a title="*46" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/nyam.gif"/></a><a title="*47" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/nono.gif"/></a><a title="*48" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/no2.gif"/></a><a title="*49" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/nhl3.gif"/></a><a title="*50" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/new_russian.gif"/></a><a title="*51" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/nea.gif"/></a><a title="*52" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/mda.gif"/></a><a title="*53" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/man_in_love.gif"/></a><a title="*54" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/mad.gif"/></a><a title="*55" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/lazy.gif"/></a><a title="*56" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/king.gif"/></a><a title="*57" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/jester.gif"/></a><a title="*58" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/hunter.gif"/></a><a title="*59" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/hi.gif"/></a><a title="*60" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/grin.gif"/></a><a title="*61" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/good.gif"/></a><a title="*62" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/fuck.gif"/></a><a title="*63" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/friends.gif"/></a><a title="*64" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/fool.gif"/></a><a title="*65" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/flood.gif"/></a><a title="*66" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/elf.gif"/></a><a title="*67" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/dwarf.gif"/></a><a title="*68" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/drinks.gif"/></a><a title="*69" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/drag.gif"/></a><a title="*70" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/dirol.gif"/></a><a title="*71" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/diablo.gif"/></a><a title="*72" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/derisive.gif"/></a><a title="*73" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/cray.gif"/></a><a title="*74" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/comando.gif"/></a><a title="*75" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/censored.gif"/></a><a title="*76" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/butcher.gif"/></a><a title="*77" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/blush2.gif"/></a><a title="*78" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/big_boss.gif"/></a><a title="*79" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/biggrin.gif"/></a><a title="*80" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/beee.gif"/></a><a title="*81" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/bad.gif"/></a><a title="*82" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/assassin.gif"/></a><a title="*83" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/angry2.gif"/></a><a title="*84" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/aikido.gif"/></a><a title="*85" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/agree.gif"/></a><a title="*86" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/aiwan_smiles/acute.gif"/></a><a title="*87" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/angry_smiles/shutup3.gif"/></a><a title="*88" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/angry_smiles/ranting2.gif"/></a><a title="*89" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/love_smiles/wub1.gif"/></a><a title="*90" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/love_smiles/music_serenade.gif"/></a><a title="*91" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/jumping_smiles/woot_jump.gif"/></a><a title="*92" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/plakat_smiles/welcome.gif"/></a><a title="*93" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/plakat_smiles/to_babruysk.gif"/></a><a title="*94" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/plakat_smiles/spam.gif"/></a><a title="*95" href="javascript:void(0); return false;" onclick="smile('--', ''); return false;"><img border="0" src="http://i.smiles2k.net/lol_smiles/1_009.gif"/></a></br>
И еще один вопрос. Последний.
Позволяет ли движок наших форумов использовать в объявлении flash-анимацию как здесь, например: http://aion1.ru/
Да конечно) Это просто анимированное изображение для шапки))))
Люди! Я уже третий раз пишу!!!!!!!!!!!
Дайте мне скрипт автосмены картинок!!!!! (смены картинок с погодой)
Вы здесь » ForumD.ru - Дизайн, графика, скрипты, техническая поддержка для форумов и сайтов » Архив устаревших тем » Запросы скриптов