Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8500061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:50:20+00:00 2026-06-11T00:50:20+00:00

Please bear with me I am brand new to learning javascript (self taught)! I

  • 0

Please bear with me I am brand new to learning javascript (self taught)! I am usually one to find answers on my own from just web browsing but so far I haven’t found any resources explaining how to accomplish the following:

So, basically all I want to do is change this (HTML):

<a href="link.html"id="speaker"onmouseover="showImage()"onmouseout="goBack()">SPEAKERS</a>

to an image by using javascript.

The image is kept in the same folder as the html and the js.
Here is as far as I know to go with the javascript:

function showImage()
 {   
 picture = new Image(100,100);
picture.src = "icon2.png";
document.getElementById("speakers").innerHTML = picture.src;
  }

function goBack()
 {   
 document.getElementById("speakers").innerHTML="SPEAKERS";
 }

For clarity, all I would like to do is change the text (“SPEAKERS”) to an image using ‘onmouseover’ while using the same hyperlink in the process.

It seems like a very simple problem but I don’t know enough to determine if what I want to do is even possible. If it’s not possible that’s fine, I would just like to know either way ;P. Thanks ahead of time!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:50:22+00:00Added an answer on June 11, 2026 at 12:50 am

    If you’re ok with using jquery, you could use .html() and .hover()

    http://jsfiddle.net/u8fsU/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am brand new to javascript so please bear with me. I am trying
Please bear with me as I am new to dojo, javascript, and web programming
Please bear with me, newbie just learning the ropes. I am getting the below
I am a beginner in Haskell so please bear with me. (Just started learning
I'm javascript newbie...please bear with me. Modified some jQuery animation code from w3c tutorial.
Please bear with me, I'm just learning C++. I'm trying to write my header
Please bear with me, I come from .net and am new to the java
I am new to Javascript so please bear with me. I have a Javascript
please bear with me as I'm just learning C#. Just messing around with C#
Please bear in mind that I'm totally new to Rails when answering this.My question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.