JavaScript and hyperlinks????


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: JavaScript and hyperlinks????

  1. #1
    Milz Guest

    JavaScript and hyperlinks????


    I have recently been trying "when hovering over a hyperlink bring up a picture
    next to it" but haven't been sucessful. Please can you help. Thanks.

  2. #2
    Paul Clapham Guest

    Re: JavaScript and hyperlinks????

    Here's an example taken from Negrino and Smith's book "Javascript for the
    World Wide Web". (They call it rollover, not hover.)

    <A HREF="next.html" onMouseover="document.arrow.src='images/redArrow.gif'"
    onMouseout="document.arrow.src='images/blueArrow.gif'">
    <IMG SRC="images/blueArrow.gif" width=147 height=82 border=0 name="arrow">
    </A>

    This is supposed to replace the blue arrow image with the red arrow image
    when the mouse moves over it. They also warn that it won't work if you
    forget the NAME attribute of the IMG tag. I know this doesn't exactly
    answer your question but maybe you can take it from here.

    PC2

    Milz <milz240286@hotmail.com> wrote in message
    news:3a92e507$1@news.devx.com...
    >
    > I have recently been trying "when hovering over a hyperlink bring up a

    picture
    > next to it" but haven't been sucessful. Please can you help. Thanks.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center