| Forums | Email a Colleague | FAQ |
|
Dr. Website® Archives 2002June 20, 2002
Dear Dr. Website: Is there an easy, cheap, pluggable way to install a message thread into a webpage? thank you, Answer: --Dr.Website Question: Answer: <script language="JavaScript"> function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("Please don't steal my stuff!!!"); return false; } return true; } document.onmousedown=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; </script> Place that code within the header of your web page, and you'll be set. Of course you can change the message in the popup by changing the text in the "alert" part of the above script. --Dr.Website
Question: - when the user mouseover some hyperlink text, a menu will appear beside the text, and the user can then click on the menu items to invoke some other script functions. - the menu must disappear by itself when the cursor leaves the hyperlink. Thanks Answer:
http://www.webreference.com/dhtml/hiermenus/
--Dr.Website ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|