Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6143487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:31:47+00:00 2026-05-23T18:31:47+00:00

I am using a slider called mySlider, or SL_Slider.. It uses the MooTools library…

  • 0

I am using a slider called mySlider, or SL_Slider..

It uses the MooTools library…

If i am on the page with the slider, there is a simple script for the href that calls the appropriate slide..

<a href="javascript:mySlider.numPress(3);">link</a>

I believe this script is supposed to have the ability to also allow for a specific slide to load if the page in question is accessed via a URL link (from another page). There is a function that looks to be looking for a “passedID” variable (pasted below).

My problem is that i can’t seem to figure out how to pass this variable to the script via a URL (or even if that’s possible)…

I’ve tried all sort of combos and no luck…

Here is an example I tried (plus a ton of others): http://www.website.com?passedID=3

Any help would be much appreciated!

(If there is any additional info required, i am happy to paste it.

Thanks.

Mac

slideIt: function(passedID) {

        var self = this;

        //get item to slide out
        var curItem = self.options.items[self.options.itemNum]; 
        if(self.options.numNavActive == true){
            var curNumItem =  self.numNav[self.options.itemNum];
        }

        //check for passedID presence
        if(passedID != null) {
            if(self.options.itemNum != passedID){
                if(self.options.itemNum > passedID) { 
                    self.direction = 0; 
                } else { 
                    self.direction = 1;
                }
                self.options.itemNum = passedID;
            }
        }
        else{
            self.changeIndex(); 
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:31:48+00:00Added an answer on May 23, 2026 at 6:31 pm
    var slide_num_in_url = document.location.hash.split("#").join("");
    mySlider.numPress(slide_num_in_url);
    

    EDIT:

    Call when the page loads.

    window.onload = function()
    {
        var slide_num_in_url = document.location.hash.split("#").join("");
        mySlider.numPress(slide_num_in_url);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

trying to create a simple slider for an input. Using a survey gem that
I using coda slider in my page. View it here: http://www.ndoherty.com/demos/coda-slider/1.1.1/ Each tab causes
I am using a plugin called anything slider and am trying to make the
I am using a script called swipeview to put multiple instances of a gallery
http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding I am using easy slider for banner and I called below script to
I'm using a jQuery plugin called coin-slider. I've followed all of the directions in
I'm using a plugin called bxSlider . It's a nice little image slider plugin
I'm using a great jQuery content plugin called AnythingSlider . The problem is that
I am using a wpf slider to display the time line in a video
I am looking for a fancy Slider control using JQuery/Javascript. The native JQuery slider

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.