J
John
Hi,
I am getting syntax errors in my JavaScript code, code snippet as follows
(between my <script></script> tags:
document.write(<a title="Nice to meet you" href="http://www.mydomain.com/"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage(\'welcome\',\'\',\'../images/topnav/welcome_b_mydo
main-com.gif\',\'meet_the_team\',\'\',' + g_meet_the_team +
',\'rave_reviews\',\'\',' + g_rave_reviews +
',\'slide_show\',\'\',\'../images/topnav/slide_tour_a_mydomain-com.gif\',\'w
ho_we_are\',\'\',' +
',\'welcome_footer\',\'\',\'../images/topnav/welcome_sub_5_mydomain-com.gif\
',1)">');
document.write(<img src="../images/topnav/welcome_a_mydomain-com.gif"
width="97" height="24" alt="Nice to meet you" border="0"
name="welcome"></a></td>');
I *think* it's because I have function calls (e.g. MM_swapImgRestore())
within the document.write statement. These calls pertain to my rollover
functions which are declared prior. Is there a way to do this?
Thanks,
Don
I am getting syntax errors in my JavaScript code, code snippet as follows
(between my <script></script> tags:
document.write(<a title="Nice to meet you" href="http://www.mydomain.com/"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage(\'welcome\',\'\',\'../images/topnav/welcome_b_mydo
main-com.gif\',\'meet_the_team\',\'\',' + g_meet_the_team +
',\'rave_reviews\',\'\',' + g_rave_reviews +
',\'slide_show\',\'\',\'../images/topnav/slide_tour_a_mydomain-com.gif\',\'w
ho_we_are\',\'\',' +
',\'welcome_footer\',\'\',\'../images/topnav/welcome_sub_5_mydomain-com.gif\
',1)">');
document.write(<img src="../images/topnav/welcome_a_mydomain-com.gif"
width="97" height="24" alt="Nice to meet you" border="0"
name="welcome"></a></td>');
I *think* it's because I have function calls (e.g. MM_swapImgRestore())
within the document.write statement. These calls pertain to my rollover
functions which are declared prior. Is there a way to do this?
Thanks,
Don