Hover over image to get print dialog?

I have an ad placement system that randomly selects the displayed image. The user can click on it to go to the corresponding website, and he has a border that appears when it freezes.

However, when customers put up an ad, I want it to display an option (possibly in the corner of the image) (ads are coupons that can be used in brick and mortar establishments).

Or perhaps if usability dictates, I need a link right below the ad to start a print dialogue. A.

How should I do it?

+3
source share
3 answers

mouseover, , , click, , , window.open(...), , , window.print() .

, , , -.

+1

js: absolute , onmouseover= opacity

0

iFrame, javascript iFrame, ( ) , iFrame .

0

Source: https://habr.com/ru/post/1784639/


All Articles