Go to the source code of this file.
Functions | |
user_keepRolloverAtOnClick ($I, $conf) | |
Example can be found in the testsite package at the page-path "/Intro/TypoScript examples/Menu object examples/Loading multiple.../". |
|
Example can be found in the testsite package at the page-path "/Intro/TypoScript examples/Menu object examples/Loading multiple.../".
Definition at line 52 of file example_keepRollover.php. References debug(). 00052 { 00053 $itemRow = $conf['parentObj']->menuArr[$I['key']]; 00054 00055 // Setting the document status content to the value of the page title on mouse over 00056 if (!$I['linkHREF']['TARGET']) { 00057 $I['linkHREF']['HREF']='#'; 00058 $I['linkHREF']['onClick'].='ARO_setLocation'.($conf['setLocation']).'('.$itemRow['uid'].',\''.$I['theName'].'\'); return false;'; 00059 } else { 00060 $I['linkHREF']['onClick'].='ARO_setActiveImg'.'(\''.$I['theName'].'\');'; 00061 } 00062 if ($I['linkHREF']['onMouseover']) $I['linkHREF']['onMouseover']='ARO_'.$I['linkHREF']['onMouseover']; 00063 if ($I['linkHREF']['onMouseout']) $I['linkHREF']['onMouseout']='ARO_'.$I['linkHREF']['onMouseout']; 00064 00065 if ($conf['parentObj']->isActive($itemRow['uid'])) { 00066 $conf['parentObj']->WMextraScript.=' 00067 <script type="text/javascript"> 00068 /*<![CDATA[*/ 00069 ARO_Image = "'.$I['theName'].'"; 00070 '.$I['linkHREF']['onMouseover'].' 00071 /*]]>*/ 00072 </script> 00073 '; 00074 } 00075 00076 // Update the link in the parent object: 00077 $conf['parentObj']->I = $I; // setting internal $I - needed by setATagParts() function! 00078 $conf['parentObj']->setATagParts(); // Setting the A1 and A2 of the internal $I 00079 $I = $conf['parentObj']->I; // retrieving internal $I 00080 $I['parts']['ATag_begin']=$I['A1']; // Setting the ATag_begin to the value of this $I 00081 00082 // Debug: 00083 if ($conf['debug']) { 00084 // Outputting for debug example: 00085 echo 'ITEM: <h2>'.htmlspecialchars($itemRow['uid'].': '.$itemRow['title']).'</h2>'; 00086 t3lib_div::debug($itemRow); 00087 t3lib_div::debug($I); 00088 echo '<hr />'; 00089 } 00090 00091 // Returns $I: 00092 return $I; 00093 }
|