Figured it out!!!
Oh man I have a lot to learn...
Thanks for all the help
User Profile
Collapse
-
It is already hidden:
<style>
.hidden{display : none}
</style>
that is why I am thinking I need an if statement in the functionLeave a comment:
-
well, when I put this code in the function:
document.images['monkey.jpg'].style.visibili ty = visible;
the "monkey" is there. I need it to remain hidden until the heading is rolled over
You will be happy to hear I have ordered a beginners book from Amazon LOLLeave a comment:
-
ah of course....getEl ementsByTagName ()
what I want the function to do is show the image when the second h2 heading is rolled over.Leave a comment:
-
I can't change the code...that would be too easy :)..part of the assignment.
I tried this but got nothing:
var heading = document.getEle mentByTagName(' h2').item(1);
Also if I move the if..if else to the function..I get nothing.
Do I need an "if" statement in the function to make the image visible on mouseover?
ThanksLeave a comment:
-
Yes, I know I have to make it visible but HOW..what is the code?? I have searched and I am pulling my hair out!!
and another yes I want to mouse over the text but how do I use it if it has no ID...
don't be a tease....LOLLeave a comment:
-
Trouble with mouseover
I am new to javascript and having a hard time. I have a class assignment that I have been working on for days...what has to happen is when the mouse rolls over the text an image is to appear. The code I have so far is as follows:
...Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
No activity results to display
Show More
Leave a comment: