PDA

Click to See Complete Forum and Search --> : Java/DIV help!!!!!


metalguy
Mar 27th, 2002, 05:30 PM
here is what im using:

function JODShow()
{
document.body.insertAdjacentHTML('BeforeEnd','<div style="position:absolute; top:1000px; left:450px"; ID="JOD"><font color = "white" size = "4">hello


<a href="jokes.html" onMouseOver="JODShow()" onMouseOut="JODHide()">


you probably get the idea, ok, now its not working they way i want position wise, when it pops up it is in the wrong place 75% of the time because of screen resolutions and all that, so how can i alter th code to make it appear in a table? when it mouses over, just have it appear in a <td>, thanks in advance

CiberTHuG
Mar 27th, 2002, 09:50 PM
It is so late at night.

I don't know Java, so I can't help you.

But you can do this in JavaScript. But why are you using absolute positioning? And if you want it in a table, why not put it in the table?

Do you have a table on the page? If so, grab the table (getElementById()) and add a last child (check the DOM at W3C). And add a tr with a td in it. Don't use a div.