home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2001 #15 / K-CD_2001-15.iso / Bugnosis / DATA1.CAB / Program_Executable_Files / WebBug.dll / HTML / IMAGEURL.HTC < prev    next >
Encoding:
Text File  |  2001-06-18  |  1.1 KB  |  26 lines

  1. <PUBLIC:COMPONENT>
  2. <PUBLIC:ATTACH EVENT="onclick" ONEVENT="imageURLClick()"/>
  3. <SCRIPT>
  4. function imageURLClick()
  5. {
  6.     if (element == event.srcElement) {
  7.         event.returnValue = false;
  8.         options = "toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
  9.         nwin = window.open("","", options);
  10.         ndoc = nwin.document;
  11.         ndoc.writeln('<HTML><HEAD><TITLE>Examining '+element.href+'</TITLE>');
  12.         ndoc.writeln('<STYLE>BODY,P,TD { font: 10pt Verdana, Arial, Helvetica, Sans-serif }\n');
  13.         ndoc.writeln('</STYLE></HEAD>\n');
  14.         ndoc.writeln('<BODY>\n');
  15.         
  16.         ndoc.writeln('You clicked on the image with the URL '+element.href+'.<BR><BR>\n');
  17.         ndoc.writeln('Here\'s what this image looks like surrounded with a red box:<BR>\n');
  18.         ndoc.writeln('<IMG STYLE="border: red double 2px" SRC="'+element.href+'">\n');
  19.         ndoc.writeln('<BR>If you only see what looks a tiny red box above, then the image\n');
  20.         ndoc.writeln('would be very hard to see with the naked eye.\n');
  21.         ndoc.writeln('</BODY></HTML>\n');
  22.     }
  23. }
  24. </SCRIPT>
  25. </PUBLIC:COMPONENT>
  26.