I noticed that swf objects overlay and hide fancy login window. This task was solved in lightbox module, so i just copied special function from there and slightly modified fancy_login.js file.
the fuction which hides < object > elements:
// toggleSelectsFlash()
// Hide / unhide select lists and flash objects as they appear above the
// lightbox in some browsers.
toggleSelectsFlash = function (state) {
if (state == 'visible') {
$("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").show();
}
else if (state == 'hide') {
$("select:visible, embed:visible, object:visible").addClass("lightbox_hidden");
$("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").hide();
}
};the code added to function fancyLogin.showLogin() after line 32:
toggleSelectsFlash('hide');
the code added to function fancyLogin.hideLogin() after if statement at line 64:
toggleSelectsFlash('visible');
modified .js attached to this issue.
Needs community review. For me it works perfectly. Hope it will be included to the next release of fancy_login.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | fancy_login.js_.txt | 5.22 KB | tntclaus |
Comments
Comment #1
tntclaus commentedattachement with js code.
Comment #2
tntclaus commentedafaic this code will work only if lighbox is installed =) so it needs work =) special css class should be written and added to fancy_login.css
smth like this:
Comment #3
jaypanI think this should be solvable by adding the param:
wmode=transparent
To your flash. If that doesn't work, let me know, and I'll put together a test environment with some flash on it and see what I can come up with.
Comment #4
jaypanComment #5
jaypanI've tested this a little more, and as I thought, you need to change the wmode for your flash movies. This is not something I can do from within the module.
Comment #6
jaypanComment #7
jaypanActually, I may have spoken too soon. I have some ideas that may help with this.
Comment #8
jaypanIdeally, you should sett he wmode to transparent - this will give the login the best feel when people use it, as the site truly will dim out.
However, as this may not be possible, I have added a new setting to the settings page in version 1.5-RC1. Go to the settings page, expand the 'Display' fieldset, and add a check to the box that says 'Hide Objects' (it's at the bottom). Save this page. Now, when you try to log in, any flash should be hidden while the login box is on the screen, and shown again when the login box is closed.
I hope this helps.