WordPress.org

Ready to get started?Download WordPress

Forums

How to change image on page when mouse over text? Ive tried with java but no joy (1 post)

  1. brian@ultimate.do
    Member
    Posted 2 years ago #

    Hi,

    I have a list of lines of text and whenever the mouse hovers over one of the lines I need it to change a separate image. Then when you move the mouse off, the image needs returns to it's original state.

    I've been trying to use the below javascript which works ok outside wordpress but doesn't work once I copy it in to my wordpress page.

    Any help much appreciated

    <script language="JAVASCRIPT">
    if (document.images) {
    image1 = new Image
    image2 = new Image

    image1.src = "http://myzonesync.com/wp-content/uploads/2012/08/00.jpg"
    image2.src = "http://myzonesync.com/wp-content/uploads/2012/08/01.png"

    }
    </script>
    <font color="#c51585" face="verdana" size="2"><b>Test Link - Put Your Mouse Here</b></font>
    </p><p>
    <img src="http://myzonesync.com/wp-content/uploads/2012/08/02.png" name="imagename" border="0">

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by brian@ultimate.do
  • This topic is not resolved
  • WordPress version: 3.4.1