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 / SCRIPT.JS < prev   
Encoding:
Text File  |  2001-06-18  |  1.4 KB  |  45 lines

  1. function ShowHideDetails()
  2. {
  3.     if(details.style.display!="") 
  4.     {
  5.         details.style.display="";
  6.         ShowHide.innerHTML="<a href=\"javascript:ShowHideDetails()\">Hide Details</a>";
  7.     }
  8.     else
  9.     {
  10.         details.style.display="none";
  11.         ShowHide.innerHTML="<a href=\"javascript:ShowHideDetails()\">Show Details</a>";
  12.     }
  13. }
  14.  
  15. function ManualContactCursorIn ()
  16. {
  17.     event.srcElement.style.cursor='hand';
  18.     status='Compose e-mail to ' + event.srcElement.email;
  19. }
  20.  
  21. function ManualContactCursorOut() 
  22. {
  23.     status = '';
  24. }
  25.  
  26.  
  27. function ManualImageURLClick()
  28. {
  29.     event.returnValue = false;
  30.     options = "toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
  31.     nwin = window.open("","", options);
  32.     ndoc = nwin.document;
  33.     ndoc.writeln('<HTML><HEAD><TITLE>Examining '+event.srcElement.href+'</TITLE>');
  34.     ndoc.writeln('<STYLE>BODY,P,TD { font: 10pt Verdana, Arial, Helvetica, Sans-serif }\n');
  35.     ndoc.writeln('</STYLE></HEAD>\n');
  36.     ndoc.writeln('<BODY>\n');
  37.     
  38.     ndoc.writeln('You clicked on the image with the URL '+event.srcElement.href+'.<BR><BR>\n');
  39.     ndoc.writeln('Here\'s what this image looks like surrounded with a red box:<BR>\n');
  40.     ndoc.writeln('<IMG STYLE="border: red double 2px" SRC="'+event.srcElement.href+'">\n');
  41.     ndoc.writeln('<BR>If you only see what looks a tiny red box above, then the image\n');
  42.     ndoc.writeln('would be very hard to see with the naked eye.\n');
  43.     ndoc.writeln('</BODY></HTML>\n');
  44. }
  45.