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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:07:30+00:00 2026-06-08T17:07:30+00:00

I am creating a jquery animation with lots of effects and responsive to some

  • 0

I am creating a jquery animation with lots of effects and responsive to some of users actions but code works fine with firefox and not in ie or chrome here is my code

        (function($) {
            $(document).ready(function() {
                $('#wires').effect("shake", { times:3000,  distance:31  }, 300).css('z-index','-1');
                //$('#wires').css('z-index','-1');
                $('#baccha').css('z-index','99999999999999999999');
                $("#saman1").live('click',function(){
                    alert("s");
                                $('#i1').attr('src','char2.gif');
                                $('#i1').addClass('run');
                                $('#i1').removeClass('stand');
                    });
                $("#bird").live('click',function(){
                                $('#i1').attr('src','char1.gif');
                                $('#i1').addClass('stand');
                                $('#i1').removeClass('run');
                    });
                $('#wires').sparks([ {
                                         number: 10,
                                         speed:  5,
                                         img:    'spark.png'
                                      }]);


                $('#bird')
                    .sprite({
                        fps: 3, 
                        no_of_frames:3,
                        start_at_frame: 1


                    });
                     $('#light')
                    .sprite({
                        fps: 20, 
                        no_of_frames:3,
                        start_at_frame: 1


                    });


            });
        })(jQuery);

    </script>

in IE my wires div is hidden its nowhere I tried blank bg I could not see it and if I put z-index 0 then it will come front of baccha div which hides everything and in chrome my click function is not working I am getting some error resource interupted text/plain thing if you want I will post the error

  • 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-08T17:07:31+00:00Added an answer on June 8, 2026 at 5:07 pm

    Try removing the extra comma from these two sections:

        $('#bird').sprite({
            fps: 3,
            no_of_frames: 3,
            start_at_frame: 1, //remove this comma
        }) //put ; here, good practice
    
        $('#light').sprite({
            fps: 20,
            no_of_frames: 3,
            start_at_frame: 1, //remove this comma
        }) //put ; here, good practice
    

    EDIT1: Missed one section, can you remove the extra comma from this as well and try again?

        $('#wires').effect("shake", {
            times: 3000,
            distance: 31, // remove this comma
        }, 300);
    

    EDIT2: There’s an extra </div> at the end just above the closing body tag. Remove that and try again.

    EDIT3: The problem is with your HTML element stack and CSS. Just to make my point, remove the margin-top: -60px from your floor div styling and the click on saman1 works.

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

Sidebar

Related Questions

I'm creating a jQuery plugin. So far it's working fine, but I'm having doubt
When creating a jQuery UI datepicker on a detached div it works fine in
Im creating this jquery action, but it is laggy at the slideDown, not on
I am currently creating an animation in jQuery using Spritely. How would i go
Using jQuery I'm creating a basic 'tooltip' animation so that the tooltip will appear
I've recently started creating some jQuery plugins and I'm finding it difficult to document
I'm creating a backwards-compatible version of something designed in CSS3. It mostly works, but
I am creating a jquery ajax popup comment form, but am having a problem
I'm creating a jquery animation and weirdly, when I append a new paragraph, it
I'm creating an animated landing page using jQuery. In the animation when the mouse

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.