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

  • Home
  • SEARCH
  • 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 3496206
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:13:12+00:00 2026-05-18T12:13:12+00:00

The following works in FF, Chrome and Safari: $(‘#delete_img’).click(function(e) { var offset = $(this).offset();

  • 0

The following works in FF, Chrome and Safari:

$('#delete_img').click(function(e) {
            var offset = $(this).offset();
            $(this).parent().parent().fadeTo("slow", 0.30);
            $(this).parents("li").children("img").css({ 'border' : '3px solid #f6f6f7' });
            e.stopPropagation();
});

But doesn’t in IE8 (I am not even testing in 7 and earlier).

How do I achieve this functionality in IE8 ?

Edit: By popular request here is the HTML:

<div id="slider-code">
        <a class="buttons prev" href="#"></a>
        <div class="viewport">
            <ul class="overview">           
                <li><img src="images/red-stripe.jpg" /></li>
                <li><img src="images/red-stripe-bw.jpg" /></li>
                <li><img src="images/red-stripe-red.jpg" /></li>            
                <li><img src="images/red-stripe-dark.jpg" /></li>
                <li><img src="images/red-stripe.jpg" /></li>
                <li><img src="images/red-stripe-red.jpg" /></li>
                <li><img src="images/red-stripe-dark.jpg" /></li>           
            </ul>       
        </div>
        <a class="buttons next" href="#"></a>
    </div>

    <div style="clear:both"></div>

    <div id="edit-image-nav">
        <div id="add_comment"><img src="images/comment-icon.png" /></div>
        <div id="like"><img src="images/paint-icon.png" /></div>
        <div id="delete_img"><img src="images/delete-icon.png" /></div>
    </div>  

Please note that what happens is, when you click on one of the icons in the ‘edit-image-nav’ div (which are overlayed on the images in the UL above onHover), it has different functionality. For the other icons, it works. For the #delete_img however, it does not.

  • 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-18T12:13:13+00:00Added an answer on May 18, 2026 at 12:13 pm

    It doesn’t seems to be an error in your code, but if it really doesn’t work try this:

    
    $('#delete_img').click(function(e) {
                var offset = $(this).offset();
                $(this).parent().parent().parent().children("img").fadeTo("slow", 0.30, function() {
                       $(this).css('opacity', 0.3);
                } );
                $(this).parents("li").children("img").css({ 'border' : '3px solid #f6f6f7' });
                e.stopPropagation();
    });

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

Sidebar

Related Questions

The following code works just fine in IE, FF, Chrome and Safari, but I
the following works in Chrome, Firefox, Opera and Safari, but of course not in
I have the following which works in Firefox, Chrome and Safari. But not in
The following code works great in IE, but not in FF or Safari. I
In Chrome and Safari, the following loads as a blank frame. <html> <head> <title>Iframe
I'm having some problems with my ASP.NET 4 application in Chrome & Safari (works
The following works in Firefox, but breaks in IE7 & 8: $(#my-first-div, #my-second-div).hide(); so
the following js works fine in FF2 but in IE6 the dropdown always selects
The following code works for 90+ % of global security groups, but for one
The following Html works great for me in FireFox or IE7/8 (with or without

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.