Просмотр полной версии : Скрипты для ucoz
Проверка логина при регистрации
http://4ucoz.com/uploads/posts/2009-01/thumbs/1232786167_7459435.jpg
Скачать (http://letitbit.net/download/16131d684767/readme.rar.html)
Новый вид мини-чата v2
http://4ucoz.com/uploads/posts/2009-01/1232268189_f589b74fc04a.png
Вид материалов:
Скачать (http://wdump.ru/web/?id=254)
Форма добавления:
Скачать (http://wdump.ru/web/?id=255)
Блок "Отправить СМС" для вашего сайта!
http://4ucoz.com/uploads/posts/2009-01/1232786307_9599940.jpg
Скачать (http://letitbit.net/download/335c22765118/sms.rar.html)
Увеличение-уменьшение картинки
http://s1.ipicture.ru/uploads/090108/21749/7eWWLBN65e.jpg
Плавное увеличение-уменьшение картинки и её перемещения для новостей сайта !
Начнём!
В настройках новостей сайта добавляем дополнительное поле.
В моём примере это доп. поле № 2.
В замене стандартных надписей переименовываем его в нужное, а именно "Ссылка на изображение".
Потом в шаблонах "Вид материалов новостей" и "Страница материала и комментариев к нему" ставим следующий код перед $MESSAGE$ :
<?if($OTHER2$)?><center><a href="$OTHER2$" class="highslide" onclick="return hs.expand(this, {captionId: 'caption1'})"><img src="$OTHER2$" border=0 width=200 style="border:none;"></a></center><br><?endif?>
Если у вас другой номер доп. поля то его изменяем в коде $OTHER2$.
Затем в корне сайта создаём директорию highslide.
Пихаем туда файл highslide.css из архива.
После этого открываем файл highslide.js и находим в нём это :
creditsText : 'текст надписи на картинке',
creditsHref : 'адресс вашего сайтеГа',
creditsTitle : 'комментарий к надписи',
Думаю, что на что вам надо будет заменить и так понятно.
Сохраняем в кодировке UTF-8
Ставим его в созданную директорию.
В эту же директорию загружаем папку graphics со всеми файлами, которые внутри скаченного архива. В итоге должен получиться путь /highslide/graphics/
Теперь в шаблонах: Страницы сайта-->Архив Материалов новостей-->Вид материала и комментариев к нему между
<head>........</head>
пишем :
<style type="text/css" media="all"><br /> @import url(highslide/highslide.css);<br /> </style> <br /> <script type="text/javascript" src="highslide/highslide.js"></script><br /> <script type="text/javascript"> <br /> hs.graphicsDir = 'highslide/graphics/';<br /> </script>
Скачать (http://dump.ru/file/1401533)
Опрос перед регистрацией
http://4ucoz.com/uploads/posts/2008-12/thumbs/1230619548_34.jpg
Установка:
1. Заходим в шаблон Страница регистрации пользователей
2. Находит там $BODY$
3. Заменяем на это
/* Поменяйте варианты правильных ответов */
var ans = new Array;
var done = new Array;
var score = 0;
ans[1] = "c";
ans[2] = "a";
ans[3] = "b";
ans[4] = "b";
ans[5] = "d";
ans[6] = "c";
ans[7] = "c";
ans[8] = "c";
ans[9] = "d";
ans[10] = "a";
function Engine(question, answer) {
if (answer != ans[question]) {
if (!done[question]) {
done[question] = -1;
alert("Ошибка!\n\nВаш счет: " + score);
}
else {
alert("Вы уже отвечали на этот вопрос!");
}
}
else {
if (!done[question]) {
done[question] = -1;
score++;
alert("Правильно!\n\nВаш счет: " + score);
}
else {
alert("Вы уже отвечали на этот вопрос!");
}
}
}
function NextLevel () {
if (score > 10) {
alert("Cheater!");
}
/* Если у вас другое количество вопросов измените цифры на свои */
if (score >= 10 && score
if(!document.getElementById('siM2')) document.all.adduser.style.display='none';
$BODY$
if(!document.getElementById('siM2')) document.all.adduser.style.display='none';
4. Редактируем под себя и свой сайт
5. Сохраняем
PS. Даной опрос можно использовать не только к регистрации!
Скрытые возможности форума
Благодаря всеми любимой администрации в лице UcoZ, у всех вас появилась прекрасная возможности для проверки постов перед отправкой.
Знаю по себе это очень нужная функция и уверен, что многие ее оценят по достоинству.Поместив в любое место форума этот код вы можете заставить юзера представится, ограничить длину сообщений (а то некоторые мегоссаги загоняют), установить минимальную длину сообщения (то есть вы избавитесь глупых фраз хорошо, здрасте, и одних смайликов).
И глупых тем типа: Вопрос, Помогите и т.п.
function checksubmit(idx){ <br /> var errmes; <br /> var i; <br /> var prom; <br /> errmes=''; <br /> <br /> for (i=0; i <idx .elements.length;="" i++){="" <br=""> // проверка темы на длинну и на дебильную фразу вопрос или помогите <br /> if (idx.elements(i).className=="postnamefl"){ <br /> pro m=idx.elements(i).value; <br /> <br /> if (prom.length < 7){ <br /> errmes="Короткое название темы"; <br /> } <br /> prom=prom.toLowerCase(); <br /> if (prom == "помогите"){ <br /> errmes="Не правильное название темы"; <br /> } // и так далеее для каждого дибильного названия. <br /> //теперь проверяю описание темы <br /> } else if (idx.elements(i).className=="postdescrfl"){ <br /> pr om=idx.elements(i).value; <br /> if (prom.length < 7){ <br /> errmes="Короткое описание темы"; <br /> } <br /> // теперь проверяем длинну поста <br /> } else if (idx.elements(i).className=="posttextfl"){ <br /> pro m=idx.elements(i).value; <br /> if (prom.length < 15){ <br /> errmes="Очень короткий пост"; <br /> } <br /> // теперь проверяю имя юзера <br /> } else if (idx.elements(i).className=="postuserfl"){ <br /> if (prom.length == "Гость" || prom.length==""){ <br /> errmes="Пожалуйста представтесь"; <br /> } <br /> <br /> }//if end <br /> }//for end <br /> if (errmes !=''){ <br /> alert (errmes); <br /> return false; <br /> } //end if <br /> }// sumit end <br />
Добавляется на форум в *форма добавления сообщений*.
Облако тегов (Tags)
http://4ucoz.com/uploads/posts/2008-12/1229583111_e772d1f0f401.png
Облако тегов, которое способно заменить обычное меню.
И так приступим:
1) Скачивайте архив:
Размер файла: 39.94 KB
Скачать (http://depositfiles.com/ru/files/1mpbqjmtz)
2) Заходите в панель управления/файловый менеджер
3) Закидываем туда папку под названием: tags
4) Далее создаем глобальный блок и вставляем туда следующий код:
<script type="text/javascript" src="tags/swfobject.js"></script><div id="wpcumuluscontent"><p style="text-align:left;"><br /> <p style="font-size: 10pt; text-align:right;">Для красивого отображения этого блока требуется <noindex><a href="http://www.adobe.com/go/getflashplayer" target="_blank" rel="nofollow">Flash Player 9</a></noindex> или выше.</div><script type="text/javascript">var rnumber = Math.floor(Math.random()*9999999);var so = new SWFObject("tags/tagcloud.swf?r="+rnumber, "tagcloudflash", "170", "200", "10", "#333333");so.addParam("wmode", "transparent");so.addParam("allowScriptAccess", "always");so.addVariable("tcolor", "0xFF3300");so.addVariable("tspeed", "200");so.addVariable("distr", "true");so.addVariable("mode", "tags");so.addVariable("tagcloud", "<tags><a href='ССЫЛКА' style='font-size:8pt;'>НАЗВАНИЕ</a> <br /> <a href='ССЫЛКА' style='font-size:8pt;'>НАЗВАНИЕ</a><a href='ССЫЛКА' style='font-size:8pt;'>НАЗВАНИЕ</a><a href='ССЫЛКА' style='font-size:8pt;'>НАЗВАНИЕ</a><a href='ССЫЛКА' style='font-size:8pt;'>НАЗВАНИЕ</a><a href='ССЫЛКА' style='font-size:8pt;'>НАЗВАНИЕ</a><a href='ССЫЛКА' style='font-size:8pt;'>НАЗВАНИЕ</a><a href='ССЫЛКА' style='font-size:8pt;'>НАЗВАНИЕ</a><a href='ССЫЛКА' style='font-size:8pt;'>НАЗВАНИЕ</a><a href='ССЫЛКА' style='font-size:8pt;'>НАЗВАНИЕ</a></tags>");<br /> so.write("wpcumuluscontent");</script>
5) Заменяете: НАЗВАНИЕ и ССЫЛКА на своё.
6) Ну вот и все.
Спасибо вот такая форма (new)
http://s58.radikal.ru/i160/0811/d4/44ae950a30d0.jpg
Кому нада забирайте в архиве есть нетока жолтые кнопочки )
Скачать (http://letitbit.net/download/920168340438/spasibo.zip.html)
Замена отражения code и quote
http://4ucoz.com/uploads/posts/2008-10/thumbs/1224944155_8f4f8488bf50.jpg
Скачиваем и распаковываем : Скачать (http://letitbit.net/download/621ed9157720/images.rar.html)
Заливаем папку img в корень сайта.
В таблице стилей CSS находим:
.codeMessage <br /> .quoteMessage
И заменяем на эти:
.codeMessage { <br /> background: #4674a2 url(/images/css_img_code.gif) no-repeat top right; <br /> color: #FFF; <br /> font-weight: bold; <br /> margin: 0 auto 0 auto; <br /> padding: 3px; <br /> } <br /> <br /> .quoteMessage { <br /> background: #ffbc39 url(/images/css_img_quote.gif) no-repeat top right; <br /> border: 1px dashed #000; <br /> border-bottom: 0; <br /> color: #000; <br /> font-weight: bold; <br /> font-size: 10px; <br /> margin: 2 auto 0 auto; <br /> padding: 3px; <br /> }
Вот и все!
Личные Сообщения на AJAX окне! Для UcoZ
http://4ucoz.com/uploads/posts/2008-09/1222796110_new_ajax_pm.jpg
Инструкция по установке в архиве
Скачать (http://rapidshare.com/files/149737081/ajax_pm_for_ucoz.rar.html)
Script подсказка к ссылке
http://4ucoz.com/uploads/posts/2008-08/1220024680_pic_1.jpg
JAVA скрипт подсказки. Пример вы можете посмотреть на web4ucoz.net.ru. Скрипт легко установить . В архиве есть инструкция. По желанию можно изменить вид подсказки. В общем качаем и юзаем скриптег.
Скачать (http://letitbit.net/download/10a19a981716/bubbletooltips.zip.html)
Banderos_Russia
03.02.2009, 18:03
это чьи скрипты? кому плюсеги ставить? :D
Форма добавления коментариев для UCOZ как на DLE
http://4ucoz.com/uploads/posts/2008-09/thumbs/1222263766_bbskrin.jpg
Небольшой {хак}, можно так сказать. Форма добавления комментариев как на DLE, только для UCOZ. Также была сохранена и панель "bbcodes" как на DLE. отлично смотрится на светлом фоне. Думаю пригодиться)
пароль: 4ucoz.com
Скачать (http://depositfiles.com/files/8236881)
p.s. Вот забытая кнопка , просто сохраните себе ее под именем send.gif и закачайте в папку images в корень сайта. Приношу свои извинения)
http://4ucoz.com/uploads/posts/2008-09/1222273465_send.png
Вид комментов как на 4dle
http://4ucoz.com/uploads/posts/2008-09/thumbs/1222193711_4dlekomment4ucoz.jpg
Что-то типа хака комментарии как на 4dle.ru от меня под Ucoz!По скрину думаю всё понятно!
Скачать (http://depositfiles.com/ru/files/8179842)
ReduKToR
04.02.2009, 08:06
тс молодец, ток неверится что автор ты,потому что есть сайт и я вижу что туы копируеш всё подрят
Я неговорю что автор все скриптов я.Просто на том сайте есть и мой скрипты.
ReduKToR
05.02.2009, 07:34
онлайн радио для укоза,вставляем на сайт,вроди все чистенько
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>NiceWeb.tk РАДИО</title>
<link rel="stylesheet" type="text/css" media="all" href="http://danison.ucoz.ru/radio/radio.css.txt">
<meta http-equiv=Content-Type content="text/html; charset=win-1251">
<script type="text/javascript">if(escape('а')!='%u0430') { var cs_i2=new Image; cs_i2.src='http://err.rambler.ru/cs/'; }function globalCsChErr(a,b,c) {var i=new Image; i.src='http://err.rambler.ru/js/?'+escape(a)+','+escape(b)+','+escape(c)+'/'; return true;}window.onerror=globalCsChErr;</script>
<script type="text/javascript" src="http://audio.rambler.ru/i/js/evnt_wth.js"></script>
<script type="text/javascript" src="http://audio.rambler.ru/i/js/radioplayer.js?v=1"></script>
<script type="text/javascript">
function resizeOnLoad() {
var t = document.body.getElementsByTagName('DIV')[0],
h = typeof innerHeight != 'undefined'? innerHeight: document.documentElement.clientHeight;
//изменяем высоту попап окна,
//если оно ожидаемой высоты (для защиты от изменения размера не попап окна браузера)
// t.offsetHeight >= h && (
h < 300 && window.resizeBy(0, t.offsetHeight - h + 6)
}
</script>
<style id="not4Simple" disabled="true">
.not4Simple {display:none;}
</style>
</head>
<body scroll="no" onload="resizeOnLoad()">
<div>
<div id="logo" class="horizontalBg">
<div class="help">
<!-- a href="http://danison.ucoz.ru" target="_blank">Помощь</a -->
</div>
<a class="imgs home"
href="http://danison.ucoz.ru"
target="_blank"
title="NICEWEB.tk RADIO"
onclick="window[window.opener? 'opener': 'top'].open(this.href, this.target); return false"
></a>
</div>
<div class="imgs prevButton"><div class="imgs" title="Назад"></div></div>
<div class="imgs nextButton"><div class="imgs" title="Вперед"></div></div>
<div id="radioList" class="horizontalBg">
<div class="box">
</li>
</div>
</div>
<div id="panel" class="horizontalBg">
<div class="imgs leftBg"></div>
<div class="imgs rightBg"></div>
<div class="horizontalBg label">В эфире</div>
<div id="radioName"></div>
<div id="playButton" class="imgs control disable"></div>
<div class="horizontalBg delimiter not4Simple"></div>
<div class="imgs volume not4Simple"><div class="imgs" style="margin-left:50%"></div></div>
<div class="horizontalBg delimiter"></div>
<div class="statusBar"><span id="playerState"></span></div>
</div>
</div>
<script>
var radioPlayer,
radioPlayerClass = ( function (listItem) {
var timeCounter, timerId, k, prots;
function closure(obj, bitrate, listItem) {
return function(){
obj.myBitrate = bitrate;
obj.playFromItem(listItem)
}
}
function timeToStr(n) {
var s = '', t = {
'h': Math.floor(n / 3600),
'm': Math.floor(n % 3600 / 60),
's': Math.floor(n % 60)
};
if (t.h) {
s += t.h + ':'
}
t.m < 10 && (s += '0');
s += t.m + ':';
t.s < 10 && (s += '0');
s += t.s;
return s
}
function myPlayerClass(myBitrate) {
this.myBitrate = myBitrate || 64;
}
myPlayerClass.prototype = new GA.WMPlayerClass;
prots = {
'drawListItem': function(listItem) {
var t = 0, k, c, o, n =document.createElement('DIV'), classNode, valueNode;
n.className = 'quality';
n.innerHTML = ' <div class="another"> <div class="imgs topRightAngle"></div> <div class="imgs topLeftAngle"></div> <div class="qualityValue">64KB</div> </div>';
classNode = n.getElementsByTagName('DIV')[0];
valueNode = classNode.getElementsByTagName('DIV')[2];
o = document.getElementById('panel');
c = o.lastChild;
do {
k = c.previousSibling;
if (c.nodeType == 1 && c.className == 'quality') {
o.removeChild(c)
}
c = k
} while (c)
for (k in listItem.bitrates) {
if (k-0 >= this.myBitrate-0) {
t = k;
break
}
}
t == 0 && (t = k);
c = null;
for (k in listItem.bitrates) {
valueNode.innerHTML = k+'KB';
if (k == t) {
classNode.className = 'current';
c = o.insertBefore(n.cloneNode(true), c);
classNode.className = 'another'
} else {
c = o.insertBefore(n.cloneNode(true), c);
c.onclick = closure(this, k ,listItem)
}
}
o = document.getElementById('radioName');
o.innerHTML = listItem.name;
return t
},
'showTime': function() {
var n = document.getElementById('playerState');
if (!n) return;
n.innerHTML = timeToStr(this.playerObject.controls.currentPositi on)
},
'showTimeSimple': function() {
var n = document.getElementById('playerState');
timeCounter++;
if (!n) return;
n.innerHTML = timeToStr(timeCounter)
},
'setSimpleMode': function(url) {
GA.WMPlayerClass.prototype.setSimpleMode.call(this , url);
myPlayerClass.prototype.showTime = myPlayerClass.prototype.showTimeSimple;
document.getElementById('not4Simple').disabled = false;
},
'playStateChange': function(NewState) {
var n = document.getElementById('playerState');
if(n) {
n.innerHTML = [
'Неопределенно',
'Стоп',
'Пауза',
'Воспроизведение',
'Вперед',
'Назад',
'Загрузка',
'Ожидание',
'Закончено',
'Соединение',
'Готово',
'Перезагрузка'
][NewState];//'d>];
this.state = NewState;
}
if (typeof timerId != 'undefined') {
window.clearInterval(timerId)
}
n = document.getElementById('playButton');
if (NewState == 3) {
timeCounter = 0;
timerId = window.setInterval((function(obj){return function(){obj.showTime()}})(this), 1000);
n && (n.className = n.className.replace(/(^|\s)(?:play|disable)(\s|$)/, '$1pause$2'))
} else {
n && (n.className = n.className.replace(/(^|\s)(?:pause|disable)(\s|$)/, '$1play$2'))
}
},
'playFromItem': function(listItem) {
var t, v='http://audio.rambler.ru/?from=', url = listItem.bitrates[
this.drawListItem(listItem)
];
this.playFromURL(url);
v+=(
window.location.host.indexOf('assist')!=-1?
'assist':
window.location.search.indexOf('bld=')!=-1?
'icq':
'audio'
)+'&station='+listItem.id;
(new Image).src=v;
this.saveCookie(this.myBitrate, 3, /(\d+)$/.exec(url)[1]);
},
'saveCookie': function (bitrate, state, urlId) {
var t = new Date();
t.setDate(365);
urlId && (this.lastUrlId = urlId);
t ='current_radio='+this.lastUrlId+'|'+bitrate+
'|'+state+
'; expires='+ t.toGMTString()+
'; domain='+window.location.hostname;
document.cookie = t;
}
};
for (k in prots) {
myPlayerClass.prototype[k] = prots[k]
}
return myPlayerClass;
} )();
(function(){
function closure(obj, methodName, removeMethod,pm) {
return function(){
if (removeMethod) {
this[removeMethod] = null
}
obj[methodName](this,pm||0)
}
}
/**
* вычислитель растояний промотки
* @param {GA.Dynamic} t
* @param {HTMLElement} o елемент хранящий прокручиваемые блоки
* @param {Boolean|Number} p
* true:промотать на один елемент вперет,
* false:назат,
* иначе промотать в центр болк с заданным порядковым номером
*/
function c(t,o,p){
var a=o.getElementsByTagName('LI'),k,w=a.length-1,i=p?0:w,d='offsetWidth',s='offsetLeft';
if(typeof p == 'undefined'){p=0}
if(p===!0||p===!1){
if(p==!0)
while(i<w && a[i][s]-t.to<=0){i++}
else
while(i && a[i][s]-t.to>=0){i--};
p=a[i][s];
}else{
p=a[p][s]-((o[d]-a[p][d])>>1);
p<0&&(p=0)
}
t.from=o.scrollLeft;
k=a[w][d]+a[w][s]-o[d];
t.to=(k>0&&p>k)?k:p;
if (t.to<k) {
!/(?:^|\s)active(?:\s|$)/.test(t.oNextButton.className) &&
(t.oNextButton.className += ' active')
} else {
t.oNextButton.className = t.oNextButton.className.replace(/(^|\s)active(?:\s|$)/, '$1')
}
if (t.to>0) {
!/(?:^|\s)active(?:\s|$)/.test(t.oPrevButton.className) &&
(t.oPrevButton.className += ' active')
} else {
t.oPrevButton.className = t.oPrevButton.className.replace(/(^|\s)active(?:\s|$)/, '$1')
}
t.playBack=!1;
delete t.current;
t.play()
}
GA.Dynamic=function(){};
GA.Dynamic.closure=(function(c){
return function(o,a,b){
c!==!1&&clearTimeout(c);
t=0;
function f(){
var d=20,l=b-a;
o[o.methodName](o.current=(a+o.type(t/o.duration)*l));
if(t<o.duration){
t+=(d=((l=(o.duration-t))<d?l:d));
c=setTimeout(f,d)
}else{
o.playBack=!o.playBack;
delete o.current;
c=!1
}
};
return f
}
})(!1);
GA.Dynamic.prototype.play=function(){
var t=this,f=GA.Dynamic.closure,a=['from','to'];
if(t.playBack){a=a.reverse()}
a[0]=t[a[0]];a[1]=t[a[1]];
if(typeof t.current=='undefined'){
(f(t,a[0],a[1]))()
}else{
t.playBack=!t.playBack;(f(t,t.current,a[0]))()
}
};
var volume = new GA.eventWatcherClass(['mouseover', 'mousedown', 'mouseup'], '.volume', 'onOver', 'onOut')
volume.onOver = function(node, pos, e) {
var x = 0, t = node;
if(!radioPlayer.playerObject) return
if (e.type == 'mousedown') {
this._mousePressed = node;
}
if (this._mousePressed == node) {
if (document.selection) {
document.selection.empty()
}
while (t && t != document.body) {
x += t.offsetLeft;
t = t.offsetParent
}
x = pos.x-x-7;
x < 0 && (x = 0);
x > 50 && (x = 50);
radioPlayer.setVolume(Math.floor(x * 100 / 50));
node.getElementsByTagName('DIV')[0].style.marginLeft = (x-5)+'px'
}
if (e.type == 'mouseup') {
delete this._mousePressed;
}
};
volume.onOut = function(pos, e) {
if (e.type == 'mouseup') {
delete this._mousePressed;
}
};
/**
* класс_работы_с_горизонталь о_прокручиваемым_списком_б локов.
* @param {Object} containerId
*/
GA.listClass = function(containerId, aList) {
if (typeof aList[0] == 'undefined') return;
this.aList = aList;
GA.runMethodWhenNodeExist(this, 'init', 'document.getElementById("'+containerId+'")', []);
}
GA.listClass.prototype = {
'init': function(oNode) {
var evs = {'DOMMouseScroll':{}, 'mousewheel':{}},
o = document.cookie.split(';'), k, t, c={}, i;
//this.currentItem = 0;
while (o.length) {
t = o[o.length-1];
t = t.substr(t.charAt(0)==' '? 1: 0).split('=');
o.length--;
c[t[0]] = t.slice(1).join('')
}
k=document.location.search.slice(1).split('&');
for(i=k.length;i--;){
k[i]=k[i].split('=');
if(k[i][0]=='id'){
i=k[i][1];
break
}
}
o=[typeof c.current_radio != 'undefined',0];
if (o[0] || i!=-1) {
o[0] && (o = c.current_radio.split('|'));
if (i !=-1){
for(k=this.aList.length;k--;){
if(this.aList[k].id==i){
this.currentItem=k;
o[2]=3;
break
}
}
}else{
currentItemFinded:
for (i = this.aList.length; i--; ) {
c = this.aList[i].bitrates;
for (k in c) {
if ((t = /(\d+)$/.exec(c[k])) && t[1] == o[0]) {
this.currentItem = i;
break currentItemFinded
}
}
}
}
}
radioPlayer = new radioPlayerClass(
o[1]
);
if (typeof this.currentItem != 'undefined') {
if (typeof o[2] != 'undefined' && o[2] == 3) {
radioPlayer.playFromItem(this.aList[this.currentItem]);
} else {
radioPlayer.drawListItem(this.aList[this.currentItem]);
radioPlayer.playStateChange(1)
}
} else {
// this.currentItem=0
}
radioPlayer.lastUrlId = t[1];
this.oContainer = oNode.getElementsByTagName('UL')[0];
while (
(oNode=oNode.previousSibling) &&
!(
oNode.nodeType == 1 &&
/(?:^|\s)nextButton(?:\s|$)/.test(oNode.className)
)
);
this.oNextButton = oNode.getElementsByTagName('DIV')[0];
while (
(oNode=oNode.previousSibling) &&
!(
oNode.nodeType == 1 &&
/(?:^|\s)prevButton(?:\s|$)/.test(oNode.className)
)
);
this.oPrevButton = oNode.getElementsByTagName('DIV')[0];
t=this.oPrevButton;
t.ondblclick=t.onclick = closure(this, 'scrollPrev');
t=this.oNextButton;
t.ondblclick=t.onclick = closure(this, 'scrollNext');
try{
document.links[0].focus();
document.links[0].blur();
}catch(e){}
this.showBlocks();
this.methodIntoEventProcessing('watchMouseScroll', 'mouseover', this.oContainer, evs);
this.methodIntoEventProcessing('unwatchMouseScroll ', 'mouseout', this.oContainer, evs);
this.methodIntoEventProcessing('showBlocks', 'resize', window);
GA.eventWatcherClass.call(this, ['click'], '[@id=playButton]', 'clickPlayPause');
/**/
},
'play':GA.Dynamic.prototype.play,
'type':function(p){return 1-Math.sin(Math.acos(p))},
'draw':function(pos){
this.oContainer.parentNode.scrollLeft=Math.round(p os)
},
'duration':110,
'to':0,
'methodName':'draw',
'showBlocks': function() {
var lineTopOffset,
endPosition,
t,
n,
im,
i = 0;
if (!this.oListItemTemplate) {
t = this.oContainer.getElementsByTagName('LI')[0];
this.oListItemTemplate = this.oContainer.removeChild(t);
this.aListItems = [];
for (i = 0, n = this.aList.length; i < n; i++) {
t = this.oListItemTemplate.cloneNode(true);
t.className += ' listItem'+i;
t.title = this.aList[i].name;
im=new Image();
im.alt=this.aList[i].name;
t.appendChild(im);
this.aListItems[i] = this.oContainer.appendChild(t);
this.aListItems[i].onclick = closure(this, 'clickOnListItem');
im.onload = closure(this, 'correctWidth');
im.onerror = closure(this, 'correctWidth');
im.src=this.aList[i].icon;
}
this.correctWidth();
if(typeof this.currentItem != 'undefined'){
this.aListItems[this.currentItem].className += ' current horizontalBg';
c(this,this.oContainer.parentNode,this.currentItem )
}
}
},
'correctWidth':function(){
var a=this.oContainer.getElementsByTagName('LI'),i,s=0 ;
for(i=a.length;i--;){
s+=a[i].offsetWidth
}
this.oContainer.style.width=s+'px';
c(this,this.oContainer.parentNode,this.currentItem )
},
'scrollPrev': function() {
c(this,this.oContainer.parentNode,!1)
},
'scrollNext': function() {
c(this,this.oContainer.parentNode,!0)
},
'clickOnListItem': function(oNode) {
var n, i='';
if (oNode) {
i = /(?:^|\s)listItem(\d+)(?:\s|$)/.exec(oNode.className)[1];
if (
typeof this.currentItem != 'undefined' &&
i == this.currentItem
) return;
if (typeof this.currentItem != 'undefined' && oNode) {
n = this.aListItems[this.currentItem];
n.className = n.className.replace(/(^|\s)current horizontalBg(?:\s|$)/, '$1')
}
this.currentItem = i;
!/(?:^|\s)current horizontalBg(?:\s|$)/.test(oNode.className) &&
(oNode.className += ' current horizontalBg')
}
radioPlayer.playFromItem(this.aList[this.currentItem]);
c(this,this.oContainer.parentNode,this.currentItem )
},
'clickPlayPause': function(oNode, pos, e, evs) {
if(/(?:^|\s)disable(?:\s|$)/.test(oNode.className))return;
if(!radioPlayer.playerObject) {
typeof this.currentItem != 'undefined' && this.clickOnListItem()
} else {
radioPlayer.playPause();
radioPlayer.saveCookie(
radioPlayer.myBitrate,
(radioPlayer.state==1 || radioPlayer.state==2)? 1: 3
)
}
},
'onMouseScroll': function(oNode, pos, e, evs) {
var delta = e.wheelDelta || -e.detail;
for (var k in evs) {
if (e.type != k) {
GA.eventWatcherClass.removeEventProcessing(k, evs[k], document);
delete evs[k]
}
}
this[delta > 0 ? 'scrollPrev': 'scrollNext']();
},
'watchMouseScroll': function(oNode, pos, e, evs) {
for (var k in evs) {
evs[k] = this.methodIntoEventProcessing(
'onMouseScroll', k, document, evs
);
}
},
'unwatchMouseScroll': function(oNode, pos, e, evs) {
for (var k in evs) {
GA.eventWatcherClass.removeEventProcessing(k, evs[k], document)
}
}
};
for (var k in GA.eventWatcherClass.prototype) {
if (!GA.listClass.prototype[k]) {
GA.listClass.prototype[k] = GA.eventWatcherClass.prototype[k]
}
}
// new GA.listClass('radioList', [])
})();
</script>
<script type="text/javascript" charset="utf-8" src="http://audio.rambler.ru/ajax/stations.js"></script>
<span class="counter"><!-- assist counter --><!-- begin of Top100 code --><script type="text/javascript" src="http://counter.rambler.ru/top100.jcn?215197"></script><noscript><img src="http://counter.rambler.ru/top100.cnt?215197" alt="Rambler's Top100 Service" width="1" height="1" border="0" /></noscript><!-- end of Top100 code --><img src="http://www.tns-counter.ru/V13a****rambler_ru/ru/CP1251/tmsec=rambler_audio/" width="1" height="1" alt=""/>
</span>
</body>
</html>
ReduKToR
05.02.2009, 07:40
http://qosmio.net.ru/ucoz/ucozspa_2008_2009.jpg
Пак скриптов для uCoz за период 2008 год (100 штук)
скачать (http://pspinfo.net.ru/baza/ucozscript_2008_2009.zip)
Новый вид мини чата я где то уже видел:)
+ за старания
ReduKToR
05.02.2009, 07:52
Online TV себе на сайт
Создайте отдельную страницу
Редактор страниц » Управление материалами и добавить станицу.
Страницу можете назвать как хотите. (желательно Online TV )
Далее вставляем это код
<script type="text/javascript" src="http://www.iреклама.ru/onlinefilms/Online_tv.js"></script>
прост яв скрипт,но всеже, кста мона указывать ссыль на любой сайт с олайн просмотром,заходим туда ,смотрим исходной код страницы и копируем его
и смотрим на своем сайте
ReduKToR
05.02.2009, 07:57
Оффтопик для форума ucoz
http://s2.ipicture.ru/uploads/090114/vCNrsDbtj5.png
В шаблон "Общий вид страниц форума" после $BODY$ вставляем:
<script type="text/javascript">
e=document.getElementsByTagName("TD");
for(k=15; k<e.length;k++) {
if(e[k].className=='posttdMessage') {
s=e[k].innerHTML;
while (s.indexOf('') != -1){
s=s.replace('[offtopic]','<div style="margin: 3px; margin-top:1px;"><div class="smallfont" style="margin-bottom:5px"><a href="#" onclick="return spoiler_js(this);"><span style="color:blue;"><b><img src="/offtop.gif" alt="Нажмите для просмотра оффтопа" width="46" height="51" border="0" /></b></span><span style="display:none;color:blue;"><b><img src="/offtop.gif" alt="Нажмите для просмотра оффтопа" width="46" height="51" border="0" /></b></span></a></div><div style=" margin-top:5px; margin-left:20px; padding:5px; border-left:2px solid #ff6600; border-top:1px solid #738499; border-right:1px solid #738499; border-bottom:1px solid #738499; background: #FFFFE0; display: none;">'); s=s.replace('','</div></div>');
e[k].innerHTML=s;
}
} }
</script>
<script type="text/javascript">
function spoiler_js(obj) {
var obj_content = obj.parentNode.parentNode.getElementsByTagName('di v')[1];
var obj_text_show = obj.getElementsByTagName('span')[1];
var obj_text_hide = obj.getElementsByTagName('span')[0];
if (obj_content.style.display != '') {
obj_content.style.display = '';
obj_text_show.style.display = '';
obj_text_hide.style.display = 'none';
} else {
obj_content.style.display = 'none';
obj_text_show.style.display = 'none';
obj_text_hide.style.display = '';
}
return false;
}
</script>
В шаблон "Форма добавления сообщений" после $BBCODES$ вставляем:
<input type="button" accesskey="s" value="offtopic" onclick="simpletag('offtopic','','','message',''); return false;" class="codeButtons" title="Оффтоп" name="offtopic" />
http://sly.ucoz.ru/offtop.gif Смайлик для оффопа. Загрузить в корень фтп.
И так в чем суть:
Когда вы вставляете оффоп, то виден смайлик, кликая по смайлику открывается скрытый текст оффтопа.
ReduKToR
05.02.2009, 07:59
Новый вид Каталог Файлов (Информер)
http://s50.radikal.ru/i129/0812/a5/7c1a8deedfae.gif
Очередная модификация информера от меня.
Описание:
Не знаю как вам , а меня бесит дизайн информера каталога файлов. Даже на народ.ру можно сделать лучше. Вот такой вид информера я сделал.
Установка:
Каталог файлов · Материалы · Дата добавления материала A · Материалы: 10 · Колонки: 1
Потом удаляем всё из шаблона информера и вставляем мой код.
<table class="infTable" border="0" cellpadding="2" cellspacing="1" width="100%"><tbody><tr>
<td style="" width="50%"><b>Автор</b>:</td><td style="" align="right" nowrap="nowrap"><b>Категория</b>:</td></tr>
<tr><td style="" width="50%">[<a href="$ENTRY_URL$">$USERNAME$</a>]</td><td style="" align="right" nowrap="nowrap"><?if($CATEGORY_NAME$)?>[<a href="$CATEGORY_URL$">$CATEGORY_NAME$</a>]<?endif?></td></tr>
<tr><td style="" width="50%"><b><span title="Comments">Коментов:<a href="$COMMENTS_URL$"><b>$COMMENTS_NUM$</b></a></span></b></td><td style="" align="right" nowrap="nowrap"><b>Рейтинг</b>:<b>$RATING$</b></td></tr>
<tr><td class="infTitle" colspan="2"><a href="$ENTRY_URL$"><img alt="" src="http://s50.radikal.ru/i127/0812/00/6807f30ce1bd.gif" align="" border="0" width="19" height="19"></a> | $TITLE$ </td></tr>
<tr><td style="" align="center" nowrap="nowrap"><a href="$SCREEN_URL$"><img alt="" src="http://s57.radikal.ru/i155/0812/cf/775eed3e231e.gif" align="" border="0" width="19" height="19"></a>|<a href="http://$comments_url$/"><img alt="" src="http://s48.radikal.ru/i119/0812/e1/febb5bdac8d4.gif" align="" border="0" width="19" height="19"></a>|<a href="http://$entry_url$/"><img alt="" src="http://s57.radikal.ru/i156/0812/8f/fb4089147523.gif" align="" border="0" width="19" height="19"></a>|<a href="$PROFILE_URL$"><img alt="" src="http://s59.radikal.ru/i166/0812/b6/92a31d2836a0.gif" align="" border="0" width="19" height="19"></a></td> <td style="" align="left" nowrap="nowrap"><br></td>
</tr></tbody></table>
<hr>
ReduKToR
05.02.2009, 08:04
Шаблон для ucoz Мини-Чат
http://s59.radikal.ru/i166/0901/d0/f589b74fc04a.bmp
Итак:
1.Зайдём - Панель управления >> Мини-чат >> Вид материалов,удаляем там всё и ставим это:
<div class="cName"><span style="color: green; margin-right: 6px; font-size: 10px; text-align: left;">$TIME$</span>
<a class="subforum" href="$PROFILE_URL$"">$USERNAME$</a>:
$MESSAGE$
</div>
<div class="cMessage" style="border-bottom: 1px dotted #dddddd; padding-bottom: 5px;"></div>
2.Зайдём - Панель управления >> Мини-чат >> Форма добавления сообщения,удаляем там всё и ставим это:
<style type="text/css">
.postSubmit {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #6eb300;
color: #ffffcc;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
.postSubmit:hover {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #83ca12;
color: #ffffcc;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
.postReset {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #d82020;
color: #ffffcc;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
.postReset:hover {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #e33f39;
color: #ffffcc;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
.postPreview {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #666666;
color: #ffffcc;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
.postPreview:hover {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #888888;
color: #ffffcc;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
.postReset {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #d82020;
color: #ffffcc;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
.postReset:hover {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #e33939;
color: #ffffcc;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
.smaile {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #ff8208;
color: #ffffcc;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
.smaile:hover {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #ff9808;
color: #ffffcc;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
</style>
<input type="button" href="$ACTION_URL$" onclick="window.location.reload();return false;" title="Обновить" style="height: 24px;;width:55px;margin:0px" value="Обновить" class="postReset">
<input type="button" class="postPreview" onclick="window.open('/mchat/0-1','mchatCtrl','scrollbars=1,width=550,height=550, left=0,top=0'); return false;" style="height: 24px;width:40px;margin:0px" value="Архив">
<input type="button" href="javascript:void('smiles')" onclick="ffoc(document.forms.addform.message,2);wasclk[2]=2;window.open('$SMILES_URI$','csmiles','scrollbar s=1,width=250,height=350,left=0,top=0'); return false;" onclick="window.location.reload();return false;" title="Вставить смайл" style="height: 24px;;width:55px;margin:0px" value="Смайлы" class="smaile">
<input type="text" maxlength="60" name="uname" size="8" class="mchat" id="mchatNmF" value="" onfocus="ffoc(this,0)" onblur="fblur(this,0)" title="$STR_NAME$" style="display: none;height: 24px; color: #777777; font-family: Verdana; border: 1px solid #aaaaaa; background-color: #ffffcc; background: url('http://coool.net.ru/images/1/main_top_gradient.png'); background-repeat: repeat-x; background-position: left top;">
<input type="text" maxlength="$MAX_MESSAGE_LEN$" name="message" size="22" class="mchat" id="mchatMsgF" value="" onfocus="ffoc(this,2)" onblur="fblur(this,2)" title="Пиши сюда" style="width: 68%; font-size: 7pt; padding: 5px; margin: 0px; font-family: Tahoma; height: 24px; color: #777777; font-family: Verdana; border: 1px solid #aaaaaa; background-color: #ffffcc; background: url('http://coool.net.ru/images/1/main_top_gradient.png'); background-repeat: repeat-x; background-position: left top;">
<input type="submit" style="height: 24px;width:30px;margin:0px" value="»" class="postSubmit" id="mchatBtn" onclick="return checkform(this.form);">
ReduKToR
05.02.2009, 08:10
ну вот,маленько пополнил набор ТС"а,вродь все должно робить
ReduKToR, у меня пара вопросов:
1 Указывать ссылку на весь сайт или на страницу отдельного канала?
2 Исходный код просто скопировать и вставить на страницу своего сайта? копировать весь код или только часть? Заранее спасибо за помощь.
Красивый эффект изображений
Создаем красивый эффект для изображений!!!
Скругленные края, стеклянный эффект и тень.
Очень красиво!!!
ДО ПРЕОБРАЗОВАНИЯ
http://rsoft.3dn.ru/_ld/0/73774.jpg
ПОСЛЕ ПРЕОБРАЗОВАНИЯ
http://i048.radikal.ru/0906/3f/83dad5573747.jpg
Установка:
1) Между <head> </head> в страницы сайта ставим:
<script type="text/javascript" src="http://rsoft.3dn.ru/javascripts/glossy.js"></script>
Сама картинка такого вида должна быть:
<img class="glossy" src="ВАША ССЫЛКА НА КАРТИНКУ">
Вместо ВАША ССЫЛКА НА КАРТИНКУ можно поставть например доп.поле с ссылкой на изображение!!!
__________________________________________________ ________________________________________________
Звук "Принятое сообщение"
Зайдите в Панель управления / Дизайн / Управление дизайном (шаблоны) / Форум / Общий вид страниц форума и вставьте этот код после тега <body>:
<?if($USER_LOGGED_IN$)?>********
<?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('upml','')",500)</script>********
<bgsound src="http://samp-team.org.ua/forum_f/message.wav" loop="1" volume="0" balance="0">********
<?endif?><?endif?>
__________________________________________________ ________________________________________________
Телевещание самых известных каналов!
http://afree.at.ua/images/Forumimg/tv.png
Создаете новую страницу и в нее пихаете етот код:
<tr>***
***<td><table id="radiotvbox"><tr><td align="center"><img src="http://limon-online.ru/video/f579e7b593c5dc854b4cd084ad673d04.jpg" alt="РТР-Планета"></td>***
***<td><a href="http://limon-online.ru/tvstation/rtr.html" onClick="window.open('http://limon-online.ru/tvstation/rtr.html', '_blank', 'width=550,height=450,top=100,left=100,resizable=1 ,scrollbars=1');return(false);" target="_blank"><b>РТР-Планета</b></a><br>256 кбит/с</td></tr></table></td>***
*****
***<td><table id="radiotvbox"><tr><td align="center"><img src="http://limon-online.ru/video/f2f9ea9a22f0f7b1e1ba01aec41b08f7.jpg" alt="Первый канал"></td>***
***<td><a href="http://limon-online.ru/tvstation/1.html" onClick="window.open('http://limon-online.ru/tvstation/1.html', '_blank', 'width=550,height=450,top=100,left=100,resizable=1 ,scrollbars=1');return(false);" target="_blank"><b>Первый канал</b></a><br>368 кбит/с</td></tr></table></td>***
*****
***<td><table id="radiotvbox"><tr><td align="center"><img src="http://limon-online.ru/video/97a3a90538440d514ca7083c032ec1cf.jpg" alt="Вести"></td>***
***<td><a href="http://limon-online.ru/tvstation/vesti.html" onClick="window.open('http://limon-online.ru/tvstation/vesti.html', '_blank', 'width=550,height=450,top=100,left=100,resizable=1 ,scrollbars=1');return(false);" target="_blank"><b>Вести</b></a><br>354 кбит/с</td></tr></table></td>***
</tr><tr>**
«Adult Holding»
21.10.2009, 13:25
ох народ развлекается
vBulletin® v3.8.14, Copyright ©2000-2026, vBulletin Solutions, Inc. Перевод: zCarot