Advertisement
loooool

Untitled

Jan 12th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. msg:
  2. -----
  3. "There was an error on this page.
  4.  
  5. Error description: An invalid or illegal string was specified.
  6.  
  7. Click OK to continue."
  8.  
  9. ---------------------------------------------------------------------------
  10.  
  11. js code:
  12. ---------
  13. try
  14. {
  15. //
  16. onload = function()
  17. {
  18. try{
  19. $( "li" ).eq( 3 ).css( "background-color", "red" );
  20. jquery1();
  21. }
  22. catch(err)
  23. {
  24. error_function(err);
  25. }
  26. }
  27.  
  28. var xmlhttp = null;
  29. function loadXMLDoc(url, number, cfunc)
  30. {
  31. if (window.XMLHttpRequest)
  32. {// code for IE7+, Firefox, Chrome, Opera, Safari
  33. xmlhttp = new XMLHttpRequest();
  34. }
  35. else
  36. {// code for IE6, IE5
  37. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  38. }
  39. xmlhttp.onreadystatechange=cfunc;
  40. xmlhttp.open('post' , url + number, true);
  41. xmlhttp.send();
  42. }
  43. function myFunction(str, number)
  44. {
  45. try
  46. {
  47. var url = './*********/php/index.php?path=';
  48. document.getElementById(str).innerHTML = "";
  49. loadXMLDoc(url, number, function(){
  50. if (xmlhttp.readyState==4 && xmlhttp.status==200)
  51. {
  52. try
  53. {
  54. $(location).attr('href', xmlhttp.responseText);
  55. }
  56. catch(err)
  57. {
  58. error_function(err);
  59. }
  60. }
  61. });
  62. }
  63. catch(err)
  64. {
  65. error_function(err);
  66. }
  67. }
  68. function jquery1()
  69. {
  70. try
  71. {
  72. $('#slides').slidesjs({
  73. width: 1000,
  74. height: 480,
  75. start: 1,
  76. play: {
  77. active: true,
  78. // [boolean] Generate the play and stop buttons.
  79. // You cannot use your own buttons. Sorry.
  80. effect: "fade",
  81. // [string] Can be either "slide" or "fade".
  82. interval: 4000,
  83. // [number] Time spent on each slide in milliseconds.
  84. auto: true,
  85. // [boolean] Start playing the slideshow on load.
  86. swap: true,
  87. // [boolean] show/hide stop and play buttons
  88. pauseOnHover: true,
  89. // [boolean] pause a playing slideshow on hover
  90. restartDelay: 4000,
  91. // [number] restart delay on inactive slideshow
  92. }
  93. });
  94. }
  95. catch(err)
  96. {
  97. error_function(err);
  98. }
  99. }
  100. function error_function(err)
  101. {
  102. txt="There was an error on this page.\n\n";
  103. txt+="Error description: " + err.message + "\n\n";
  104. txt+="Click OK to continue.\n\n";
  105. alert(txt);
  106. }
  107. }
  108. catch(err)
  109. {
  110. error_function(err);
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement