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 8950889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:32:25+00:00 2026-06-15T13:32:25+00:00

I have a banner made out of JavaScript wherein when you hover a particular

  • 0

I have a banner made out of JavaScript wherein when you hover a particular text the image in the banner changes.

I was wondering how to make it compatible in ie8..

I used this tutorial to come up with the js:

http://www.javascriptkit.com/script/script2/rolldifferent.shtml

I’m also trying to mouse out too then the image will change.

Here are the js codes:

<script type="text/javascript">function changeimage(towhat,url){if (document.images){document.images.targetimage.src=towhat.src gotolink=url}}functionwarp({window.location=gotolink}</script>

<script>var myimages=new Array()var gotolink="#"function preloadimages(){for (i=0;i<preloadimages.arguments.length;i++){myimages[i]=newImage()myimages[i].src=preloadimages.arguments[i]}}preloadimages("map_wm_hover.gif", "map_wm_hover2.gif","map_wm.gif")</script>

Here is the css:

<div id="base"><div id="mapcontainer"><a href="javascript:warp()"><img src="map_wm.gif" name="targetimage" border=0></a></div>


<div id="textcontainer"><div class="textboxinner1"><a href="index.html"onMouseover="changeimage(myimages[2],this.href)">8CCC REQUESTS/TALKBACK</a></div>

<div class="textboxinner2"><a href="index.html"onMouseover="changeimage(myimages[1],this.href)">Alice Springs  8952 7771</a></div>

<div class="textboxinner2"><a href="index.html"onMouseover="changeimage(myimages[0],this.href)">Tenant Creek 8952 7182</a></div>

<div class="textboxinner3"><span class="t3nonelink">...other contact details <a href="index.html" onMouseover="changeimage(myimages[2],this.href)">here</a></span></div>

  • 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-15T13:32:27+00:00Added an answer on June 15, 2026 at 1:32 pm

    I believe this is an issue with IE where animated gifs are not loaded properly in javascript. A workaround is to put the images in a hidden div in the HTML code instead of loading them in the script. A positive side-effect is that this greatly simplifies the javascript. See http://jsfiddle.net/5pZLT/7

    HTML:

    <DIV id=base>
        <DIV id=mapcontainer><A href="javascript:warp()"><IMG border=0 name=targetimage src ="http://www.keencloudmedia.com/skybluekangaroo/map_wm.gif"></A> </DIV>
    <DIV id=textcontainer>
    <DIV class=textboxinner1><A onmouseover=changeimage(2,this.href) 
    href="index.html">8CCC REQUESTS/TALKBACK</A> </DIV>
    <DIV class=textboxinner2><A onmouseover=changeimage(1,this.href) 
    href="index.html">Alice Springs 8952 7771</A> </DIV>
    <DIV class=textboxinner2><A onmouseover=changeimage(0,this.href) 
    href="index.html">Tenant Creek 8952 7182</A> </DIV>
    <DIV class=textboxinner3><SPAN class=t3nonelink>...other contact details <A 
    onmouseover=changeimage(2,this.href) href="index.html">here</A></SPAN> 
        </DIV></DIV></DIV><div id="hiddenImages" style="display: none">
    <img src="http://www.keencloudmedia.com/skybluekangaroo/map_wm_hover.gif" name="hoverImage" />
    <img src="http://www.keencloudmedia.com/skybluekangaroo/map_wm_hover2.gif" name="hoverImage2" />
    <img src="http://www.keencloudmedia.com/skybluekangaroo/map_wm.gif" name="originalImage" />
    </div>​
    

    Javascript:

    var gotolink = "#";
    function changeimage(imageNumber, url) {
        if (document.images) {
            document.images.targetimage.src = 
                document.getElementById('hiddenImages').children[imageNumber].src;
            gotolink = url;
        }
    }
    

    By the way there were lots of ;s missing in your original code which would tend to stop it working.

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

Sidebar

Related Questions

I have a Javascript greeting that greets new users with a drop down banner
I have a layout template made to have a top banner, a left side
I have made a flash banner where there are 5 buttons.So I want that
I have a WebPage made that is 90% Javascript. All of the WebSite is
I have a function that dynamically adds text to an image in a predesignated
I am designing a website for which I have a big banner (made with
So on users profiles I will have banner space where they can upload a
My client needs to have a banner management system installed to their site. They
I have a admob banner in my app and I've implemented it with the
I have a .swf banner embeded on my xhtml and I need it to

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.