--- class.tslib_menu.old.php 2005-11-12 12:40:29.000000000 +0100 +++ class.tslib_menu.php 2005-12-19 20:45:41.310114023 +0100 @@ -1657,8 +1657,8 @@ if ($imgROInfo) { $theName = $this->imgNamePrefix.$this->I['uid'].$this->I['INPfix'].$pref; $name = ' name="'.$theName.'"'; - $GLOBALS['TSFE']->JSImgCode.= chr(10).$theName.'_n=new Image(); '.$theName.'_n.src = "'.$GLOBALS['TSFE']->absRefPrefix.$imgInfo[3].'"; '; - $GLOBALS['TSFE']->JSImgCode.= chr(10).$theName.'_h=new Image(); '.$theName.'_h.src = "'.$GLOBALS['TSFE']->absRefPrefix.$imgROInfo[3].'"; '; + $GLOBALS['TSFE']->JSImgCode.= chr(10).'var '.$theName.'_n=new Image(); '.$theName.'_n.src = "'.$GLOBALS['TSFE']->absRefPrefix.$imgInfo[3].'"; '; + $GLOBALS['TSFE']->JSImgCode.= chr(10).'var '.$theName.'_h=new Image(); '.$theName.'_h.src = "'.$GLOBALS['TSFE']->absRefPrefix.$imgROInfo[3].'"; '; } } $GLOBALS['TSFE']->imagesOnPage[]=$imgInfo[3]; @@ -2166,8 +2166,8 @@ $this->I['name'] = ' name="'.$this->I["theName"].'"'; $this->I['linkHREF']['onMouseover']=$this->WMfreezePrefix.'over(\''.$this->I['theName'].'\');'; $this->I['linkHREF']['onMouseout']=$this->WMfreezePrefix.'out(\''.$this->I['theName'].'\');'; - $GLOBALS['TSFE']->JSImgCode.= chr(10).$this->I['theName'].'_n=new Image(); '.$this->I['theName'].'_n.src = "'.$GLOBALS['TSFE']->absRefPrefix.$this->I['val']['output_file'].'"; '; - $GLOBALS['TSFE']->JSImgCode.= chr(10).$this->I['theName'].'_h=new Image(); '.$this->I['theName'].'_h.src = "'.$GLOBALS['TSFE']->absRefPrefix.$this->result['RO'][$key]['output_file'].'"; '; + $GLOBALS['TSFE']->JSImgCode.= chr(10).'var '.$this->I['theName'].'_n=new Image(); '.$this->I['theName'].'_n.src = "'.$GLOBALS['TSFE']->absRefPrefix.$this->I['val']['output_file'].'"; '; + $GLOBALS['TSFE']->JSImgCode.= chr(10).'var '.$this->I['theName'].'_h=new Image(); '.$this->I['theName'].'_h.src = "'.$GLOBALS['TSFE']->absRefPrefix.$this->result['RO'][$key]['output_file'].'"; '; $GLOBALS['TSFE']->imagesOnPage[]=$this->result['RO'][$key]['output_file']; $GLOBALS['TSFE']->setJS('mouseOver'); $this->extProc_RO($key);