Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

  1. <PUBLIC:COMPONENT>
  2. <PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="fnHighLight()">
  3. <PUBLIC:ATTACH EVENT="onmouseout" ONEVENT="fnDeHighLight()">
  4. <PUBLIC:ATTACH EVENT="onclick" ONEVENT="fnActivate()">
  5. <PUBLIC:PROPERTY NAME="previous" PRESIST=true>
  6. <SCRIPT LANGUAGE="jScript">
  7. //var PreviousSelectedElement = "0";
  8. function fnHighLight()
  9. {
  10. element.style.textDecoration = "underline"
  11. element.style.color = "#0066ff"
  12. element.style.backgroundColor='#C7D8FA'
  13. }
  14. function fnDeHighLight()
  15. {
  16. element.style.textDecoration = "none"
  17. element.style.color = "#3333ff";
  18. element.style.backgroundColor='#edf2fc'
  19. }
  20. function fnActivate()
  21. {
  22. try
  23. {
  24. var selectedText = new String( event.srcElement.previousSibling.innerHTML )
  25. if( selectedText.indexOf( "offsite.gif" ) != -1 )
  26. event.srcElement.previousSibling.innerHTML = "<img alt='' src='/include/images/1ptrans.gif' border='0' WIDTH='16' HEIGHT='11'>"
  27. else
  28. event.srcElement.previousSibling.innerHTML = "<img alt='' src='/include/images/offsite.gif' border='0' WIDTH='16' HEIGHT='11'>"
  29. }
  30. catch( err )
  31. {
  32. //alert ( err )
  33. //don't do anything if it err's at this point, might want to do something
  34. //later . . .
  35. }
  36. }
  37. </SCRIPT>
  38. </PUBLIC:COMPONENT>