-
June 4th, 2002, 04:35 AM
#1
Junior Member
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???
-
June 4th, 2002, 08:24 AM
#2
This is a good tutorial on Javascript. I liked reading it.
-
June 4th, 2002, 08:45 AM
#3
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" );
-
June 4th, 2002, 11:10 AM
#4
-
June 4th, 2002, 07:26 PM
#5
Well done! Class A tutorial.
-
June 5th, 2002, 11:22 AM
#6
Junior Member
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
-
Forum Rules
|
|