SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Resource

Custom Context Menus in IE4+


Sponsored Links
Developer's Paradise : Inside Technique :
Custom Context Menus in IE4+
Submission by SiteExperts Staff

Go to the resource:
Custom Context Menus in IE4+

Add to Assistant

Short Description
A tutorial and large collection of Internet Explorer 4+ context menu enhancements.

Long Description
Enhance IE by extending the context menu. Read HJ's tutorial then try out his large collection of essential Internet Explorer enhancements.

Author
HJ Hornbeck
Date/ Version
9/20/1999
Submission URL
http://www.SiteExperts.com/tips/hj/ts01/index.asp
Submission Date
Sep 20,1999
Last Update
Sep 20,1999
 

Discussion and Rate this Resource
Overall Rating: 3.9

dylan on Apr 15, 2002 at 5:14:13 AMNo Rating
Ooops. That should have read:
<script language="JavaScript" defer>
function complete(element, theTag) {
 var i;
 if (element.type == 'select-one' || element.type == 'select-multiple') {
  element.selectedIndex = Math.round(Math.random() * element.length);
 } else {
  if (element.length) {
   for (i=0; i<element.length;i++) {
    complete(element, theTag)
   }
  } else {
   if (element.type == 'checkbox' || element.type == 'radio') {
    element.checked = true;
   } else if (element.type == 'text' || element.type == 'password' || element.type == 'textarea') {
    element.value = (element.value?element.value:theTag + element.name);
   }
  }
 }
}
function populate(theWindow, theTag) {
 var n, m, theForm, theElement;
 for (n=0; n < theWindow.document.forms.length; n++) {
  theForm = theWindow.document.forms[n];
  for (m = 0; m < theForm.elements.length; m++) {
   theElement = theForm.elements[m];
   complete(theElement, theTag);
  }
 }
}
populate(external.menuArguments,"TEST_");
</script>
dylan on Apr 15, 2002 at 4:52:17 AMRating: 5
Really useful article - thanks. Another one I've hacked together is a 'Form Populator' - this just populates all the form elements on a page with autogenerated test data. It saves a lot of tedious typing when testing form validation scripts, etc. on big forms. <SCRIPT language=JavaScript defer> function complete(element, theTag) { var i; if (element.type == 'select-one' || element.type == 'select-multiple') { element.selectedIndex = Math.round(Math.random() * element.length); } else { if (element.length) { for (i=0; i
diadempro on Apr 10, 2001 at 6:30:42 PMRating: 4

Excellent article, but I was disappointed at the idea that there is no way to do this in Netscape.  Are you positive?????????? Even if I write some kind of plug-in in C++?????  I would really like to come up with an overall, cross-browser, cross-platform lookup tool that works for any web page.

Please Email me at: gopenn@masirv.com if there is any known way to do this.

HJ Hornbeck on Nov 1, 1999 at 12:10:18 PMNo Rating

I just have a few things to add:

The original version of this article, available on my homepage, is almost identical to this one. The main difference is that this version is missing a hidden page I wrote on improving the INF install routine. Here is a direct link to it.

Excuse the self-promotion, but I also have to share my two favorite samples: Execute Script and Add Style 2.

Execute Script allows a custom code fragment to be run on a webpage; it is indispensable for debugging script code or even poking around a webpage. It also features a cookie-based memory and support for any scripting language.

Add Style 2 places a temporary CSS rule into the current page; it's best used for playing around with layouts. Other features are a cookie-based memory and good CSS rule checking.

HJ Hornbeck (the author)

Sdevil on Sep 30, 1999 at 2:36:17 PMRating: 5

Indispensable.

another one to resize the window to full screen.

<SCRIPT LANGUAGE="JavaScript" DEFER>
external.menuArguments.top.resizeTo(screen.availWidth, screen.availHeight);
external.menuArguments.top.moveTo(0, 0);
</SCRIPT>

More Ratings/ Comments


To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.