Показать сообщение отдельно
Старый 18.03.2006, 15:21
KidsKilla вне форума Посмотреть профиль Отправить личное сообщение для KidsKilla Посетить домашнюю страницу KidsKilla Найти все сообщения от KidsKilla
  № 2  
Ответить с цитированием
KidsKilla
.grin! wuz here
 
Аватар для KidsKilla

Регистрация: Aug 2004
Адрес: paradise city
Сообщений: 3,981
Отправить сообщение для KidsKilla с помощью ICQ
код с яндекса:
Код:
function init() {
	if (self.parent.frames.length != 0) {
		self.parent.location = document.location;
	} 
	if (document.getElementById) {
		document.onkeydown = register;
		if (document.forms['web'].text) {
 			document.forms['web'].text.onfocus = function () {
                         searchInputIsActive = true; 
                         if (document.forms['web'].text.select && CtrlUp) {document.forms['web'].text.select();}
                     };
			document.forms['web'].text.onblur = function () {searchInputIsActive = false; CtrlUp = false;};
			queryString = document.forms['web'].text.value;
		}
	}
}

function register(e) {
	var code;
	if (!e) var e = window.event;
	if (e.keyCode) code = e.keyCode;
	else if (e.which) code = e.which;


	if ((code == 13) && (e.ctrlKey == true)) document.forms['web'].submit();

	if (!searchInputIsActive) {
		if ((code == 37) && (e.ctrlKey == true)) {
			var destination = document.getElementById('previous_page');
			if (destination) {
				r(destination, 'stred/pid=1/cid=51');
				location.href = destination.href;
			}
		}
		if ((code == 39) && (e.ctrlKey == true)) {
			var destination = document.getElementById('next_page');
			if (destination) {
				r(destination, 'stred/pid=1/cid=50');
				location.href = destination.href;
			}
		}
	}
	if ((code == 38) && (e.ctrlKey == true) && document.forms['web'].text) {
		CtrlUp = true;
		r(location, 'stred/pid=1/cid=52');
		document.forms['web'].text.focus();
	}
}
__________________
Breakcore them all!