Если вам нужен скрипт,обращайтесь сюда.
Спрос скриптов
Страница: 1
Сообщений 1 страница 9 из 9
Поделиться22010-04-06 12:59:40
мне нужен скрипт, чтоб была навигация, как у вас в объявление "скрипты,доска почёта и тп."
Поделиться42010-04-20 17:14:08
спасибо, а можно пожалуйста ещё код,чтобы текст в окошке с прокруткой,как тут
Поделиться52010-04-21 07:07:53
Свернутый текст
<div style="overflow: scroll; overflow-x: hidden; height:200px;">Полоса прокрутки</div>
Поделиться62010-04-27 10:29:35
А как добавить спойлер и чтобы он, как у вас, красиво выплывал? )))
Поделиться72010-04-27 11:41:11
хтмл верх
Свернутый текст
<script type="text/javascript" src="http://help4us.ru/include/js/jquery.js"></script>
форма ответа
Код:
<style type="text/css"> #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} </style> <script> function addSpoiler(str,from,internal){ var pos=0,pos2=0,newpos=0 if((pos=str.indexOf("[spoiler]",from))==-1) return str; if((pos2=str.indexOf("[/spoiler]"),pos+9)==-1) return str; 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+9,pos2))+str.substring(pos2+10,str.length) if( str.indexOf("[spoiler]")!=-1 && internal==false) str=addSpoiler(str,0,false) return str} function makeSpoiler(txt){ txt='<div class="quote-box" style="padding:1px;background: none;border: 0;"><cite style="width:100%;margin:0;"><input class="spoiler-button" style="width:140px;font-size:10px; margin:0;" type="button" value="Показать cпойлер" onclick="hideSpoiler(this)"></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").find("blockquote.quote-box").toggle("normal"); }); }); function hideSpoiler(sp){ if(sp.value=='Показать cпойлер'){ sp.value='Скрыть cпойлер'} else{ sp.value='Показать cпойлер'} } 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(19).innerHTML="<img id=\"button-spoiler\" title=\"Спойлер\" onclick=\"bbcode('[spoiler]','[/spoiler]')\" src=\"/i/blank.gif\" />" </script>
Поделиться82010-04-28 10:53:11
Не появляется((
Поделиться92010-06-03 23:14:11
должен
Страница: 1