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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:00:52+00:00 2026-06-04T18:00:52+00:00

This function does not work..can’t figure out why…no errors…but the image does not shrink

  • 0

This function does not work..can’t figure out why…no errors…but the image does not shrink when I click it.

image_element.addEventListener( "click", function( )
{ 
    this.style.width = ( parseInt( this.style.width ) - 1 ) + 'px';
    this.style.height = ( parseInt( this.style.height ) - 1 ) + 'px';
}, false );
  • 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-04T18:00:53+00:00Added an answer on June 4, 2026 at 6:00 pm

    this, in the context of an eventListener, is the element [that raised the event]. An issue you might have is that this.style.width may not be specified yet…

    Log/alert the value of this.style.width and see what’s in there in the first place.

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

Sidebar

Related Questions

Why does this work: $('.button_30').click(function(){ $(this).closest('.portlet').find('.portlet_content').text(foo); });​ any why does this not work: $('.button_30').click(function(){
I am trying to figure out why my delegate function does not work, any
I doing this way: $.each($('img'), function () { this.unbind('onmouseover'); }); This does not work.
background: url({{ MEDIA_URL }}/bg.jpg); That does not work, because this Django template function only
I'm just started learning scheme and can't quite understand why this function does not
Why does this attempt at creating a list of curried functions not work? def
I'd like your help with understanding why this function does not stop when I
I only want this function to run if .toolbar li does not have the
This code does not function as expected: // $field contains the name of a
I'm getting crazy with this IE 7... ==> hhttp://neu.emergent-innovation.com/ Why does following function not

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.