linuxfreakphp Posted January 12, 2014 Share Posted January 12, 2014 at this links i have a code that need to run a slider base JQuery. http://pastebin.com/CrhCDTzv i know that is not should be in the onload function, but i wanted to see the output. i also tied it as it working in the sample, but when the slider code Integrated with regular code it not working or giving an error: (included in link 1) "There was an error on this page. Error description: An invalid or illegal string was specified. Click OK to continue." now this is the sample that working: full code - http://pastebin.com/8SsgcqzS (no css only html and js) $(function() { $('#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 } }); }); i tried to run also with $(function() { }); once html page and once in the js file (index.js once) or <script type="text/javascript"> $(document).ready(function(){ try { jquery1(); } catch (err) { error_function(err); } }); </script> in the html page the error is always showed in the chrome and the firefox can run it without any problem. i know i have missed something but i find what yet. what is the problem. Quote Link to comment https://forums.phpfreaks.com/topic/285307-jquery-problem-slider-didnt-working/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.