Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

[SOLVED] How to get directly to an image?

09-25-2009, 12:29 PM
# 1 (permalink)
daccapostudios
dear all, thank you for this great tool and support!

I am trying to build a function (as "next, prev, pause"...) I would call like to add to slide.js that might take me directly to an image without forcing me to scroll the whole array with next,next....

This is what I've added to slide.js ...

Code:

        var offset; // this line at the top

    marco: function(type,offset2) {
             if(this.options.auto == "loop" || this.options.auto == "once") {
               this.pause();
             };
              this.options.type=type;
              this.offset=offset2;
              this.direction="back";
	      this.slider($(this.container));
    	},
but the fact is that I don't know how to make the function do what I need.

Code:

	// Is the child defined?
		if(child && this.direction != "pause") {
//I'd like to ad something here to make it work

I've tried several solutions, for instance defining a new direction "still" and adding
else if(this.direction == "still") child = this.offset;

but it didn't work


So I am asking if anybody went through this (I know it's simple but I'm not really good with JS), and I beg for your help


THANK YOU
Thread Tools
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

Members Login

Username
Password