JavaScript
Results 1 to 6 of 6

Thread: JavaScript

  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    29

    Talking JavaScript

    Hi People,
    I wrote this a while ago now but I thought I'd post it here and see what you people of it, so just me what ya think of it. Good, bad, complete waste of memory???

  2. #2
    This is a good tutorial on Javascript. I liked reading it.

  3. #3
    Senior Member
    Join Date
    Aug 2001
    Posts
    267
    Cut and past this to 'script_on_off.js'. It allows you to turn scripting on or off. (and it does work) Create a shortcut on Windows desktop.

    oShell= new ActiveXObject( "WScript.Shell")
    var DISABLE= 3, ENABLE= 0; var nRet= oShell.Popup(
    "Do you want Scripting?\n"+ "Yes to Enable, No to "+
    "Disable", 0, "Enable/"+ "Disable IE5 Active "+
    "Scripting", 35);
    if (nRet==2) // 2 is Cancel
    WScript.Application.Quit(); if (nRet==6) // 6 is Yes
    nNewVal= ENABLE;
    if (nRet==7) // 7 is No
    nNewVal= DISABLE; sName=
    "HKCU\\Software\\Microsoft"+ "\\Windows\\CurrentVersion"+
    "\\Internet Settings"+ "\\Zones\\3\\1400"
    oShell.RegWrite( sName, nNewVal,"REG_DWORD" );

  4. #4
    Banned
    Join Date
    Mar 2002
    Posts
    520
    Thanks! Nice tutorial...

  5. #5
    Senior Member
    Join Date
    Nov 2001
    Location
    Ireland
    Posts
    735
    Well done! Class A tutorial.

  6. #6
    Junior Member
    Join Date
    Dec 2001
    Posts
    29
    Well thank you people, Im glad you liked it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •