l'ho appena testato...e se ho capito bene il codice delle script va messo così:
----------------------------------------------------------------------------
<script>
function presskey(e) {
if(window.event) // IE
asciikey = e.keyCode;
else if(e.which) // altri browser
asciikey = e.which;
var element=document.getElementById("form-login");
if (asciikey==106) {
if (element.style.display == 'none')
element.style.display="block";
else
element.style.display="none";
}
}
</script>
<?php
/**
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
ecc....
----------------------------------------------------------------------------
l'ho provato e funziona...premo il tasto j e si vede il form...
ok ma se uno mi fa nella pagina CTRL+U mi vede il codice e no penso ci metta molto a capire che
if (asciikey==106)sia la J
se poi ne vogliamo parlare per una questione estetica..ok...
cmq grazie della news...se magari ci facessi sapere come nascondere lo script...penso sia + utile...
saluti