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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:54:51+00:00 2026-06-18T02:54:51+00:00

i made a slider page for my website. after inserting the jquery scripts the

  • 0

i made a slider page for my website. after inserting the jquery scripts the code is working absolutely fine when saved as a ‘.html file’ but when saved as a ‘.php file’ it doesn’t work. i guess there is some jquery/javascript issue.

the ‘prev-slide’ and ‘next-slide’ are linked to javascript file of the slider itself. they’re working fine for a ‘.html file’ but again not for a ‘.php file’

how can i call the javascript/jquery in a php file so they can be included in?

what am i missing here? please help and explain in detail as im new to this. Thanks

<div class="wrap">
<div id="slider1" class="slider">
<ul>
<a href=""><img src="img/images/logos_01.png" alt=""></a>
<a href=""><img src="img/images/logos_02.png" alt=""></a>
<a href=""><img src="img/images/logos_03.png" alt=""></a>
<a href=""><img src="img/images/logos_04.png" alt=""></a>
<a href=""><img src="img/images/logos_05.png" alt=""></a>
<a href=""><img src="img/images/logos_06.png" alt=""></a>
</ul>   
</div>
<div class="controls">

<a href="" class="prev-slide"><img src="img/images/prev.png" alt="" /></a> 
<a href="" class="next-slide"><img src="img/images/next.png" alt="" /></a> 

</div>
</div>

<style type="text/css" src="css/style.css"></style>


<script src="js/lemmon-slider.js"></script> 
<script src="js/libs/jquery.min.js" type="text/javascript"></script>


<script type="text/javascript">

$(window).load(function(){

$( '#slider1' ).lemmonSlider({

'infinite' : true

});
alert('OK');
});

</script>
  • 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-18T02:54:52+00:00Added an answer on June 18, 2026 at 2:54 am

    Not sure if this will fix it, but try loading the jQuery source file

    <script src="js/libs/jquery.min.js" type="text/javascript"></script>
    

    before your slider script:

    <script src="js/lemmon-slider.js"></script>
    

    jQuery should always be loaded first before any other JS file, as it needs to be read before a script that uses jQuery.

    Good luck 🙂

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

Sidebar

Related Questions

I have a slider I made: http://dranz1r.com/index.html When you slide right for example, there
Can a jQuery UI Slider be made to look like this? If so how?
I have a jquery based slider on the page. This slider calls a function
goo.gl/8ib94 Slider at the top of the website is made by SlideDeck2 wordpress plugin.
I've got a text scrollbox made with JQuery. It works fine when on its
The website i'm doing is made of a fullscreen slider, with 4 different panels.
I made a page for a friend based on Wordpress. Made a slider based
I've made an image rotator/slide with jQuery which works fine when it's just images,
I'm working on a one page layout site, where I use jQuery Cycle to
I have a page with a Google map and a slider made by me

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.