Jump to content
  • 0

Вывод div с другой страницы


Иван98
 Share

Question

Здравствуйте! Помогите пожалуйста разобраться. 

Необходимо чтобы при наведении курсора на ссылку появлялся DIV находящийся на другой странице, что я попытался сделать при помощи следующего скрипта:

onmouseover="document.getElementById('opis').style.display='block'" onmouseout="document.getElementById('opis').style.display='none'"

При помещении кода на одну страницу всё работает. http://codepen.io/anon/pen/reNZMb

Но при размещении div на другой странице он не выводится.

 

index.html:

<!DOCTYPE html><body><object data="link0.svg" type="image/svg+xml" width="190" height="190" style="position: absolute; opacity: 1; z-index: 110!important; ; top: 355px; left: 518px;" ></object><div id="opis" style="display:none">Poiskovaiy systema.</div></body></html>

 link0.svg:

<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN""http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svgxmlns="http://www.w3.org/2000/svg" version="1.1"xmlns:xlink="http://www.w3.org/1999/xlink" width="190" height="190" viewBox="-59 -67 190 190">	<defs><path id="link0" d="M10,30 L65,30"stroke="grey" fill="none" /></defs><a xlink:href="http://ya.ru"  xlink:show="new" onmouseover="document.getElementById('opis').style.display='block'" onmouseout="document.getElementById('opis').style.display='none'"><text font-size="17" font-family="arial" fill=" #0000FF"><textPath xlink:href="#link0" startOffset="0%">ya.ru</textPath></text></a></svg>
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy