|
| Скрипты |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:35 | Сообщение # 1 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
|
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:35 | Сообщение # 2 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| Блокировка правой кнопки (без сообщения) Code <script language="Javascript"> <!-- var message="скрипт взят с сайта Юльчика"; function clickIE() {if (document.all) {(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2) { (message); return false;}}} if (document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS; }else{ document.onmouseup=clickNS; document.oncontextmenu=clickIE; } document.oncontextmenu=new Function("return false") --> </script>
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:36 | Сообщение # 3 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| Приветствие в зависимости от времени суток: Code <center><font color="#000000" face="Verdana"><strong><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></strong></font></center>
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:36 | Сообщение # 4 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| Прокручивание баннеров Code <!--* SCROLL *--><BR> <CENTER> <MARQUEE onmouseover=stop() style="WIDTH: 91px; HEIGHT: 195px" onmouseout=start() scrollAmount=1 scrollDelay=0 direction=up width=91 height=195><!-- Arabic --> <DIV>тут твои баннеры</DIV> <CENTER></CENTER> <CENTER></CENTER>
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:36 | Сообщение # 5 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| подсветка кнопок при наведении курсора Code <STYLE> .mystyle {font-weight:bold;background-color:#D95700} </STYLE>
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:36 | Сообщение # 6 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| Сколько посетителей на твоём сайте? Code <tr> <td align=center> <td><p align=center> </p></td> <center><td><p align=center></p></td>
<!-- Start FastOnlineUsers.com --> <center><font face="Vernanda" size="4" color="white"><script src=http://fastonlineusers.com/online.php?d=http://АДРЕС ТВОЕГО САЙТА ></script> Посетителей на моём сайте!</a><!-- End FastOnlineUsers.com --><td><p</td> </tr>
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:37 | Сообщение # 7 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| Регистрация только после прочтения и принятия Правил В шаблоне регистрации пользователя после $BODY$ вставляем: Code <script> if(!document.getElementById('siM2')) document.all.adduser.style.display='none'; //форма </script> В Правилах регистрации в конце вставляем: Code <input name="but" type="button" onClick="document.all.adduser.style.display='block';" value="- Прочитал и принимаю -">
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:37 | Сообщение # 8 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| заменить текст "Онлайн" на свою картинку Заходишь в ПУ - Замена стандартных надписей - Пользователи. И на место "Онлайн" вставляешь ХТМЛ код картинки. Code <img src="URL картинки" />
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:37 | Сообщение # 9 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| Как сделать плеер на сайт? Code <object id="MediaPlayer1" width=88 height=40 classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"> <param name="URL" value="Ссылка вашей песни"> </object> Нужно сакапировать этот код, и вместо слов " Ссылка вашей песни ", нужно вставить адрес музыка которую вы выбрали. На юкозе Заходишь в файловый менеджер и закачиваешь песню мр3 копируешь код JS-code ну и вставляешь куда надо) цвет плеера можно поменять смотри палитру. (зеленый 009933) пример: Code <script src="http://fibi.my1.ru/media/?auto=0;small=0;color=0055e9;loop=0;textoff=0;t=audio;f=http%3A%2F%2Ffibi.my1.ru%2Fmaksim_-_tiho_tiho.mp3" type="text/javascript"></script> При этом, в нем есть управляемые параметры (настройки), которые можно изменить: auto=0;small=0;color=0055e9;loop=0;textoff=0 small=1 - выведит маленький преер из двух кнопок. loop=1 - файл будет проигрываться по кругу без отсановки (пока не нажать стоп) textoff=1 - уберет текст на плеере color - можно поменять цвет плеера. auto=1 - песня начинает проигрываться автоматом, при заходе на страничку
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:38 | Сообщение # 10 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| Аватар в комментариях. В шаблоне Вид комментариев перед $MESSAGE$ вставим: Code <img src="$USER_AVATAR_URL$" style="padding-right:13px" border="0" title="$NAME$" align="left"> Для гостей и тем у кого аватора нету. Code <?IF($USER_AVATAR_URL$)?><img style="padding-right:13px" align="left" title="$USERNAME$" src="$USER_AVATAR_URL$" border="0"><?ELSE?><img title="$USERNAME$" style="padding-right:13px" align="left" src="http://i047.radikal.ru/0804/6c/6aaccd29fe7a.gif" border=0><?ENDIF?>
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:38 | Сообщение # 11 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| Мини профиль. Code <?if($USER_LOGGED_IN$)?> <br>Полное имя: $USER_FULL_NAME$ <br>Ты здесь: <font color="#ff0000"><strong>$USER_REG_DAYS$</strong></font>-й день <br><a href="javascript:openOnClick('users')">Список пользователей</a> <br><a href="javascript:openOnClick('options')">Изменить сведения</a> <br><a href="javascript:openOnClick('send')">Отправить ЛС</a> <br><a id="upml2" href="javascript:openOnClick('mail')">Читать ЛС (<strong>$UNREAD_PM$</strong>)</a> <br><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Ваш IP</span> $IP_ADDRESS$</span><br><br><div style="color: red;">
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 18:38 | Сообщение # 12 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| Проверка надежности пароля. Скрипт, который проверяет сложность пароля пользователя во время регистрации. Заходим в меню редактирования шаблонов, открываем код шаблона "Формы регистрации пользователей" . 1. Находим там $PASSWORD_FL$ 2. Сразу после него вставляем этот скрипт. Code <div id="mypassword_text" style="display:inline;"></div> <div id="mypassword_bar" style="font-size: 1px; height: 3px; width: 0px; "></div></td></tr><SCRIPT type="text/javascript"> var m_strUpperCase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_"; var m_strLowerCase = "abcdefghijklmnopqrstuvwxyz-"; var m_strNumber = "0123456789"; function checkPassword(strPassword) { var nScore = 0; if (strPassword.length < 6) { nScore += 0; } else if (strPassword.length > 5 && strPassword.length < 10) { nScore += 11; } else if (strPassword.length > 9) { nScore += 33; } var nUpperCount = countContain(strPassword, m_strUpperCase); var nLowerCount = countContain(strPassword, m_strLowerCase); var nLowerUpperCount = nUpperCount + nLowerCount; if (nUpperCount == 0 && nLowerCount != 0) { nScore += 10; } else if (nUpperCount != 0 && nLowerCount == 0) { nScore += 10; } else if (nUpperCount != 0 && nLowerCount != 0) { nScore += 26; } var nNumberCount = countContain(strPassword, m_strNumber); if (nNumberCount >= 2) { nScore += 10; } if (nNumberCount >= 4) { nScore += 26; } if (nNumberCount != 0 && nLowerUpperCount != 0) { nScore += 5; } return nScore; } function runPassword(strPassword, strFieldID) { var nScore = checkPassword(strPassword); var ctlBar = document.getElementById(strFieldID + "_bar"); var ctlText = document.getElementById(strFieldID + "_text"); if (!ctlBar || !ctlText) return; ctlBar.style.width = nScore + "%"; if (nScore == 100) { var strText = "Отличный пароль! Главное не забыть его. :)"; var strColor = "limegreen"; } else if (nScore >= 80) { var strText = "Очень хороший пароль."; var strColor = "blue"; } else if (nScore >= 65) { var strText = "Это видно, что пароль, можно уже и остановиться!"; var strColor = "dodgerblue"; } else if (nScore >= 50) { var strText = "Во-во, это ещё ничего!.."; var strColor = "mediumturquoise"; } else if (nScore >= 25) { var strText = "Слабоват парольчик."; var strColor = "yellowgreen"; } else if (nScore != 0) { var strText = "Ужас. (qwerty и то лучше :)) "; var strColor = "firebrick"; } else { var strText = ""; var strColor = "black"; } ctlBar.style.backgroundColor = strColor; ctlText.innerHTML = "<span style='color: " + strColor + ";'> " + strText + " - " + nScore + "%</span>"; } function countContain(strPassword, strCheck) { var nCount = 0; for (i = 0; i < strPassword.length; i++) { if (strCheck.indexOf(strPassword.charAt(i)) > -1) { nCount++; } } return nCount; } document.getElementById("siF14").onkeyup="runPassword(this.value, 'mypassword')"; </SCRIPT> Заходим на сайт как "Гость" жмем на ссылку "Регистрация", проверяем
|
| |
| | |
| BeautClesly | Дата: Суббота, 27.12.2008, 19:03 | Сообщение # 13 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| Эта ссылка добавляет сайт в избранное. Вставьте его в любое место в теле вашего сайта и там появится кнопа "Добавить В Избранное" Но перед этим не забудте сменить http://souris.ucoz.ru на URL вашего сайта и Здесь есть Все на тот заголовок, который соответствует вашему сайту. Code <a href="#" onClick="window.external.addFavorite('http://souris.ucoz.ru', 'Здесь есть Все'); return false;">Добавить в Избранное</a>
|
| |
| | |
| BeautClesly | Дата: Понедельник, 05.01.2009, 19:12 | Сообщение # 14 |
...пОчТи пРыНцЕсСа xD....
Группа: Администраторы
Сообщений: 864
Статус: Offline
| Раздвижное меню: Code <div id="menuDiv" style="display:inline">
<ul id="tmenu0" style="display:none"> <li class="m"> <span>Главное</span> <ul> <li class="m"><a class="m" href="http://allcity.net.ru/"><li class="m"><a class="m" href="$HOME_PAGE_LINK$">Главная страница</a></li></a></li> <li class="m"><a class="m" href="http://allcity.net.ru/"><li class="m"><a class="m" href="http://souris.ucoz.ru/forum/">Форум</a></li></a></li> <li class="m"><a class="m" href="http://allcity.net.ru/"><li class="m"><a class="m" href="http://souris.ucoz.ru/gb/">Гостевая книга</a></li></a></li> <li class="m"><a class="m" href="http://allcity.net.ru/"><li class="m"><a class="m" href="http://souris.ucoz.ru/dir/">Топ-сайтов</a></li></a></li> </ul> </li> <li class="m"> <span>Банеры</span> <ul> <li class="m"><a class="m" href="http://allcity.net.ru/"><li class="m"><a class="m" href="http://souris.ucoz.ru/index/0-4">Друзья сайта</a></li></a></li> <li class="m"><a class="m" href="http://allcity.net.ru/"><li class="m"><a class="m" href="http://souris.ucoz.ru/index/0-5">Банеры сайта</a></li></a></li> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 3</a></li> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 4</a></li> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 5</a></li> </ul> </li>
<li class="m"> <span>Интересное</span> <ul> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 1</a></li> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 2</a></li> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 3</a></li> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 4</a></li> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 5</a></li> </ul> </li>
<li class="m"> <span>Раздел номер 4</span> <ul> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 1</a></li> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 2</a></li> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 3</a></li> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 4</a></li> <li class="m"><a class="m" href="http://allcity.net.ru/">Подраздел номер 5</a></li> </ul> </li>
</ul> </div>
<script type="text/javascript"> function tmenudata0() { this.animation_jump = 15 this.animation_delay = 2 this.imgage_gap = 3 this.plus_image = "plus.gif" this.minus_image = "minus.gif" this.pm_width_height = "10,10" this.icon_width_height = "16,16" this.indent = 20; this.use_hand_cursor = true; this.main_item_styles = "text-decoration:none; \ font-weight:normal; \ font-family:Arial; \ font-size:14px; \ color:#FF0000; \ padding:2px; " this.sub_item_styles = "text-decoration:none; \ font-weight:normal; \ font-family:Arial; \ font-size:12px; \ color:#807F80; " this.main_container_styles = "padding:0px;" this.sub_container_styles = "padding-top:4px; padding-bottom:4px;" this.main_link_styles = "color:#0000FF; text-decoration:none;" this.main_link_hover_styles = "color:#FF0000; text-decoration:underline;" this.sub_link_styles = "" this.sub_link_hover_styles = "" this.main_expander_hover_styles = "text-decoration:underline;"; this.sub_expander_hover_styles = "";} </script>
<script type="text/javascript"> ulm_ie=window.showHelp;ulm_opera=window.opera;ulm_strict=((ulm_ie || ulm_opera)&&(document.compatMode=="CSS1Compat")); ulm_mac=navigator.userAgent.indexOf("Mac")+1;is_animating=false; cc3=new Object();cc4=new Object(); cc0=document.getElementsByTagName("UL");for(mi=0;mi<cc0.length; mi++){if(cc1=cc0[mi].id){if(cc1.indexOf("tmenu")>-1){cc1=cc1.substring(5); cc2=new window["tmenudata"+cc1];cc3["img"+cc1]=new Image();cc3["img"+cc1].src=cc2.plus_image;cc4["img"+cc1]=new Image(); cc4["img"+cc1].src=cc2.minus_image;if(!(ulm_mac && ulm_ie)){t_cc9=cc0[mi].getElementsByTagName("UL");for(mj=0;mj<t_cc9.length; mj++){cc23=document.createElement("DIV");cc23.className="uldivs"; cc23.appendChild(t_cc9[mj].cloneNode(1));t_cc9[mj].parentNode.replaceChild(cc23,t_cc9[mj]); }}cc5(cc0[mi].childNodes,cc1+"_",cc2,cc1); cc6(cc1,cc2);cc0[mi].style.display="block"; }}};function cc5(cc9,cc10,cc2,cc11){eval("cc8=new Array("+cc2.pm_width_height+")");this.cc7=0;for(this.li=0;this.li<cc9.length; this.li++){if(cc9[this.li].tagName=="LI"){this.level=cc10.split("_").length-1; cc9[this.li].style.cursor="default";this.cc12=false;this.cc13=cc9[this.li].childNodes; for(this.ti=0;this.ti<this.cc13.length;this.ti++){lookfor="DIV"; if(ulm_mac && ulm_ie)lookfor="UL";if(this.cc13[this.ti].tagName==lookfor){this.tfs=this.cc13[this.ti].firstChild; if(ulm_mac && ulm_ie)this.tfs=this.cc13[this.ti];this.usource=cc3["img"+cc11].src; if((gev=cc9[this.li].getAttribute("expanded"))&&(parseInt(gev))){this.usource=cc4["img"+cc11].src; }else this.tfs.style.display="none";if(cc2.folder_image){create_images(cc2,cc11,cc2.icon_width_height,cc2.folder_image,cc9[this.li]); this.ti=this.ti+2;}this.cc14=document.createElement("IMG");this.cc14.setAttribute("width",cc8[0]); this.cc14.setAttribute("height",cc8[1]);this.cc14.className="plusminus"; this.cc14.src=this.usource;this.cc14.onclick=cc16;this.cc14.onselectstart=function(){return false}; this.cc14.setAttribute("cc2_id",cc11);this.cc15=document.createElement("div"); this.cc15.style.display="inline";this.cc15.style.paddingLeft=cc2.imgage_gap+"px"; cc9[this.li].insertBefore(this.cc15,cc9[this.li].firstChild); cc9[this.li].insertBefore(this.cc14,cc9[this.li].firstChild); this.ti+=2;new cc5(this.tfs.childNodes,cc10+this.cc7+"_",cc2,cc11);this.cc12=1; }else if(this.cc13[this.ti].tagName=="SPAN"){this.cc13[this.ti].onselectstart=function(){return false}; this.cc13[this.ti].onclick=cc16;this.cc13[this.ti].setAttribute("cc2_id",cc11); this.cname="cc24";if(this.level>1)this.cname="cc25";if(this.level> 1)this.cc13[this.ti].onmouseover=function(){this.className="cc25"; };else this.cc13[this.ti].onmouseover=function(){this.className="cc24"; };this.cc13[this.ti].onmouseout=function(){this.className="";}; }}if(!this.cc12){if(cc2.document_image){create_images(cc2,cc11,cc2.icon_width_height,cc2.document_image,cc9[this.li]); }this.cc15=document.createElement("div");this.cc15.style.display="inline"; if(ulm_ie)this.cc15.style.width=cc2.imgage_gap+cc8[0]+"px";else this.cc15.style.paddingLeft=cc2.imgage_gap+cc8[0]+"px"; cc9[this.li].insertBefore(this.cc15,cc9[this.li].firstChild);}this.cc7++; }}};function create_images(cc2,cc11,iwh,iname,liobj){eval("tary=new Array("+iwh+")");this.cc15=document.createElement("div");this.cc15.style.display="inline"; this.cc15.style.paddingLeft=cc2.imgage_gap+"px"; liobj.insertBefore(this.cc15,liobj.firstChild); this.fi=document.createElement("IMG");this.fi.setAttribute("width",tary[0]); this.fi.setAttribute("height",tary[1]);this.fi.setAttribute("cc2_id",cc11); this.fi.className="plusminus";this.fi.src=iname;this.fi.style.verticalAlign="middle"; this.fi.onclick=cc16;liobj.insertBefore(this.fi,liobj.firstChild); };function cc16(){if(is_animating)return;cc18=this.getAttribute("cc2_id"); cc2=new window["tmenudata"+cc18];cc17=this.parentNode.getElementsByTagName("UL"); if(parseInt(this.parentNode.getAttribute("expanded"))){this.parentNode.setAttribute("expanded",0); if(ulm_mac && ulm_ie){cc17[0].style.display="none";}else {cc27=cc17[0].parentNode;cc27.style.overflow="hidden";cc26=cc27; cc27.style.height=cc17[0].offsetHeight;cc27.style.position="relative"; cc17[0].style.position="relative";is_animating=1;setTimeout("cc29("+(-cc2.animation_jump)+",false,"+cc2.animation_delay+")",0); }this.parentNode.firstChild.src=cc3["img"+cc18].src;}else {this.parentNode.setAttribute("expanded",1);if(ulm_mac && ulm_ie){cc17[0].style.display="block";}else {cc27=cc17[0].parentNode;cc27.style.height="1px";cc27.style.overflow="hidden"; cc27.style.position="relative";cc26=cc27;cc17[0].style.position="relative"; cc17[0].style.display="block";cc28=cc17[0].offsetHeight;cc17[0].style.top=-cc28+"px"; is_animating=1;setTimeout("cc29("+cc2.animation_jump+",1,"+cc2.animation_delay+")",0); }this.parentNode.firstChild.src=cc4["img"+cc18].src;}};function cc29(inc,expand,delay){cc26.style.height=(cc26.offsetHeight+inc)+"px"; cc26.firstChild.style.top=(cc26.firstChild.offsetTop+inc)+"px"; if( (expand &&(cc26.offsetHeight<(cc28)))||(!expand &&(cc26.offsetHeight>Math.abs(inc))) )setTimeout("cc29("+inc+","+expand+","+delay+")",delay);else {if(expand){cc26.style.overflow="visible"; if((ulm_ie)||(ulm_opera && !ulm_strict))cc26.style.height="0px";else cc26.style.height="auto";cc26.firstChild.style.top=0+"px";}else {cc26.firstChild.style.display="none"; cc26.style.height="0px";}is_animating=false;}};function cc6(id,cc2){np_refix="#tmenu"+id;cc20="<style type='text/css'>";cc19="";if(ulm_ie)cc19="height:0px;font-size:1px; ";cc20+=np_refix+" {width:100%;"+cc19+"-moz-user-select:none;margin:0px;padding:0px; list-style:none;"+cc2.main_container_styles+"}";cc20+=np_refix+" li{white-space:nowrap; list-style:none;margin:0px;padding:0px;"+cc2.main_item_styles+"}"; cc20+=np_refix+" ul li{"+cc2.sub_item_styles+"}";cc20+=np_refix+" ul{list-style:none;margin:0px;padding:0px;padding-left:"+cc2.indent+"px; "+cc2.sub_container_styles+"}";cc20+=np_refix+" a{"+cc2.main_link_styles+"}";cc20+=np_refix+" a:hover{"+cc2.main_link_hover_styles+"}";cc20+=np_refix+" ul a{"+cc2.sub_link_styles+"}";cc20+=np_refix+" ul a:hover{"+cc2.sub_link_hover_styles+"}";cc20+=".cc24 {"+cc2.main_expander_hover_styles+"}";if(cc2.sub_expander_hover_styles)cc20+=".cc25 {"+cc2.sub_expander_hover_styles+"}"; else cc20+=".cc25 {"+cc2.main_expander_hover_styles+"}";if(cc2.use_hand_cursor)cc20+=np_refix+" li span,.plusminus{cursor:hand; cursor:pointer;}";else cc20+=np_refix+" li span,.plusminus{cursor:default;}";document.write(cc20+"</style> ");} </script>
<script type="text/javascript">try { var nl=document.getElementById('menuDiv').getElementsByTagName('a'); var found=-1; var url=document.location.href+'/'; var len=0; for (var i=0;i<nl.length;i++){ if (url.indexOf(nl[i].href)>=0){ if (found==-1 || len<nl[i].href.length){ found=i; len=nl[i].href.length; } } } if (found>=0){ nl[found].className='ma'; } } catch(e){}</script>
Загружаем 2 картинки с именами plus.gif и minus.gif в корень сайта!(файловый менеждер)
|
| |
| | |
| ПуЛьКа | Дата: Среда, 11.02.2009, 15:43 | Сообщение # 15 |
Лейтенант
Группа: Пользователи
Сообщений: 43
Статус: Offline
| Замена страницы 404 Открываем блокнот, вставляем туда код и редактируем его под себя. Code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>http://4ucoz.ucoz.net/ - AllForUcoz</title> <meta http-equiv="Content-Language" content="ru"> <meta name="revisit" content="1 days"> <meta name="robots" content="index,follow"> <link rel="alternate" title="AllForUcoz | " href="" type="application/rss+xml"> <meta name="keywords" content="юмор, приколы, эротика, xxx, затуси"> <meta name="description" content="http://4ucoz.ucoz.net/ - ВСЁ ДЛЯ UCOZ(СКРИПТИ,ШАБЛОНИ,ФОРУМ ВЕБ МАСТЕРОВ,ЗАКАЗИ!"> <link rel="stylesheet" type="text/css" http://4ucoz.ucoz.net/404.htm "> </head><body style="margin: 0px;"> <center> <table style="background: transparent url(http://4ucoz.ucoz.net/404/03.gif) repeat-y scroll right center; height: 100%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" width="748" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td width="483"> </td> <td> </td> </tr> <tr> <td rowspan="2" style="background: transparent url(http://4ucoz.ucoz.net/404/09.gif) no-repeat scroll right bottom; padding-right: 30px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" valign="top"> <p class="titles" style="padding-left: 40px;"><b>Причины</b></p> <ul style="padding-right: 10px;"> <li class="txt"> Страницы, адрес которой вы набрали, никогда не было на нашем сайте. Проверьте адрес и введите его еще раз. Или просто перейдите на главную страницу <a href="http://4ucoz.ucoz.net/">http://4ucoz.ucoz.net/ ВСЁ ДЛЯ UCOZ</a>. </li> <li class="txt"> Вы хотели открыть какую-то новость и попали сюда? Значит, эта новость больше не существует на нашем сайте. Не огорчайтесь: на <a href="http://4ucoz.ucoz.net/">http://4ucoz.ucoz.net/</a> много других хороших новостей, которые наверняка вам будут интересны. </li> <li class="txt"> Наша посещаемость превысила самые смелые ожидания, и по техническим причинам сайт в данный момент не работает. <a href="http://4ucoz.ucoz.net/">Оставайтесь с нами!</a> </li> </ul> </td> <td height="210"><img src="http://4ucoz.ucoz.net/404/06.gif" alt="404"></td> </tr> <tr> <td style="background: transparent url(http://4ucoz.ucoz.net/404/08.gif) no-repeat scroll center bottom; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" height="324"> </td> </tr> </tbody></table> </center> </body></html> Далее Сохраняем в формате htm и с названием 404 Заходим в Управление >> Файловый Менеджер и удаляем стандартную страничку 404.htm Загружаем свою сохранённую страничку smile Ничего сложного! ====>Пример<====
|
| |
| |
|
|