html+= 'Email/Username:
'; html+= ''; html+= '
'; html+= '
'; html+= 'Password:
'; html+= ''; html+= '
'; html+= '
'; html+= ''; html+= '
'; html+= '
'; html+= 'Lost password or username?'; html+= '
'; html+= '
'; html+= 'Join dealnews!'; html+= '
'; html+= '
'; html+= 'Login with Facebook'; html+= ''; loginForm.panel.setBody(html); loginForm.panel.render(div); Event.addListener(Selector.query(".close", "login-form", true), "click", loginForm.panel.hide, loginForm.panel, true); /** * Add the key listener for handling ESC */ loginForm.kl = new YAHOO.util.KeyListener( document, { keys:27 }, { fn: loginForm.hide, scope: loginForm, correctScope:true }, "keyup" // keyup for Safari ); loginForm.addListeners(); }, fbLogin: function(e) { if(e){ YAHOO.util.Event.preventDefault(e); } if(!loginForm.isInit){ loginForm.init(); } loginForm.hide(); loginForm.fbWindow = window.open( loginForm.prefURL + 'facebook_login.html', "fbWindow", "width=700,height=600,scrollbars=yes" ); }, addListeners: function() { var n = 0; var x = 0; links = Selector.query(".login"); for(n in links){ is_new = true; listeners = Event.getListeners(links[n]); for(x in listeners) { if(listeners[x].fn == loginForm.show){ is_new = false; } } if(is_new){ Event.addListener(links[n], "click", loginForm.show); } } links = Selector.query(".fb-login"); for(n in links){ is_new = true; listeners = Event.getListeners(links[n]); for(x in listeners) { if(listeners[x].fn == loginForm.fbLogin){ is_new = false; } } if(is_new){ Event.addListener(links[n], "click", loginForm.fbLogin); } } } }; // call it on load to get any login links in the page already rendered loginForm.addListeners(); // call it when the dom is ready to get any loaded after the script was included Event.onDOMReady(loginForm.addListeners);
?
- Hotness: New!
- Posted
A 30-day MegaMacs warranty applies.
'); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(''); document.write(''); } document.write(''); document.write(''); }breaking bad breaking bad food network star British Open 2012 bane Aurora Colorado Rajesh Khanna
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.