troubleshooting Question

make image rollover from text mouseover

Avatar of jblayney
jblayneyFlag for Canada asked on
4 Comments1 Solution43 ViewsLast Modified:

In this page here.

I have 6 callouts below the banner.

One of them is custom wordpress themes and plugins, it has a link below "Learn More"

I put a mouseover on the arrow, that works fine, but I would link the entire link Div to cause it to mouseover as well, So any part of the orange section will cause the Learn More text to change, I want that to include the little arrow icon as well. Can we also make it so it only changes the arrow in the same link as the text

This is my code attempt so far

echo '<a class="myButtonLinkRead" href="'; the_field('page_link');
	 echo '"  onMouseOver="document.arrow_link=\'/wp-content/themes/darkStarMediaTheme/images/small-arrow-link-over.png\'" onMouseOut="document.arrow_link=\'/wp-content/themes/darkStarMediaTheme/images/small-arrow-link.png\'" >'; 
	echo '<img src="/wp-content/themes/darkStarMediaTheme/images/small-arrow-link.png" onMouseOver="this.src=\'/wp-content/themes/darkStarMediaTheme/images/small-arrow-link-over.png\'" onMouseOut="this.src=\'/wp-content/themes/darkStarMediaTheme/images/small-arrow-link.png\'" class="arrow_link">';
	echo '</a> ';
	echo '</a>';

Open in new window

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros