Answer the question
In order to leave comments, you need to log in
How to change photo on hover?
Good afternoon!
Tell.
There is a photo, displayed as usual in foreach, initially one announcement photo is displayed, you need to hover over the photo so that it changes to a detailed photo, and if there is no cursor, the announcement photo is returned.
Answer the question
In order to leave comments, you need to log in
See the news output component template. You need to display the value of two arrays of a detailed image and an announcement image. Something like:
<img src="<? echo($arItem["DETAIL_PICTURE"]["SRC"])" />
<pre>
<?
print_r($arItem);
?>
</pre>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question