aus Tobit KB importiert - vom 30.04.2008 - Beitrag bei Tobit
Problem
t//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Tobit.Software
var debug = 0;
function debAlert(msg)
{
}
div.gradient
{
position:absolute; top:70px; left:0px; width:100%; z-index:100; background-image:url(/graphic/gradient.png); background-repeat:repeat-x;
}
var txtUsername = "Username, Site-ID oder Kartennr.";
var CookiesLoaded=false;
var permanentShow=false
var supressHideLogin = false;
var LoginDialogTimer = null;
function LoginDialogFocusForm(element)
{
clearLoginDialogTimer();
supressHideLogin = true;
element.value == txtUsername ? element.value = "" : element.value = element.value;
//element.value == "Kennwort" ? element.value = "" : element.value = element.value;
}
function LoginDialogFocusFormPwd(element, hasFocus)
{
clearLoginDialogTimer();
if (hasFocus)
supressHideLogin = true;
else
supressHideLogin = false;
if (element.value == "" && hasFocus == false)
element.style.backgroundImage = "url(/graphic/TextGraphic/PasswordPinGer.png)";
else
element.style.backgroundImage = "";
}
function LoginDialogBlurFormPwd(element)
{
supressHideLogin = false;
HideLoginDialog();
if (element.value == "")
element.style.backgroundImage = "url(/graphic/TextGraphic/PasswordPinGer.png)";
else
element.style.backgroundImage = "";
}
function LoginDialogBlurForm(element)
{
supressHideLogin = false;
HideLoginDialog();
(element.value == "" && element.name == "LoginID") ? element.value = txtUsername : element.value = element.value;
(element.value == "" && element.name == "LoginPwd") ? element.value = "Kennwort" : element.value = element.value;
}
function LoginDialogAnmelden()
{
LoginDialogSetCookie(document.loginform.RememberPassword);
document.loginform.submit();
}
//Cookies
function LoginDialogReadCookies()
{
if (CookiesLoaded)
return;
CookiesLoaded=true;
if (!document.loginform
!document.loginform.LoginID)
return;
if (navigator.cookieEnabled == true)
{
var userID = getCookieStr ("AccDataClub");
var PassWD = getCookieStr ("PassWDClub");
var pwState = getCookieStr ("storePwdClub") == 1;
if (userID!="")
document.loginform.LoginID.value = userID;
if (PassWD!="")
{
document.loginform.LoginPwd.value = PassWD;
}
LoginDialogFocusFormPwd(document.loginform.LoginPwd, false);
if (pwState)
{
document.getElementById("idRememberPassword").checked = true;
/*
Check("div_RememberPassword", "RememberPassword")
CheckboxHover("div_RememberPassword", true)
CheckboxHover("div_RememberPassword", false)
*/
//url= location.href+""
//if (url.search("logout")==-1)
if (permanentShow)
document.loginform.submit();
}
}
}
function LoginDialogSetCookie(src)
{
clearLoginDialogTimer();
if (document.loginform.RememberPassword.checked)
LoginDialogUpdateCookie();
else
LoginDialogDeleteCookie();
}
function LoginDialogUpdateCookie()
{
if (navigator.cookieEnabled)
{
var userID = document.loginform.LoginID.value;
var PassWD = document.loginform.LoginPwd.value;
var pwState = document.loginform.RememberPassword ? 1 : 0;
setCookie ("AccDataClub", userID, null, null, "/");
setCookie ("PassWDClub", PassWD, null, null, "/");
setCookie ("storePwdClub", "1", null, null, "/");
}
}
function LoginDialogDeleteCookie()
{
if(navigator.cookieEnabled == true)
{
setCookie ("AccDataClub", "", null, null, "/");
setCookie ("PassWDClub", "", null, null, "/");
setCookie ("storePwdClub", "0", null, null, "/");
}
}
function ShowLoginDialog (permanent)
{
if (permanent)
permanentShow=permanent;
if (document.getElementById("MenuPoint10010"))
document.getElementById("MenuPoint10010").className = "mainmenuhover";
LoginDialogReadCookies();
//document.getElementById ("SubMenuPoint10010").style.display = "block";
//document.getElementById ("SubMenuPoint10010").style.left = "1800px";
document.getElementById ("LoginDialogDIV").style.visibility="visible";
document.getElementById ("LoginDialogDIV").style.right="10px";
clearLoginDialogTimer();
}
function HideLoginDialog (ev)
{
if(!ev)
ev = window.event;
/*Wegen den tollen selbst designten Radiobuttons*/
if(ev && ev.srcElement && ev.srcElement.tagName.toLowerCase() == "form")
return;
else if(ev && ev.target && (ev.target.tagName.toLowerCase() == "form"
ev.target.tagName.toLowerCase() == "img"
ev.target.tagName.toLowerCase() == "span"))
return;
if (supressHideLogin)
return;
if (!permanentShow)
{
LoginDialogTimer = window.setTimeout("HideLoginDialogCallback();", 200);
}
}
function HideLoginDialogCallback ()
{
document.getElementById ("LoginDialogDIV").style.visibility="hidden";
if (document.getElementById("MenuPoint10010"))
document.getElementById("MenuPoint10010").className = "";
}
function clearLoginDialogTimer()
{
if (LoginDialogTimer)
window.clearTimeout(LoginDialogTimer);
LoginDialogTimer = null;
}
function setLogintype(t)
{
tn = document.getElementById ("tobitnetlogin");
fb = document.getElementById ("facebooklogin");
/*
if (t=="tobitnet")
{
tn.style.display = "block"
fb.style.display = "none"
}
else
{
tn.style.display = "none"
fb.style.display = "block"
}
*/
}
function anmelden()
{
tn = document.getElementById ("logintype_tobitnet");
if (tn.checked)
{
supressHideLogin=true;
clearLoginDialogTimer();
LoginDialogSetCookie();
document.forms.loginform.submit();
}
else
window.location.href='https://club.tobit.com/login/FacebookConnect.asp'
}
function LoginDialogKeyUp(e)
{
keyCode = e.keyCode? e.keyCode : e.charCode;
if(keyCode == 13)
anmelden();
}
div.LoginDialogMain
{
height:178px !important;
padding-top:20px !important;
}
Tobit.NET login
künftig automatisch anmelden
Facebook login
| Anmelden
Antwort
| ||