Jump to content

Clickthrough a code block

Recommended Posts

Hey All,

I want to have an image on my website that changes when you hover over it and you can click which sends you to another page on the website.

I haven't been able to find this anywhere, maybe I'm just not asking the right question?

Here is the code I have so far which works for the hover image change, but I can't figure out how to make it clickable and redirect.

"<img src="Original-Image.pmg" onmouseover="this.src='second-image.png'" onmouseout="this.src='Original-Image.png'">"

Thanks for your help!

 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.