loooool

Untitled

Jan 12th, 2014
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (not working)
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <title></title>
  5. <link rel="stylesheet" href="./**********/style/style.css" />
  6. <script src="./********/javascript/js2.js"></script>
  7. <script src="./********/javascript/index.js"></script>
  8. <script src="./********/javascript/jquery-1.10.2.min.js"></script>
  9. <script src="./********/javascript/jquery.slides.min.js"></script>
  10. <script type="text/javascript">
  11. $(document).ready(function(){
  12. try
  13. {
  14.  
  15. }
  16. catch (err) {
  17. error_function(err);
  18. }
  19. });
  20. </script>
  21. </head>
  22. <body id='body'>
  23. <div id='**************'>
  24. <div id='**************'>
  25. <div id = '***'></div>
  26. <div id = '****************'>
  27. <form method = "get" action="http://www.google.com/search">
  28. <input type="text" name="q" size="25" maxlength="255" value="" />
  29. <input type="submit" value="Google Search" />
  30. <input type="radio" name="sitesearch" value="" />The Web
  31. <input type="radio" name="sitesearch" value="site" />Only Your Site<br />
  32. </form>
  33. </div>
  34. <div id='******'>
  35. <div id='********'>
  36. <div id='***'></div>
  37. <div id='******'></div>
  38. </div>
  39. <ul>
  40. <li id='****' class='****' onclick="" ></li>
  41. <li id='****' class='****' onclick="" ></li>
  42. <li id='****' class='****' onclick="" ></li>
  43. <li id='****' class='****' onclick="" ></li>
  44. </ul>
  45. </div>
  46. <div id='title_buttom'></div>
  47. <div id='container'>
  48. <div id="slides">
  49. <img src="./********/img/1.jpg" alt="" />
  50. <img src="./********/img/2.jpg" alt="" />
  51. <img src="./********/img/3.jpg" alt="" />
  52. <img src="./********/img/4.jpg" alt="" />
  53. <img src="./********/img/5.jpg" alt="" />
  54. </div>
  55. </div>
  56. <div id='****'>
  57. <div id='**'>1</div>
  58. <div id='**'>2</div>
  59. <div id='**'>3</div>
  60. </div>
  61. <div id='Copyrights'></div>
  62. </div>
  63. </div>
  64.  
  65. </body>
  66.  
  67.  
  68.  
  69. js code:
  70. --------
  71.  
  72. try
  73. {
  74. //
  75. onload = function()
  76. {
  77. try{
  78. $( "li" ).eq( 3 ).css( "background-color", "red" );
  79. }
  80. catch(err)
  81. {
  82. error_function(err);
  83. }
  84. }
  85.  
  86. var xmlhttp = null;
  87. function loadXMLDoc(url, number, cfunc)
  88. {
  89. if (window.XMLHttpRequest)
  90. {// code for IE7+, Firefox, Chrome, Opera, Safari
  91. xmlhttp = new XMLHttpRequest();
  92. }
  93. else
  94. {// code for IE6, IE5
  95. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  96. }
  97. xmlhttp.onreadystatechange=cfunc;
  98. xmlhttp.open('post' , url + number, true);
  99. xmlhttp.send();
  100. }
  101. function myFunction(str, number)
  102. {
  103. try
  104. {
  105. //alert(number);
  106. //var url = new String;
  107. var url = './********/php/index.php?path=';
  108. document.getElementById(str).innerHTML = "";
  109. loadXMLDoc(url, number, function(){
  110. if (xmlhttp.readyState==4 && xmlhttp.status==200)
  111. {
  112. try
  113. {
  114. $(location).attr('href', xmlhttp.responseText);
  115. }
  116. catch(err)
  117. {
  118. error_function(err);
  119. }
  120. }
  121. });
  122. }
  123. catch(err)
  124. {
  125. error_function(err);
  126. }
  127.  
  128. function error_function(err)
  129. {
  130. txt="There was an error on this page.\n\n";
  131. txt+="Error description: " + err.message + "\n\n";
  132. txt+="Click OK to continue.\n\n";
  133. alert(txt);
  134. }
  135. }
  136.  
  137. catch(err)
  138. {
  139. error_function(err);
  140. }
Advertisement
Add Comment
Please, Sign In to add comment