jquery image slider help

Posted on 2010-03-30
Medium Priority
Last Modified: 2012-05-09
Hi all,

I am trying to use the imageslider from the tutorial i found here;


however on my site i have rearranged it slightly nd have the following structure

imageslider folder ->  style.css
                             ->  images folder -> all images for slider contained here
                             -> scripts.js
js folder -> jquery.js

now when i try to run view the page i get an error in the scripts.js (using firebug) here;

 53 $.each(css_ims,function(){(new Image()).src=_siteRoot+'imageslider/images/'+this;});

(note this was
 53 $.each(css_ims,function(){(new Image()).src=_siteRoot+'images/'+this;});)

however i changed it to the above because of the folder structure change.

Can anyone explain how i can get this working please??

Many thanks in advance,

Question by:flynny

Author Comment

ID: 29081165
oops srry in fact it used to be

$.each(css_ims,function(){(new Image()).src=_siteRoot+css/images/'+this;});

and i have changed it to the following

$.each(css_ims,function(){(new Image()).src=_siteRoot+'css/imageslider/images/'+this;});)

LVL 17

Accepted Solution

Shinesh Premrajan earned 2000 total points
ID: 29082566
Find attached the working model of the application in the zip format.

Hope that helps..
LVL 10

Expert Comment

ID: 29094862
I think you're path is wrong. I didn't see a css-folder in your description, so it should be:

$.each(css_ims,function(){(new Image()).src=_siteRoot+'imageslider/images/'+this;});)

Open in new window


Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question