I'm wondering how I can add the onFocus function to the phpLayersmodule. I tried it by copying all the parts with onMousOver in it and change that in onFocus, but it didn't work. I changed it like this in the file "layersmenu.inc.php":
Code: Select all
if ($this->tree[$cnt]['not_a_leaf']) {
$this->tree[$cnt]['onmouseover'] = ' onmouseover="moveLayerX1(' . "'" . $this->tree[$cnt]['layer_label'] . "', '" . $menu_name . "') ; LMPopUp('" . $this->tree[$cnt]['layer_label'] . "'" . ', false);"';
$this->tree[$cnt]['onfocus'] = ' onfocus="moveLayerX1(' . "'" . $this->tree[$cnt]['layer_label'] . "', '" . $menu_name . "') ; LMPopUp('" . $this->tree[$cnt]['layer_label'] . "'" . ', false);"';