home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 November
/
Chip_2001-11_cd1.bin
/
internet
/
neknihy
/
nkn_files
/
q_button.js
< prev
next >
Wrap
Text File
|
2001-09-05
|
1KB
|
37 lines
function openWindow()
{
gateServer = (document.test) ? 1 : 0;
if (gateServer)
URL = "http://gate.villusion.com/ilikeq/ext/" + serverName + ".xml";
else
URL = "http://www.ilikeq.cz/ilikeq/ext/" + serverName + ".xml";
parentWindow = window.open(URL, "ILIKEQUseqWindow", "status=no,menubar=no,location=yes,resizable=yes,width=490,height=490,scrollbars");
}
imageName = 'useq.gif';
/* dvoustavovy buton
if (cookieName != "") // server uses PHP or ASP library
{
imageName = 'useq_logout.gif';
if (document.cookie.length > 0)
{
offset = document.cookie.indexOf(cookieName + "=");
if (offset != -1) // I've found my cookie
{
offset = document.cookie.indexOf("logoff", offset + cookieName.length + 1);
if (offset == -1) // cookie with SID
imageName = 'useq_login.gif';
}
}
}
else // server doesn't use PHP or ASP library
{
imageName = 'useq.gif';
}
*/
document.write('<a href="javascript:openWindow()"><img src="http://www.ilikeq.cz/images/' + imageName + '" width="88" height="31" border="0" alt="Pou₧φvßme Q"></a>');