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 7831897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:55:59+00:00 2026-06-02T11:55:59+00:00

I’d like to use an image slider plugin (Elastislide) as a menu. The problem

  • 0

I’d like to use an image slider plugin (Elastislide) as a menu. The problem is that it uses <a href="#"> as a function and can’t be used as a link. I’ve tried. So, I’m looking for a jQuery solution to use the images/captions or a <li> as a pseudo-link.

The pages are all local, so I don’t need to go to another domain, just another page in the same directory. Here’s an example of the HTML

        <div id="carousel" class="es-carousel-wrapper">

        <div class="es-carousel">

        <ul>

    <li value="another_page.php"><a href="#"><img src="images/small/1.jpg" alt="image01" /></a></li>
    <li value="yet_another.php"><a href="#"><img src="images/small/2.jpg" alt="image02" /></a></li>
    <li value="still_another.php"><a href="#"><img src="images/small/3.jpg" alt="image03" /></a></li>
    <li value="last_one.php"><a href="#"><img src="images/small/4.jpg" alt="image04" /></a></li>

</ul>
</div>
</div>

I added the value getting a clue from another post.

  • 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-06-02T11:56:01+00:00Added an answer on June 2, 2026 at 11:56 am

    If you can add a class to each li, you could easily reference that class and do something like:

    $(".li-class").on("click", function(e) {
        $("#IDofSomeLoadAreaDiv").empty().load($(this).attr("value"));
    });
    

    Tho you might need to change the link in those value’s to represent the whole link and not just a partial

    Also, if you added something like myURL Extension, you could do something like:

    $(".li-class").on("click" function(e) {
        $("#IDofSomeLoadAreaDiv").empty().load($.myURL("index", $(this).attr("value")));
    });
    // and this would eliminate the need to assure correct full link in each li, 
    // as it would call your base site url, add index.php to it and then add 
    // the link in your li.value
    

    It appears I may have misread the question, if you’re not looking to load the view partial into the current page. In other words, if you want to “refresh” the page with the new link, do the following:

    $(".li-class").on("click", function(e) {
        window.location = $(this).attr("value");
    });
    // or with myURL extension if you want
    $(".li-class").on("click" function(e) {
        window.location = $.myURL("index", $(this).attr("value"));
    });
    

    ALSO! If you want to open it in a new window, I also have a simple jQuery Extension for that (see jsFiddle Here, copy the js code between the long commented lines) that can make it as easy as:

    $(".li-class").on("click" function(e) {
        $.winOpen($.myURL("index", $(this).attr("value")), "windowName", { fullscreen: "no", height: "600px", toolbar: 1, width: 600 });
    });
    

    BIG UPDATE: The fiddle helped, helped to know you where using an older jQuery

    With that version of jQuery you don’t have .on, you also where trying to use the myURL plugin without actually adding the plugin.
    I’ve recreated working version of your fiddle HERE

    IF you want to use that plugin, you’ll either need to add it to your header or create a js file for it and link it in your header like any other jquery plugin, if not, you can just create the links directly as shown in previous examples.

    More UPDATE: Found issue where that ver of jQuery won’t support just any attr (aka “value”) from an element. Changed <li value=" to <li href=" and crrected it in the javascript call as well.

    Also, to make that location call without the myURL plugin you could simply replace:

    window.location = $.myURL("index", $(this).attr("value"));
    

    with

    window.location = $(this).attr("value");
    

    But, remember, that means making sure you have the FULL site url on each li’s href attr

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I used javascript for loading a picture on my website depending on which small
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is

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.