Showing iframe on hover over text

Mercury2010

New Member
I am trying to add an "additional information" style iframe when you hover over a particular area of text. With the help of some javascript and css and two divs in my basic setup. \[code\]<a onmouseover="ShowContent('uniquename3'); return true;" onmouseout="HideContent('uniquename3'); return true;" href="javascript:ShowContent('uniquename3')">Tournament 22:00-23:00</a><div id="uniquename3" style="display:none; position:relative; left:0px; top:10px; border-style: none; background-color: gray; padding: 5px;overflow:none;width:212px;z-index:5;"> <iframe src="http://stackoverflow.com/questions/13774681/Test2.html" width="212px" height="340px" border="0" scrollbar="no" frameborder="0"></iframe></div><div id="other" style="z-index:1;"> Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"</div>\[/code\]The problem i'm having is that my javascript positions the new div with the iframe where my mouse is, and then bumps all of my text around. Really what I need to do is have the iframe show up but not mess with the elements around it. Currently when you would hover over the anchor it will bump all the lorem ipsum down by the length of the div with the iframe in it. I can provide a working example on my website if anyone would like to see exactly what I mean.
 
Back
Top