Works in IE, but not in Firefox
I'm currently re-doing the customer sites for our studio.
This is a log-in form, it shows up in IE but not in Firefox.
Here's the scripts code:
<script type="text/javascript" language="JavaScript">
<!-- Copyright 2005 Bontrager Connection, LLC
var FrontOfUsername = "http://www.studio-g.no/kunder/";
var BetweenUsernameAndPassword = "-";
var WhatFollowsPassword = "/";
var LowerCaseUsername = "yes";
var LowerCasePassword = "yes";
// No furthercustomization required.
function PasswordAccess(u,p) {
LowerCaseUsername = LowerCaseUsername.toLowerCase();
LowerCasePassword = LowerCasePassword.toLowerCase();
if(LowerCaseUsername.substr(0,1) == 'y') { u = u.toLowerCase(); }
if(LowerCasePassword.substr(0,1) == 'y') { p = p.toLowerCase(); }
location.href = FrontOfUsername + u + BetweenUsernameAndPassword + p + WhatFollowsPassword;
return false;
}
//-->
</script>
<SCRIPT TYPE="text/javascript">
<!--
var F_A,F_B,F_CH,F_CL,F_DB,F_E,F_F,F_L,F_MT,F_MV,F_R,F _SE,F_SU,F_U,F_HR,F_MU,F_MD;
function F_e(){} function F_n(){} function F_onLoaded(){}
//-->
</SCRIPT>
<SCRIPT TYPE="text/javascript">
<!--
document.write("<SCRIPT SRC=\"./assets/validation.js\"><\/SCRIPT>");
document.write("<SCRIPT SRC=\"./assets/script.js\"><\/SCRIPT>");
document.write("<SCRIPT SRC=\"./assets/effects.js\"><\/SCRIPT>");
//-->
</SCRIPT>
<SCRIPT TYPE="text/javascript">
<!--
function F_doLoaded() {
document.main = new F_cMain();
document.objectModel = new Object();
F_OM('Layout','LayoutLYR', 'doc', '', new Array());
F_OM('submit' , '', 'btn', 'Layout',new Array(
'Clicked','Layout','Show','',0),'LAYOUTFORM',0,'su bmit');
F_pageLoaded('Layout');
}
//-->
</SCRIPT>
<STYLE TYPE="text/css" TITLE="NOF_STYLE_SHEET">
<!--
DIV#LayoutLYR { position:absolute; top:0; left:0; z-index: 1; visibility:inherit; }
-->
</STYLE>
In the body:
<SCRIPT LANGUAGE="JavaScript"> onLoad="F_onLoaded();">
Now if I remove this tag, both browsers will of course show the login form.
But as soon as I put it up it dissappears in Firefox.
After browsing the web I found alot of solutions concerning the LayoutLYR css style, but trying everything that I found it still does not work.
Been plundering with this quite a couple of hours, but with no javascript skills and no advanced css skills I can't seem to find the problem.
Anyone have any idea?
Regards,
Kjell
|