20:54
[ МИНИ ЧАТ ]
Главная | Регистрация | Вход Приветствую Вас Гость | RSS
♠۩۞۩♠ Реклама ♠۩۞۩♠
♠۩۞۩♠ Ваша реклама ♠۩۞۩♠
♠۩۞۩♠ Реклама ♠۩۞۩♠
Место свободное Место свободное
Место свободное
Место свободное Место свободное

( ПРАВИЛА ФОРУМА ) НА ФОРУМЕ ЗАПРЕЩАЕТСЯ: ИСПОЛЬЗОВАТЬ НЕЦЕНЗУРНЫЕ ВЫРАЖЕНИЯ, ЛИЧНЫЕ ОСКОРБЛЕНИЯ УЧАСТНИКОВ ФОРУМА В ЛЮБОМ ВИДЕ. ПРОЯВЛЯТЬ РЕЛИГИОЗНУЮ, РАССОВУЮ, ПОЛОВУЮ И ПРОЧУЮ НЕТЕРПИМОСТЬ ИЛИ ДИСКРИМИНАЦИЮ. ИСПОЛЬЗОВАТЬ ИМЕНА ( НИКИ ), СОДЕРЖАЩИЕ АДРЕСА ВЕБ-САЙТОВ, ГРУБЫЕ И НЕ ЦЕНЗУРНЫЕ ВЫРАЖЕНИЯ. СОЗДАВАТЬ ТЕМЫ, ДУБЛИРУЮЩИЕ ( РАНЕЕ СОЗДАННЫЕ ) И НЕ ЗАКРЫТЫЕ ПО ТЕМАТИКЕ.ПРЯМАЯ РЕКЛАМА В СООБЩЕНИЯХ. ПОМЕЩАТЬ СООБЩЕНИЯ, СОДЕРЖАЩЕЕ ЗАВЕДОМО ЛОЖНУЮ ИНФОРМАЦИЮ, КЛЕВЕТУ.ВСЕ СОЗДАННЫЕ ВАМИ ТЕМЫ ДОЛЖНЫ ИМЕТЬ СМЫСЛОВЫЕ НАЗВАНИЯ, А НЕ, НАПРИМЕР: ПОМОГИТЕ..., И ТОМУ ПОДОБНОЕ.
  • Страница 1 из 1
  • 1
ФОРУМ » ВСЁ ДЛЯ UCOZ » ДРУГИЕ СКРИПТЫ ДЛЯ СИСТЕМЫ UCOZ » Хинт для сайта!
Хинт для сайта!
АГЕНТ Дата: Воскресенье, 07.02.2010, 20:56 | Сообщение # 1


♠۩۞۩♠ АДМИН ♠۩۞۩♠

РАНГ :

СООБЩЕНИЯ : ( 142 )

За создание сайта За 50 сообщений За 100 постов

ПОДАРКИ : ( 1 )

( 0 )

Создаем файл hint.js и вставляем в него вот этот код:

Code
//Hint Start
// CLASS : MW_System_Load
// Init
function MW_System_Load(){
this.wib = screen.width;
this.heb = screen.height;
this.documes = (document.getElementById || document.createElement || document.getElementsByTagName) ? true : false;
this.objects = window.addEventListener || window.attachEvent ? window : document.addEventListener ? document : null;
this.types = 'load';
}
MW_System_Load.prototype.addsevent = function(func){
if(this.objects.addEventListener){
this.objects.addEventListener(this.types,func,false);
return true;
} else if (this.objects.attachEvent){
this.objects.attachEvent("on" + this.types,func);
} else {
return false;
}
}
MW_System_Load.prototype.browser = function(){
this.ver = navigator.appVersion;
this.agent = navigator.userAgent.toLowerCase();
this.dom = document.getElementById ? 1:0;
this.all = document.all ? 1:0;
this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom) ? 1:0;
this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom) ? 1:0;
this.ie4 = (document.all && !this.dom) ? 1:0;
this.ie = this.ie4 || this.ie5 || this.ie6;
this.opera = this.agent.indexOf("opera")>-1;
this.gecko = (this.agent.indexOf("gecko")!=-1) ? 1:0;
this.bw = (this.ie || this.opera || this.gecko);
return this;
}
MW_System_Load.prototype.findobj = function(obj){
this.parent = window.document;
if(this.parent[obj]){ return this.parent[obj]; }
if(this.parent.all && this.parent.all[obj]){ return this.parent.all[obj]; }
if(this.parent.layers && this.parent.layers[obj]){ return this.parent.layers[obj]; }
if(this.parent.getElementById && this.parent.getElementById(obj)){ return this.parent.getElementById(obj); }
return null;
}
var MW = new MW_System_Load();
function MW_System_Hint(){}
MW_System_Hint.prototype.show = function(obj,str){
var hint = MW.findobj('hint');
if(!obj){ return; }
if(!MW.documes){ return; }
if(!hint){ return; }
hint.className = 'hint';
hint.style.left = 15;
hint.style.top = 50;

obj.onmouseout = function(advance){
hint.style.width = '';
hint.style.visibility = 'hidden';
if(hint.firstChild) hint.removeChild(hint.firstChild);
hint.appendChild(document.createTextNode(str));
};
obj.onmousemove = function(advance){
//str = str.replace(/</g,"<");
//str = str.replace(/>/g,">");
hint.style.width = '';
hint.innerHTML = str;
vc = document.getElementsByTagName((document.compatMode && document.compatMode=="CSS1Compat") ? "HTML":"BODY")[0];
x = window.event ? event.clientX + vc.scrollLeft : advance.pageX;
y = window.event ? event.clientY + vc.scrollTop : advance.pageY;
vcwidth = vc.clientWidth ? vc.clientWidth + vc.scrollLeft : window.innerWidth + window.pageXOffset;
vcheight = vc.innerHeight ? window.innerHeight + window.pageYOffset : vc.clientHeight + vc.scrollTop;
    if(hint.offsetWidth>500){ hint.style.width = '200'; }
    if((x + hint.offsetWidth + 15) > vcwidth){
     hint.style.left = x - hint.offsetWidth - 4;
    } else {
     hint.style.left = x + 15;
    }
    if((y + hint.offsetHeight + 19) > vcheight){
     hint.style.top = y - hint.offsetHeight;
    } else {
     hint.style.top = y + 25;
    }
    //if(typeof(hint.style.MozOpacity)!="undefined"){
    hint.style.opacity = '.91';
    hint.style.filter = "alpha(opacity:91)";
    //}
    hint.style.visibility = 'visible';
};
}
MW_System_Hint.prototype.initialize = function(){
var hint = document.createElement("DIV");
hint.setAttribute('id','hint');
document.getElementsByTagName('body')[0].appendChild(hint);
hint.style.visibility = 'hidden';
var hintmarker = ['a','img','img','input','span','div','textarea'];
var textmarker = ['title','alt','title','title','title','title','title'];
var lenmarker = hintmarker.length;
for(var i=0; i<lenmarker; i++) {
atr = document.getElementsByTagName(hintmarker[i]);
for(var j=0; j<atr.length; j++)
if(viewhint=atr[j].getAttribute(textmarker[i])){
    atr[j].removeAttribute(textmarker[i]);
    HINT.show(atr[j],viewhint);
}
}
}
var HINT = new MW_System_Hint();
if(MW.objects){ MW.addsevent(HINT.initialize); }
//Hint End

Заливаем его в корень сайта!

Потом:

На любой странице вставляем между </head> и <head>

Code
<script type="text/javascript" src="/hint.js"></script>

В CSS вставляем в любое место:

Code
.hint
{
background-color:#000000;
line-height:10px;
color:FFFFFF;
font-family:verdana;
font-size:11px;
width:auto;
border-top:1px dashed #ffb400;
border-right:1px dashed #ffb400;
border-bottom:1px dashed #ffb400;
border-left:1px dashed #ffb400;
margin:0px;
padding:8px;
position:absolute;
visibility:hidden;
}

 
ФОРУМ » ВСЁ ДЛЯ UCOZ » ДРУГИЕ СКРИПТЫ ДЛЯ СИСТЕМЫ UCOZ » Хинт для сайта!
  • Страница 1 из 1
  • 1
Поиск:



НОВОСТИ В СЛУЧАЙНОМ ПОРЯДКЕ
Medal of Honor не будет «пропагандой»
Церемония прощания с В.Галкиным состоится на Троек...
Command & Conquer 4 без поддержки LAN и выделенных...
В 2010 году игр от EA будет меньше
18-ти кнопочная мышь сообщества OpenOffice
Крылатые хищники» релиз состоялся



ПОЛНАЯ СТАТИСТИКА САЙТА
Последние новости Самые отвечаемые темы Последние статьи Последние сообщения
Церемония прощания с В.Га... 02.03.2010
Трекер torrents.ru закрыл... 28.02.2010
Need for Speed World: Евр... 28.02.2010
StarCraft 2 уже этим лето... 28.02.2010
Названы самые дорогие игр... 28.02.2010
Проект vLineAge2.ru пригл... 0
vLineAge.ru приглашает Ва... 0
Открытие бездонатного сер... 0
Меню от SaVel=) 0
Вид мини-чата 0
Оптические мыши: эволюция... 01.02.2010
Секреты фильтров гугла 01.02.2010
Пульты от телевизоров пол... 01.02.2010
Очередной самый быстрый..... 25.01.2010
Новые Intel Atom 24.01.2010
Тема Дата и Время Автор
Проект vLineAge2.ru ... 11.10.2012 ; 12:40 Azerothy60
vLineAge.ru приглаша... 10.10.2012 ; 14:53 Azerothy60
Открытие бездонатног... 19.04.2011 ; 22:35 TeMHo3oPb75
Меню от SaVel=) 24.02.2010 ; 00:53 АГЕНТ
Вид мини-чата 24.02.2010 ; 00:46 АГЕНТ
Блог переделал под м... 24.02.2010 ; 00:40 АГЕНТ
меню кв 24.02.2010 ; 00:29 АГЕНТ
Блог Counter Strike ... 24.02.2010 ; 00:27 АГЕНТ
Состав клана by Tima 24.02.2010 ; 00:25 АГЕНТ
Скрипт "Спойлер... 09.02.2010 ; 01:51 АГЕНТ
Новые пользователи Активные пользователи Лучшие комментаторы
srazumnoe 05.05.2024
esasoft 02.02.2024
alexeypalivoda 24.09.2023
mschandrei 09.08.2022
kkk 06.07.2022
АГЕНТ 142
OnlineGoGo 7
Azerothy60 2
TeMHo3oPb75 1
Ksellos62 1
АГЕНТ 7
Aibol875 0
Serg 0
Aninew 0
Azerothy60 0

VideoSaver Этот сайт защищен «Site Guard» раскрутка сайта, поисковая оптимизация V1T.RU BIGwebs.ru - ТОП раскрутка сайтов Место свободное
♠۩۞۩♠ Реклама ♠۩۞۩♠
♠۩۞۩♠ Реклама ♠۩۞۩♠
♠۩۞۩♠ Реклама ♠۩۞۩♠
Место свободное Место свободное
Место свободное
Место свободное Место свободное
ПРЕДУПРЕЖДЕНИЕ: ( Все материалы и ссылки размещенные на сайте пренадлежат их владельцам и выложены исключительно в ознакомительных целях. АДМИНИСТРАЦИЯ данного сайта - ответственности за использование и содержания материала - не несёт и убытки не возмещает ) При копированнии материалов, ссылка на сайт - ОБЯЗАТЕЛЬНА!
♠۩۞۩♠ Счётчики ТИЦ и PR ♠۩۞۩♠
Рейтинг@Mail.ru позиция в рейтинге BestPersons.ru PR и ТИЦ сайта Анти-Бан Яндекса для сайта Счётчик тиц Счетчик тИЦ а PR сайта Занесено в каталог Deport.ru PR-CY.ru
Copyright MyCorp © 2024
Сайт управляется системой uCoz