Guest User

javascript.txt

a guest
Dec 23rd, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. <html>
  2. <head>
  3. <LINK REL="stylesheet" TYPE="text/css" HREF="lrnviewer/contentviewer/coolmint.css" />
  4. <title>Curso Introducción a .NET con C#</title>
  5. </head>
  6. <script language="javascript" src="lrnviewer/contentviewer/cvobjs.js"></script>
  7. <STYLE>
  8. .LMSUserData {behavior:url(#default#userData);}
  9. </STYLE>
  10. <!-- Default client side user data -->
  11. <INPUT TYPE="HIDDEN" CLASS="LMSUserData" ID="g_oDefaultUserData">
  12. <script language="javascript" src="lrnviewer/contentviewer/personalization/LMSAPI.js"></script>
  13. <script language="javascript">
  14. document.onreadystatechange = evt_ReadyStateChange;
  15.  
  16. window.API = null;
  17. var urlLearnLRN = "imsmanifest.xml";
  18.  
  19.  
  20. function evt_ReadyStateChange()
  21. {
  22. if (document.readyState != 'complete')
  23. return;
  24.  
  25. try
  26. {
  27. var strIdentifier = window.location.href.split(":").join("&").split("/").join("&");
  28.  
  29. window.API = new LMSAPI( strIdentifier,
  30. false);
  31.  
  32. if(null != window.API)
  33. {
  34. window.API.LRNInitialize("", urlLearnLRN, "./lrnviewer/contentviewer/cpitem.xsl");
  35. window.API.LRNListenForEvents(mf_EventHandler);
  36. }
  37. }
  38. catch(e)
  39. {
  40. }
  41. }
  42.  
  43. window.onbeforeunload = onunload;
  44.  
  45. function onunload()
  46. {
  47. if(null != window.API)
  48. {
  49. window.API.LRNUnListenForEvents(mf_EventHandler);
  50. }
  51. }
  52.  
  53. function mf_EventHandler(obj)
  54. {
  55. switch(obj.type)
  56. {
  57. case 3:
  58. {
  59. var strCustomView = "";
  60. strCustomView = window.API.LRNGetCustomView();
  61. if("" != strCustomView)
  62. frameLearnTask.location.href = strCustomView;
  63. else
  64. frameLearnTask.location.href = "lrnviewer/contentviewer/default/mltui.htm";
  65. break;
  66. }
  67. }
  68. }
  69.  
  70. </script>
  71. <SCRIPT FOR="window" EVENT="onunload">
  72. if(null != window.API)
  73. {
  74. window.API.LRNTerminate();
  75. }
  76. </SCRIPT>
  77. <frameset rows="83,*" marginwidth="0" marginheight="0" noResize="true" scrolling="no" framespacing="0" frameborder="0">
  78. <frame name="topframe" src="lrnviewer/contentviewer/title.htm" id="banner" marginwidth="0" marginheight="0" noResize="true" scrolling="no" target="_self" />
  79. <frame class="ShellFrame" style="border:none" id="task" name="frameLearnTask" src="" scrolling="no" marginwidth="0" marginheight="0" />
  80. </frameset>
  81. </OBJECT>
  82. </html>
Advertisement
Add Comment
Please, Sign In to add comment