Hello anyone 🙂
Im having problem with MM_swapImage for hover image button.
Im just start making my first index.php with dynamic inclusion like :
http://localhost/abcd/index.php?view=viewHosting1
http://localhost/abcd/index.php?view=viewHosting2
http://localhost/abcd/index.php?view=viewHosting3
so when the user go to http://localhost/abcd/index.php?view=viewHosting1
it loads / include from viewHosting1.php and calling a variable $content_header
$content_header = "
<td height='47' align='left' valign='top' bgcolor='black'>
<table width='656' height='47' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='173' height='47' style='padding: 0 0 0 10px'><span class='style32'>HOSTING PACKAGE</span></td>
<td width='142' valign='bottom'><a href='index.php?view=viewHosting1' onmouseout='MM_swapImgRestore()' onmouseover='MM_swapImage('Image17','','Image/linux_hosting_tn_hv.jpg',1)'><img src='Image/linux_hosting_tn.jpg' name='Image17' width='142' height='47' border='0' id='Image17' /></a></td>
<td width='145' valign='bottom'><a href='index.php?view=viewHosting2' onmouseout='MM_swapImgRestore()' onmouseover='MM_swapImage('Image18','','Image/winusa_tn_hv.jpg',1)'><img src='Image/winusa_tn.jpg' name='Image18' width='144' height='47' border='0' id='Image18' /></a></td>
<td width='196' valign='bottom'><a href='index.php?view=viewHosting3' onmouseout='MM_swapImgRestore()' onmouseover='MM_swapImage('Image19','','Image/winin_tn_hv.jpg',1)'><img src='Image/winin_tn.jpg' name='Image19' width='184' height='47' border='0' id='Image19' /></a></td>
</tr>
</table>
";
Everything is fine except the hover image button.. it seems my MM_swapImage function can't be loaded to my PHP variable.
anyone can help ? 😕