ANTICHAT.XYZ    VIDEO.ANTICHAT.XYZ    НОВЫЕ СООБЩЕНИЯ    ФОРУМ  
Баннер 1   Баннер 2

ANTICHAT — форум по информационной безопасности, OSINT и технологиям

ANTICHAT — русскоязычное сообщество по безопасности, OSINT и программированию. Форум ранее работал на доменах antichat.ru, antichat.com и antichat.club, и теперь снова доступен на новом адресе — forum.antichat.xyz.
Форум восстановлен и продолжает развитие: доступны архивные темы, добавляются новые обсуждения и материалы.
⚠️ Старые аккаунты восстановить невозможно — необходимо зарегистрироваться заново.
Вернуться   Форум АНТИЧАТ > Программирование > PHP, PERL, MySQL, JavaScript
   
Ответ
 
Опции темы Поиск в этой теме Опции просмотра

Поставь мне + ки
  #11  
Старый 20.02.2009, 13:58
Vandam
Banned
Регистрация: 03.08.2008
Сообщений: 28
Провел на форуме:
328250

Репутация: 124
По умолчанию Поставь мне + ки

А вот и попалнение!

Разводное меню


Ставим этот код в шаблон Общие шаблоны - Меню сайта
Код:
<div id="menuDiv" style="display:inline">

<ul id="tmenu0" style="display:none">

<li class="m">
<span>Раздел номер 1</span>
  • <li class="m"><a class="m" href="http://megasoft.3dn.ru">Подраздел номер 1</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 2</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 3</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 4</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 5</a></li>
</li> <li class="m"> <span>Раздел номер 2</span>
  • <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 1</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 2</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 3</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru">Подраздел номер 4</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 5</a></li>
</li> <li class="m"> <span>Раздел номер 3</span>
  • <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 1</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 2</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 3</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 4</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 5</a></li>
</li> <li class="m"> <span>Раздел номер 4</span>
  • <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 1</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru">Подраздел номер 2</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 3</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 4</a></li> <li class="m"><a class="m" href="http://megasoft.3dn.ru/">Подраздел номер 5</a></li>
</li> [/list]</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 в корень сайта!
скачать картинки

Сборник JAVASCRIPT'S v 8.0 (256 штук)


скачать

Проверка логина при регистрации

Установка:
1. Вставляется в шаблон "Персональная страница пользователя" после <body ...>:

Код:
<span id="chUName" style="display:none;">Проверка логина, так сказать :)</span>
2. Теперь самая важная часть, в шаблоне "Форма регистрации пользователей" после:
Код:
$LOGIN_FL$
вставляем:
Код:
<span id="msgL" style="font:7pt;"> </span>      
<input type="hidden" id="tch" value="*">      
<script type="text/javascript">      
// Скрипт by }{0тт@бь)ч.    
// Спасибо MindFreakTheMon'у за помощь по кроссбраузерности скрипта   
var Lok;      
var L = document.getElementById('siF13');      
L.style.width = '50%';      
L.onchange = 'PrepareLoginToChecking();SubmitLoginToCheck()';      
if(navigator.appName=='Microsoft Internet Explorer'){L.attachEvent('onchange', function() {PrepareLoginToChecking();SubmitLoginToCheck()},true)}else{   
L.addEventListener('change', function() {PrepareLoginToChecking();SubmitLoginToCheck()}, true)}   
var lmsg = document.getElementById('msgL');      
function checkLogin(){      
if (L.value.match(/[^a-zA-Z0-9\-\_\@\%\{\}\[\]\(\)\u0080-\uFFFF]/)){      
Lok=0;      
document.getElementById('msgL').innerHTML='<img border="0" src="http://src.ucoz.ru/img/icon/er.png" align="absmiddle" width="16" height="16"> В логине присутствуют недопустимые символы';      
}      
else if (L.value.length<2){      
Lok=0;      
document.getElementById('msgL').innerHTML='<img border="0" src="http://src.ucoz.ru/img/icon/er.png" align="absmiddle" width="16" height="16"> Минимальная длина логина <b>2</b> символа';      
}      
else if (L.value.length>25){      
Lok=0;      
document.getElementById('msgL').innerHTML='<img border="0" src="http://src.ucoz.ru/img/icon/er.png" align="absmiddle" width="16" height="16"> Максимальная длина логина <b>25</b> символов';      
}      
else {      
Lok=1;      
document.getElementById('msgL').innerHTML='<img border="0" src="http://src.ucoz.ru/img/icon/ok.png" align="absmiddle" width="16" height="16"> Логин введён корректно';      
}      
}      
function PrepareLoginToChecking()      
{      
var original=("-").split("*");      
var neww=("~").split("*");      
var xy=0;      
while(xy<=(original.length-1)) {      
var original1="/"+original[xy]+"/g";      
document.getElementById("tch").value = L.value.replace(eval(original1), neww[xy]);      
xy++;      
}      
}      
function SubmitLoginToCheck()      
{      
checkLogin();      
if(Lok != 1)      
{      
return false;      
}      
window.lf.location='/index/8-0-'+document.getElementById("tch").value+'';      
document.getElementById('msgL').innerHTML='<img src=\"http://src.ucoz.ru/img/wd/3/ajaxs.gif\" align=\"absmiddle\" border=\"0\"> Проверка логина...';      
}      
function GetMessageAboutAvailableLogin()      
{      
checkLogin();      
if(Lok != 1)      
{      
return false;      
}      
if(window.lf.document.getElementById('chUName'))      
{      
document.getElementById('msgL').innerHTML='<img src=\"http://src.ucoz.ru/img/icon/er.png\" align=\"absmiddle\" border=\"0\"> Логин занят';      
}      
else      
{      
document.getElementById('msgL').innerHTML='<img src=\"http://src.ucoz.ru/img/icon/ok.png\" align=\"absmiddle\" border=\"0\"> Логин свободен';      
}      
}      
</script> <iframe name="lf" src="/index/8-0-*" style="display:none;" height="1px" width="1px" frameborder="0" onload="GetMessageAboutAvailableLogin()"></iframe>
Скрипт webmoney - помощь сайту


1)Создаём страницу
2)Вставляем туда 'тот код:

Код:
<div align="center"><div style="background: white; padding:3px; border: 1px dashed black">
<form action="wmk:payto" style="padding:0; margin:1px" method="get">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="62" align="left"><img src="http://pic.ipicture.ru/uploads/090214/QV1L9oTA1O.png" width="32" height="32" /></td>
<td style="padding-left:0.5em">
<input type="hidden" name="Purse" value="ВАШ КОШЕЛЁГ ЫЫЫЫЫЫЫЫЫЫЫЫЫ" />
<center><input type="text" name="Amount" value="10" size="4"/><input type="submit" value="Помочь сайту"> (WMR - рублей)</center><br/>
<td width="100" align="center"><img src="http://pic.ipicture.ru/uploads/090214/QV1L9oTA1O.png" width="32" height="32" />
<input type="hidden" name="Desc" value="Благодарность для ......" />
<input type="hidden" name="BringToFront" value="Y" />
</td>
</tr>
</table>
</form>
</div></div>
Скрипт Я Vkontakte

Этот скрипт позволяет пользователям написать в своём профиле ссылку на свою страничку вконтакте , и на форуме в профиле сбоку будет отображаться кнопочка Вконтакте , при нажатии на которую вас будет переносить к пользователю вконтакт. (Кароче вы поняли)

Минусы:

- Мы жертвуем полем MSN (Для Русских это не большая потеря)

Установка:

- Заходим в Панель управления
- Главная » Пользователи » Настройки модуля
- Включаем MSN индификатор
- Заходим Замена стандартных надписей и в Пользователи заменяем MSN на Я Vkontakte
- Потом заходим Главная » Управление дизайном » Редактирование шаблонов в Персональную страницу пользователя

Код:
<?if($_MSN$)?>
<div id="block15" class="udtb"><div class="udtlb">MSN:</div> $_MSN$</div>
<?endif?>
Меняем
Код:
<?if($_MSN$)?>
<div id="block15" class="udtb"><div class="udtlb">Я Vkontakte:</div> $_MSN$</div>
<?endif?>
- Потом заходим в Главная » Управление дизайном » Редактирование шаблонов>> форум >> Вид Материалов

и туда вставляем в нужное вам место

Код:
<?if($MSN$)?><a href="$MSN$"><img alt="" src="http://s54.radikal.ru/i145/0812/55/db6f26a8e1b8.png" align="" border="0"></a><?endif?>
Мини-профиль как на Megasoft


Создаете глобальный блок $GLOBAL_PROFIL$ и туда заливаете ето:
Код:
<div align="center"><strong>$WDAY$ <br> $DATE$ <br> $TIME$</strong>
<br>
<?if($USER_AVATAR_URL$)?><img class="userAvatar" title="$USERNAME$" src="$USER_AVATAR_URL$" border="0"><?else?><?if($USER_LOGGED_IN$)?><img class="userAvatar" title="$USERNAME$" src="http://i029.radikal.ru/0804/cb/8cc27a1c0e73.gif" border="0"><?else?><img class="userAvatar" title="$USERNAME$" src="http://i021.radikal.ru/0804/53/f5b4265aa726.gif" border="0"><?endif?><?endif?>

<?if($USER_LOGGED_IN$)?>

<div align="center">Вы вошли как: <strong>$USERNAME$</strong>

IP Адрес: <strong>$IP_ADDRESS$</strong>

Группа: <strong>$USER_GROUP$</strong>

Личных сообщений: <strong>$UNREAD_PM$</strong></p>

<input class="buttonprofile" type="button" onclick="document.location.href='/index/8'; return false;" value="Профиль">

<input class="buttonprofile" type="button" onclick="window.open('/index/14','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350');  return false;" value="ЛС">

<input class="buttonprofile" type="button" onclick="document.location.href='/index/10'; return false;" value="Выход">
</div>       

<?if($IS_NEW_PM$)?><script type="text/javascript">function flashit(id,cl){var c=document.getElementById(id);if (c.style.color=='red'){c.style.color=cl;}else {c.style.color='red';}}setInterval("flashit('upml2','')",500)</script><?endif?>

<script language=javascript type=text/javascript>
       function openOnClick(client_type)
       {
       if(client_type=="mail")clientWindow = window.open("$PM_URL$","pmw","scrollbars=1,top=0,left=0,resizable=1,width=850,height=350") || alert("Отключите блокировку всплывающих окон!");        
       if(client_type=="send")clientWindow = window.open("/index/14-999-0-1","pms","scrollbars=1,top=0,left=0,resizable=1,width=850,height=350") || alert("Отключите блокировку всплывающих окон!");        
       if(client_type=="options")clientWindow = window.open("/index/11","options","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");        
       if(client_type=="users")clientWindow = window.open("$USERS_LIST_URL$","users","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");        
       if(client_type=="rules")clientWindow = window.open("/rules.html","rules","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");        
       }
</script>
<?else?>
<br> $LOGIN_FORM$
<?endif?></div>

P.S. Помог,отблагодари!

Скоро будет пополнение!
 
Ответить с цитированием

  #12  
Старый 20.02.2009, 20:29
heretic1990
Постоянный
Регистрация: 02.07.2008
Сообщений: 472
Провел на форуме:
3728999

Репутация: 444
По умолчанию

нехорошо с http://megasoft.3dn.ru/ тырить
 
Ответить с цитированием

  #13  
Старый 24.02.2009, 19:29
JRMC
Новичок
Регистрация: 22.02.2009
Сообщений: 5
Провел на форуме:
7261

Репутация: 0
По умолчанию

аху**но спс
 
Ответить с цитированием

  #14  
Старый 25.02.2009, 18:16
JRMC
Новичок
Регистрация: 22.02.2009
Сообщений: 5
Провел на форуме:
7261

Репутация: 0
По умолчанию

у меня вопрос! я хочу поставить облако тегов, все сдела как сказанно и все равно при вставке кода пишет весь этот код
 
Ответить с цитированием

  #15  
Старый 26.02.2009, 16:50
JRMC
Новичок
Регистрация: 22.02.2009
Сообщений: 5
Провел на форуме:
7261

Репутация: 0
По умолчанию

хелп
 
Ответить с цитированием
Ответ



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Скрипты для ucoz TreV@N PHP, PERL, MySQL, JavaScript 26 21.10.2009 13:25
Пишу софт и скрипты под заказ drmist О Работе 1 28.03.2009 14:16
Хостинги под всё! »Atom1c« ПО для Web разработчика 29 10.02.2009 17:56



Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 


Быстрый переход




ANTICHAT.XYZ