Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- msg:
- -----
- "There was an error on this page.
- Error description: An invalid or illegal string was specified.
- Click OK to continue."
- ---------------------------------------------------------------------------
- js code:
- ---------
- try
- {
- //
- onload = function()
- {
- try{
- $( "li" ).eq( 3 ).css( "background-color", "red" );
- jquery1();
- }
- 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
- {
- 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 jquery1()
- {
- try
- {
- $('#slides').slidesjs({
- width: 1000,
- height: 480,
- start: 1,
- play: {
- active: true,
- // [boolean] Generate the play and stop buttons.
- // You cannot use your own buttons. Sorry.
- effect: "fade",
- // [string] Can be either "slide" or "fade".
- interval: 4000,
- // [number] Time spent on each slide in milliseconds.
- auto: true,
- // [boolean] Start playing the slideshow on load.
- swap: true,
- // [boolean] show/hide stop and play buttons
- pauseOnHover: true,
- // [boolean] pause a playing slideshow on hover
- restartDelay: 4000,
- // [number] restart delay on inactive slideshow
- }
- });
- }
- 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
Advertisement