Jump to content

JQuery problem - slider didn't working


linuxfreakphp

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.