ZUM004.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // msg popup
  2. function openInstantMsgPopup() {
  3. var status = getViewerObject("sysMessage");//message Object
  4. if (status != null && status.window.javascript.fOpenMsgPopup != undefined) {
  5. status.window.javascript.fOpenMsgPopup();
  6. }
  7. //status.window.javascript.modal("SPZMI00101", "", "1022", "81", "SPZMI00101", "", "");
  8. }
  9. function setMsgIconVisibility(flag) {
  10. var x = MM_findObj("instant_msg");
  11. if (flag == true || flag == "true") {
  12. x.style.visibility="visible";
  13. } else {
  14. iconHidden.style.visibility="hidden";
  15. x.style.visibility="hidden";
  16. }
  17. }
  18. function changeMsgIcon(msg) {
  19. var x = MM_findObj("instant_msg");
  20. if (msg == "U") {
  21. x.src="../images/msg_notify.gif";
  22. } else if (msg == "1") {
  23. x.src="../images/msg_alert.gif";
  24. } else if (msg == "2" || msg == "3") {
  25. x.src="../images/msg_notify.gif";
  26. } else if (msg == "N") {
  27. x.src="../images/msg_disconnected.gif";
  28. } else if (msg == "E") {
  29. x.src="../images/msg_connected.gif";
  30. } else if (msg == "O") {
  31. if(x.src!="../images/msg_disconnected.gif"){
  32. x.src="../images/msg_connected.gif";
  33. }
  34. }
  35. }
  36. function openPhoneInfoPopup() {
  37. var status = getViewerObject("sysMessage");//message Object
  38. if (status != null && status.window.javascript.fOpenPhoneInfoPopup != undefined) {
  39. status.window.javascript.fOpenPhoneInfoPopup();
  40. }
  41. }
  42. function openDeptInfoPopup() {
  43. var status = getViewerObject("sysMessage");//message Object
  44. if (status != null && status.window.javascript.fOpenDeptInfoPopup != undefined) {
  45. status.window.javascript.fOpenDeptInfoPopup();
  46. }
  47. }