[Javascript] How to change window status
murugesan
murugesan at hotpop.com
Thu Aug 28 04:42:30 CDT 2003
I tried this,
menu.addMenuItem("<a class='M' href='/index1.php' style='text-decoration: none' target='info' onmouseover='window.status="blah-blah-blah"'>Click here</a>");
But it is not correct.
because the javascript assumes ....' window.status=" as end of parameter and resulted in error
I also tried
var status1="asdasd";
var menuitem1="<a href='/index1.php' "
+"onmouseover='window.status="
+status1
+" ' "
+" > Click here</a>"
menu.addMenuItem(menuitem1);
This time it is just displaying onmouseover in the status bar
Any solutions
-murugesan
----- Original Message -----
From: David Lovering
To: [JavaScript List]
Sent: Thursday, August 28, 2003 11:38 AM
Subject: Re: [Javascript] How to change window status
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. Try something like this --
menu.addMenuItem("<a class='M' href='/index1.php' style='text-decoration: none' target='info' onmouseover='window.status="blah-blah-blah"'>Click here</a>");
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 ('). Mind you, I've violated the suggestion hundreds of times, and no one has zapped my karma yet. However, defining a style (CSS) parameter outside of a style declaration is generally regarded as a no-no even now.
-- Dave Lovering
----- Original Message -----
From: murugesan
To: [JavaScript List]
Sent: Wednesday, August 27, 2003 10:16 PM
Subject: [Javascript] How to change window status
I have a code
menu.addMenuItem("<a class=M href='/index1.php' text-decoration:none target='info' >Click here</a>");
Now I want to change the window status upon mouseover on this link.
How can I achieve this?
i.e I need a valid statement of form
menu.addMenuItem("<a class=M href='/index1.php' text-decoration:none target='info' onmouseover=' window.status="text" '>Click here</a>");
-murugesan
----------------------------------------------------------------------------
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
------------------------------------------------------------------------------
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030828/3e686d17/attachment.htm>
More information about the Javascript
mailing list