<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I agree with the other chap -- what we have here is 
a syntax problem with too many quotes of the wrong sort.&nbsp; Escape the inner 
double-quotes (so they don't break the parsing structure for the tag), and you 
should be OK.&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thusly:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>menu.addMenuItem("&lt;a class='M' 
href='/index1.php' style='text-decoration: none' target='info' 
onmouseover='window.status=\"blah-blah-blah\" '&gt;Click 
here&lt;/a&gt;");</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>and we should be good to go.&nbsp; You do need to 
use both sorts of quotes, because consecutive descending child objects must be 
delineated by distinctive separators.&nbsp; [Or so I recall].</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If you want to insert a variable in place of 
"blah-blah-blah", you can try the following:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>var myString = "blah-blah-blah";</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>var newItem = "&lt;a class='M' href='/index.php' 
style='text-decoration: none' target='info' onmouseover='window.status=\" ' + 
myString + ' \" ' &gt; Click here &lt;/a&gt;";</FONT></DIV>
<DIV><FONT face=Arial size=2>menu.addMenuItem( newItem );</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>[ depending on the flavor of JavaScript (1.0, 2.0, 
etc.) you may need to wrap the newItem declaration in an eval, although I didn't 
need to on any of my tests. ]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Just on general principles, I'd probably suggest 
escape(myString) instead of raw myString -- just in case "myString" has any 
funky characters in it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-- Dave Lovering</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=murugesan@hotpop.com href="mailto:murugesan@hotpop.com">murugesan</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 28, 2003 2:42 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] How to change 
  window status</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>
  <DIV><FONT face=Arial size=2>I tried this,</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; menu.addMenuItem("&lt;a 
  class='M' href='/index1.php' style='text-decoration: none' target='info' 
  onmouseover='window.status="blah-blah-blah"'&gt;Click 
  here&lt;/a&gt;");</FONT></DIV>
  <DIV>But it is not correct.</DIV>
  <DIV>because the javascript assumes ....' window.status=" as end of parameter 
  and resulted in error</DIV>
  <DIV>I also tried</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; var status1="asdasd";</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; var menuitem1="&lt;a href='/index1.php' "</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  +"onmouseover='window.status="<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+status1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+" 
  ' "</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; +" 
  &gt; Click here&lt;/a&gt;"</DIV>
  <DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
  menu.addMenuItem(menuitem1);</FONT></DIV>
  <DIV>This time it is just displaying onmouseover in the status bar</DIV>
  <DIV>Any solutions</DIV>
  <DIV>-murugesan</DIV>
  <DIV>&nbsp;</DIV></DIV></FONT></DIV>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=dlovering@gazos.com href="mailto:dlovering@gazos.com">David 
    Lovering</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
    href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 28, 2003 11:38 
    AM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] How to change 
    window status</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=Arial size=2>well, I'm not quite sure what "text" is 
    supposed to represent, but I do recognize what might be construed as a 
    syntax anomaly which would (possibly) invalidate the remainer of the anchor 
    definition.&nbsp; Try something like this --</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>menu.addMenuItem("&lt;a class='M' 
    href='/index1.php' style='text-decoration: none' target='info' 
    onmouseover='window.status="blah-blah-blah"'&gt;Click 
    here&lt;/a&gt;");</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Also, the old precidence rules suggest (but 
    I've never actually found it to be required) that the outer quotes be the 
    double quote ("), and the inner quotes be the single (').&nbsp; Mind you, 
    I've violated the suggestion hundreds of times, and no one has zapped my 
    karma yet.&nbsp; However, defining a style (CSS) parameter outside of a 
    style declaration is generally regarded as a no-no even now.</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>-- Dave Lovering</FONT></DIV>
    <BLOCKQUOTE 
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
      <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
      <DIV 
      style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
      <A title=murugesan@hotpop.com 
      href="mailto:murugesan@hotpop.com">murugesan</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
      href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, August 27, 2003 
      10:16 PM</DIV>
      <DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] How to change 
      window status</DIV>
      <DIV><BR></DIV>
      <DIV><FONT face=Arial size=2>I have a code</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>menu.addMenuItem("&lt;a class=M 
      href='/index1.php' text-decoration:none target='info' &gt;Click 
      here&lt;/a&gt;");</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>Now I want to change the window status upon 
      mouseover on this link.</FONT></DIV>
      <DIV><FONT face=Arial size=2>How can I achieve this?</FONT></DIV>
      <DIV><FONT face=Arial size=2>i.e I need a valid statement of 
      form</FONT></DIV>
      <DIV>
      <DIV><FONT face=Arial size=2>menu.addMenuItem("&lt;a class=M 
      href='/index1.php' text-decoration:none target='info'&nbsp; onmouseover=' 
      window.status="text" '&gt;Click here&lt;/a&gt;");</FONT></DIV></DIV>
      <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>-murugesan</FONT></DIV>
      <P>
      <HR>

      <P></P>_______________________________________________<BR>Javascript 
      mailing 
      list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE>
    <P>
    <HR>

    <P></P>_______________________________________________<BR>Javascript mailing 
    list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Javascript mailing 
  list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE></BODY></HTML>