all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Change image upon mouse hover
Date: Tue, 5 Dec 2023 13:24:29 -0800	[thread overview]
Message-ID: <75069cb4-f9bd-4834-bf0d-38a23c331073@gmail.com> (raw)
In-Reply-To: <834jgw6byd.fsf@gnu.org>



On 12/5/23 5:00 AM, Eli Zaretskii wrote:
>> Date: Mon, 4 Dec 2023 21:44:13 -0800
>> From: Yuan Fu <casouri@gmail.com>
>>
>> I have these two images:
>>
>> I want to change the left one to the right one when mouse hovers over
>> it. Is it possible? What's the best way to do it?
> Did you try to use the help-echo text property?  Its value can be a
> function, see "Special Properties" in the ELisp manual.
>
Thanks, this works brilliantly! However, now I realized that there's 
another problem: I need to change the image back to the one with no 
background when cursor leaves the button.


Yuan



  reply	other threads:[~2023-12-05 21:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-05  5:44 Change image upon mouse hover Yuan Fu
2023-12-05 13:00 ` Eli Zaretskii
2023-12-05 21:24   ` Yuan Fu [this message]
2023-12-06  3:26     ` Eli Zaretskii
2023-12-07  1:45       ` Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=75069cb4-f9bd-4834-bf0d-38a23c331073@gmail.com \
    --to=casouri@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.