Forums | Email a Colleague | FAQ

Dr. Website Archives

Dr. Website® Archives 2002

June 20, 2002
    Question:
    Dear Dr. Website:
    Is there an easy, cheap, pluggable way to install a message thread into a webpage? thank you,

    Answer:
    Yes there are many Free or cheap message threads or forums available. Here one that I have found that might be good for you: http://www.freecenter.com/forums.html
    Thanks

    --Dr.Website

    Question:
    Dear Dr. Website:
    I am fairly new to this, but have seen many websites where the right click for viewing source is disabled. Is this easy to do and if so, how please?

    Answer:
    This is done using a bit of JavaScript, which is a scripting language that is used by developers to gain a little more control over the end user's web browser. Here's the code that you'll need to use:

    <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:
    Dear Dr. Website:
    I'm looking for a script that does the following:

    - 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:
    We have such a menu, appropriately called the HierMenus, available from our site, WebReference.com. You can find more info about it here:

    http://www.webreference.com/dhtml/hiermenus/
    Thanks

    --Dr.Website ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ForumsEmail a Colleague · FAQ

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs