Re: Adding a hyperlink to image and then making the color change on mouseover

Anonymous
Not applicable

Adding a hyperlink to image and then making the color change on mouseover

Hi,

Has anyone had any experience in changing the color of an image where a hyperlink has been added to that image?

Below is exactly what I have done so far step-by-step:-

Step 1

Inserted the image

Step 2

Clicked on the image and selected hyperlink to add link URL

Step 3

In the insert/edit hyperlink window, selected the tab events

Step 4

Entered the html color code #FFD700 to the section onmouseover

However, step 4 does not happen, please help!

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: Adding a hyperlink to image and then making the color change on mouseover

Is this In an email?

You can't use JS events in email.  At all.

You can use CSS hover effects (which you should use instead of JS events on HTML pages as well) but with limited support.

Anonymous
Not applicable

Re: Adding a hyperlink to image and then making the color change on mouseover

Yes it is in an email.

Is there a code I can enter to use the CSS hover effects?

SanfordWhiteman
Level 10 - Community Moderator

Re: Adding a hyperlink to image and then making the color change on mouseover

Don't believe Marketo even supports the <STYLE> tags for this, though other ESPs do. Maybe someone else has a trick to force them into a Mkto template.

But email client support is spotty enough (did you follow my link above?) that you'd only be enhancing the email for a fraction of your clients.  You have to make the email fully usable and approvable without such enhancements, so you should worry about making an attractive, predictable, responsive layout rather than adding effects.

Anonymous
Not applicable

Re: Adding a hyperlink to image and then making the color change on mouseover

Got it! Thanks a tonne!

I'll focus on keeping it simple for now and perhaps add the .gif image instead of CSS.