PHP & Jquery - open a small div over others div when mouse go on a link

fivestalt

New Member
i need to open a div (or somethings other, dunno what) when mouse go on a link. But this div doesnt move other div. It must open OVER the others div (like this website...when there are the "popup/error" div over others div. How can do it? Transparent? Or somethings like it?for example, if i write somethings into title field in a link statement, there is a small windows that show to me what i wrote. somethings like it, but with a div, or somethings other when i can put text, image, ecc.as another example, on facebook when i go on the main wall and i go with mouse on the name of the users, it show me a small windows with more details. the same when i open the chat box :)code :\[code\]<div class="playerDetailsOff"> Name : Marco<br /> Surname : Daghine</div><a class="viewt" href="http://stackoverflow.com/questions/3864221/#" onmouseover="viewPlayerOn('id1?>');return false" onmouseout="viewPlayerOff();return false">link 1</a><a class="viewt" href="http://stackoverflow.com/questions/3864221/#" onmouseover="viewPlayerOn('id2?>');return false" onmouseout="viewPlayerOff();return false">link 2</a> <a class="viewt" href="http://stackoverflow.com/questions/3864221/#" onmouseover="viewPlayerOn('id3?>');return false" onmouseout="viewPlayerOff();return false">link 3</a> <a class="viewt" href="http://stackoverflow.com/questions/3864221/#" onmouseover="viewPlayerOn('id4?>');return false" onmouseout="viewPlayerOff();return false">link 4</a>function viewPlayerOn(val) { $('.playerDetailsOff').removeClass().addClass('playerDetailsOn');}function viewPlayerOff() { $('.playerDetailsOn').removeClass().addClass('playerDetailsOff');} .playerDetailsOn{width:200px; height:100px; position:fixed;}.playerDetailsOff{display:none;}\[/code\]
 
Back
Top