Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (not working)
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
- <link rel="stylesheet" href="./**********/style/style.css" />
- <script src="./********/javascript/js2.js"></script>
- <script src="./********/javascript/index.js"></script>
- <script src="./********/javascript/jquery-1.10.2.min.js"></script>
- <script src="./********/javascript/jquery.slides.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- try
- {
- }
- catch (err) {
- error_function(err);
- }
- });
- </script>
- </head>
- <body id='body'>
- <div id='**************'>
- <div id='**************'>
- <div id = '***'></div>
- <div id = '****************'>
- <form method = "get" action="http://www.google.com/search">
- <input type="text" name="q" size="25" maxlength="255" value="" />
- <input type="submit" value="Google Search" />
- <input type="radio" name="sitesearch" value="" />The Web
- <input type="radio" name="sitesearch" value="site" />Only Your Site<br />
- </form>
- </div>
- <div id='******'>
- <div id='********'>
- <div id='***'></div>
- <div id='******'></div>
- </div>
- <ul>
- <li id='****' class='****' onclick="" ></li>
- <li id='****' class='****' onclick="" ></li>
- <li id='****' class='****' onclick="" ></li>
- <li id='****' class='****' onclick="" ></li>
- </ul>
- </div>
- <div id='title_buttom'></div>
- <div id='container'>
- <div id="slides">
- <img src="./********/img/1.jpg" alt="" />
- <img src="./********/img/2.jpg" alt="" />
- <img src="./********/img/3.jpg" alt="" />
- <img src="./********/img/4.jpg" alt="" />
- <img src="./********/img/5.jpg" alt="" />
- </div>
- </div>
- <div id='****'>
- <div id='**'>1</div>
- <div id='**'>2</div>
- <div id='**'>3</div>
- </div>
- <div id='Copyrights'></div>
- </div>
- </div>
- </body>
- js code:
- --------
- try
- {
- //
- onload = function()
- {
- try{
- $( "li" ).eq( 3 ).css( "background-color", "red" );
- }
- catch(err)
- {
- error_function(err);
- }
- }
- var xmlhttp = null;
- function loadXMLDoc(url, number, cfunc)
- {
- if (window.XMLHttpRequest)
- {// code for IE7+, Firefox, Chrome, Opera, Safari
- xmlhttp = new XMLHttpRequest();
- }
- else
- {// code for IE6, IE5
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange=cfunc;
- xmlhttp.open('post' , url + number, true);
- xmlhttp.send();
- }
- function myFunction(str, number)
- {
- try
- {
- //alert(number);
- //var url = new String;
- var url = './********/php/index.php?path=';
- document.getElementById(str).innerHTML = "";
- loadXMLDoc(url, number, function(){
- if (xmlhttp.readyState==4 && xmlhttp.status==200)
- {
- try
- {
- $(location).attr('href', xmlhttp.responseText);
- }
- catch(err)
- {
- error_function(err);
- }
- }
- });
- }
- catch(err)
- {
- error_function(err);
- }
- function error_function(err)
- {
- txt="There was an error on this page.\n\n";
- txt+="Error description: " + err.message + "\n\n";
- txt+="Click OK to continue.\n\n";
- alert(txt);
- }
- }
- catch(err)
- {
- error_function(err);
- }
Advertisement
Add Comment
Please, Sign In to add comment