Subject. I'm new to html, css and js. It is required to display the title of the Wikipedia page and a picture from this page when pointing to a link. How can this be done? Offer in general any way, with the help of js, css, it does not matter, the main thing is that it works.

I tried:

.box { display: none; width: 100%; } a:hover + .box, .box:hover { display: block; position: relative; z-index: 100; } 
 This live preview for <a href="http://en.wikipedia.org/">Wikipedia</a> <div class="box"> <iframe src="http://en.wikipedia.org/" width="500px" height="500px"></iframe> </div>remains open on mouseover. 

But it shows the preview of the whole page.

Found it. Can I use this feature on the page? https://en.wikipedia.org/wiki/Wikipedia:Tools/Navigation_popups

  • Same-origin policy will not allow you to do what you have in mind. - Sergey Gornostaev
  • What about some js frameworks, or the above Wikipedia navigation popups? - Yaktens Teed
  • What can't be done on pure js, can't be done on frameworks. And Wikipedia navigation popups work only on Wikipedia itself. - Sergey Gornostaev
  • Ie use the code above - the only way out? - Yaktens Teed
  • And what does it mean, you want to display the title of the Wikipedia page and the image from this page when you hover over the link ? Images on the page can be set. And what's the headline? What is in the title tag? - Stepan Kasyanenko

0