home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 July
/
Chip_2004-07_cd1.bin
/
tema
/
aos_off
/
os.js
< prev
next >
Wrap
Text File
|
2004-05-24
|
2KB
|
77 lines
/* Add Mozilla Search */
function addAOSSearch()
{
if ((typeof window.sidebar == "object") &&
(typeof window.sidebar.addSearchEngine == "function")) {
window.sidebar.addSearchEngine("http://operacni-systemy.net/os.src",
"http://operacni-systemy.net/img/base/os.png",
"OperaΦnφ systΘmy",
"OperaΦnφ systΘmy");
} else {
alert("Vß╣ prohlφ╛eΦ tuto funkci nepodporuje. Zkuste Mozillu.");
}
}
/* Enable Mozilla sidebar */
function enableSidebar()
{
if((typeof window.sidebar == "object") &&
(typeof window.sidebar.addPanel == "function")) {
window.sidebar.addPanel("Operacni systemy",
"http://operacni-systemy.net/sidebar.php", "");
}
else {
var rv = window.confirm("Sidebar lze pou╛φt jen v prohlφ╛eΦi Mozilla nebo kompatibilnφch.\nChcete Mozillu?")
if(rv)
document.location.href = "http://www.mozilla.org/"
}
}
/* This functions validates a input in search form */
function search_validate(formular)
{
if(formular.what.value == "") {
alert("Musφ╣ zadat hledan² v²raz!");
formular.what.focus();
return false;
}
else if(formular.what.value.length < 3) {
alert("Hledan² text musφ mφt alespo≥ 3 znaky.");
formular.what.focus();
return false;
}
}
function set(s) {
// var value = s.value;
}
/* zv²razn∞nφ elementu <abbr> */
function styleAbbr()
{
var oldBodyText, newBodyText, reg;
if(isIE) {
oldBodyText = document.body.innerHTML;
reg = /<abbr([^>]*)>([^<]*)<\/abbr>/g;
newBodyText = oldBodyText.replace(reg, '<abbr $1><span class=\"abbr\" $1>$2</span></abbr>');
}
}
window.onload = function()
{
styleAbbr();
}
isIE = (document.all) ? true : false;