Popup login

cfoinfo
Offline
Last seen: 3 years 11 months ago
Sun, 09/08/2013 - 21:24
#1
Popup login

Don't understand how to reference the popup login forms:

but form id in index.html is

I want to popup other forms and separate login from register form but how do I reference them from the buttons e.g.

OR

OR

ghostdawg
Offline
Last seen: 3 years 11 months ago
Tue, 09/17/2013 - 21:18

This is the code(jquery I believe) that handles the pop up(script.js):

sys_show_popup_login.on("click",function(){
sys_popup_common.fadeIn();
$("body").on("keydown.closePopup",function(e){
var getCode = e.keyCode ? e.keyCode : e.which;
if(getCode == 27) {
sys_popup_common.find(".closePopup").trigger("click");
}
});
return false;
});

This script is referenced by the html files(including index.html) using the following code:

<div class="account-panel">
<a href="#" class="btn btn-red sys_show_popup_login">Register</a>
<a href="#" class="btn btn-black sys_show_popup_login">Login</a>

If you want custom forms, all you have to do is create your own forms in the html and trigger them via mechanism above. I am no coding guru but I think this is what you are looking for....I'm doing the same thing so good luck.

Log in or register to post comments