Home >Web Front-end >HTML Tutorial >Discussion: How many ways are there to link pictures_html/css_WEB-ITnose

Discussion: How many ways are there to link pictures_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:201026browse

The so-called pictures with links here are sentences like this:
85e5e69a2c9d6c8d5bd034b3359b385b5bb5a28186280b15759617cc3a359fd27d01d0a03a49fceb57d12197d8d196cb
Everyone knows the effect here, that is, clicking on the picture can jump to a certain website;

I know there are other Another way has a similar effect, as follows:

<img src="http://www.***.com/a.jpg" usemap="#Map" border="0" width="500" height="500"><map name="Map" id="Map"><area shape="rect" coords="0,0,500,500" href="http://www.***.com"></map>


I don’t know if there are any other ways of expression. The final effect is as long as you can see the picture and click on the picture to jump. Just go to the specified page.


Reply to the discussion (solution)

Try adding an onclick event to img and then try window.location.href jump

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn