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

  • SEARCH
  • Home
  • 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 7632171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:33:13+00:00 2026-05-31T06:33:13+00:00

This is my first post as a stackoverflow member. Hi, my question is how

  • 0

This is my first post as a stackoverflow member.

Hi,
my question is how do I make many images that change when you pass your mouse over them?
I have a website for a small application that I have made and I have a page with download images for every version, and those images are the target.
I had tried two ways to make them rollover, and each way works fine until I put the images in the same page. Then they don’t work.

1st way

<a href='Destination URL' target="_top" onmouseover="document.sub_but.src='onrollimage'"onmouseout="document.sub_but.src='image'"><img src="image" width="281" height="55" name="sub_but"></a>

2nd way

<a href="Destination URL"  onmouseover= "if (document.images) document.bn_off.src= 'onrollimage';" onmouseout= "if (document.images) document.bn_off.src= 'image';"><img src="image" name="bn_off"></a>

if I use the same method twice it doesn’t work, but if I put the first image the one way and the second image the other way it works fine. I could leave it like this but in the feature I want to put more.
Please show me a way that I can put many image rollovers on the same page.

Check the specific page at http://www.torrentcleaner.tk/download.html
Also if you want check this http://www.torrentcleaner.tk/dimg/

  • 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-05-31T06:33:14+00:00Added an answer on May 31, 2026 at 6:33 am

    The direct answer is to change the code to

    onmouseover= "this.children[0].src= 'onrollimage';"
    

    and

    onmouseout= "this.children[0].src= 'image';"
    

    The correct way would be to use CSS ..

    a.downloadButton{
        display:inline-block;
        height:55px;
        width:281px;
        background:url('path/to/image') top left no-repeat;
    
        text-indent:-9999px;
        overflow:hidden;
    }
    
    a.downloadButton:hover{
        background-image:url('path/to/onrollimage');
    }
    

    and change your links to

    <a href="Destination URL" class="downloadButton">download</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first post on stackoverflow, I hope one of many! My question
First of all... Sorry for this post. I know that there are many many
this is my first post on stackoverflow. I hope my question is not to
This is my first post here on Stackoverflow, though over the years I've been
this is my first post here on stackoverflow and am very impressed by the
This is my first post to stackoverflow, so bear with me. :) I am
Frequent visitor but first post here on StackOverflow, I'm hoping that you guys might
This is my first post on stackoverflow, so feel free let me know if
This is my first post on stackoverflow, hello everyone! My first venture into jQuery
This is my very first post on StackOverflow. Basically, my app starts by checking

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.