User Profile

Collapse

Profile Sidebar

Collapse
heapster123
heapster123
Last Activity: Nov 21 '09, 07:49 PM
Joined: Nov 20 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • heapster123
    replied to Trouble with mouseover
    Figured it out!!!

    Oh man I have a lot to learn...

    Thanks for all the help
    See more | Go to post

    Leave a comment:


  • heapster123
    replied to Trouble with mouseover
    It is already hidden:
    <style>
    .hidden{display : none}
    </style>

    that is why I am thinking I need an if statement in the function
    See more | Go to post

    Leave a comment:


  • heapster123
    replied to Trouble with mouseover
    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 LOL
    See more | Go to post

    Leave a comment:


  • heapster123
    replied to Trouble with mouseover
    ah of course....getEl ementsByTagName ()
    what I want the function to do is show the image when the second h2 heading is rolled over.
    See more | Go to post

    Leave a comment:


  • heapster123
    replied to Trouble with mouseover
    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?

    Thanks
    See more | Go to post

    Leave a comment:


  • heapster123
    replied to Trouble with mouseover
    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....LOL
    See more | Go to post

    Leave a comment:


  • heapster123
    started a topic Trouble with mouseover

    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">
    ...
    See more | Go to post
    Last edited by Dormilich; Nov 20 '09, 09:26 PM. Reason: Please use [code] tags when posting code
No activity results to display
Show More
Working...