|
-
Mar 27th, 2002, 06:30 PM
#1
Thread Starter
Addicted Member
Java/DIV help!!!!!
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
-
Mar 27th, 2002, 10:50 PM
#2
Frenzied Member
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.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|