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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:11:45+00:00 2026-06-12T17:11:45+00:00

I was trying to code my jQuery slider but I can’t get the Javascript

  • 0

I was trying to code my jQuery slider but I can’t get the Javascript working with IE. It works with Firefox and Safari

My CSS styles:

<style type="text/css">
.slider {
    width:656px;
    height:390px;
    overflow:hidden;
    margin:30px auto;
    background-image:url(images/loading.gif);
    background-repeat:no-repeat;
    background-position:center;
}

.slider1 img {
    width:656px;
    height:390px;
    display:none;

}
</style>

Javascript in my header:

<script type="application/javascript">

function Slider(){
   $(".slider #1").show("fade",500);
   $(".slider #1").delay(5500).hide("slide", {direction: 'left'},500);

   var sc=$(".slider img").size();
   var count=2;

   setInterval(function(){
        $(".slider #"+count).show("slide",{direction: 'right'},500);
        $(".slider #"+count).delay(5500).hide("slide", {direction: 'left'},500);
        if(count ==sc){
            count=1;

        }else{
        count= count + 1;
        }
    },6500);
}
</script>

Slider in html:

<body onload="Slider();">
   <div class="slider">
       <img id="1" src="img/slider1.gif" border="0" />
       <img id="2" src="img/slider2.gif" border="0" />
       <img id="3" src="img/slider3.gif" border="0" />
   </div>
</body>

Thanks if someone could help me

  • 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-12T17:11:46+00:00Added an answer on June 12, 2026 at 5:11 pm

    Change you script tag from

    <script type="application/javascript">
    

    to

    <script type="text/javascript">
    

    or

    <script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm trying to get some basic jQuery code with Rails working, but it
Trying to get comfortable with jQuery and I have encountered some sample code that
I am trying to get the code of an event using the event.which jQuery
I am trying to integrate jquery image slider. But I need to slide the
You can view my custom slider here: http://www.awaismuzaffar.com/examples/index.html And below is the JQuery code
Iam trying to code an simple image slider with next and prev buttons. But
I'm trying to get a jQuery slide show working on a web control that
I am trying to get carousel working but it is not. When I click
I have some jquery code which I am trying to translate to YUI. I
I have the following jquery code which doesn't work quite right when trying to

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.