4images Modifications / Modifikationen > Mods & Plugins (Releases & Support)

[MOD] Autologin CheckBox state changing

<< < (3/3)

Acidgod:
i have it also on my site and with Netscape it works...

V@no:
You are right, this method doesnt work on FF...
The work around I found so far is add id="auto_login" into the checkbox
and then use "cross-browser ID read" script.
So, the final code is:

--- Code: ---<script language="javascript">
function get_id(id)
{
  if (document.getElementById) return document.getElementById(id);
  if (document.all && !document.getElementById) return document.all[id];
  if (document.layers) return document.layers[id];
}
</script>
<input type="checkbox" name="auto_login" id="auto_login" value="1" checked/>&nbsp;<span class="smalltext" onClick="alcb=get_id('auto_login');if(alcb.checked) alcb.checked=false; else alcb.checked=true;" style="cursor:default;">{lang_auto_login}</span>
--- End code ---
(if you already have get_id() JS function, then you should not use mine.)

BartAfterDark:
Great V@no.

Bart sends v@no a big hug  :mrgreen:

Navigation

[0] Message Index

[*] Previous page

Go to full version