473,799 Members | 2,927 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why does rollover image swap only work on macs and not PC?

Hi all,
I have created an image map for my home page with multiple hot spots that swap out the main image for another. It is built in a gallery with CSS and html. I started with a template and modified. The swap on hover is critical to the home page, but it is only working on macs and not on pcs.

Here's the site:
http://www.getcreative sense.com

I welcome any advice. I am a novice programmer and only know the basics.
Thank you.
Nov 2 '10 #1
3 2140
Actually, I was told the problem may be with internet explorer versus safari. I added the # to the image map so ie will recognize, but it is still not working for my ie testers.
Nov 2 '10 #2
JKing
1,206 Recognized Expert Top Contributor
Start by validating your page. You have several errors that should be corrected.

To validate your page you can go here.

You have delcared a function roll as follows:
Expand|Select|Wrap|Line Numbers
  1. function roll(img_name1, img_src1, img_name2, img_src2)
  2.    {
  3.    document[img_name1].src = img_src1;
  4.    document[img_name2].src = img_src2;
  5.    }
  6.  
You have declared four parameters for the function but you only pass in two when you call the function.
Nov 3 '10 #3
The # worked, I just needed to place it only when I first list the image map name, not the second time:

Expand|Select|Wrap|Line Numbers
  1. <dt><img name="target" alt="" src="images/head.main.home.jpg" usemap="#HeadRollovers" /></dt>
  2.                            <dd>
  3.                                <map name="HeadRollovers">
  4.  
I also deleted the second image source in the parameters as you suggested:

Expand|Select|Wrap|Line Numbers
  1. function roll(img_name1, img_src1)
  2.    {
  3.    document[img_name1].src = img_src1;
  4.    }
  5.  
But the need for the # was what was tripping up internet explorer. Thanks everyone.
Nov 3 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
1861
by: Richard | last post by:
Considering the elemtary image swap routine in javascript: document.name.src="filename.gif" How would this be translated into PHP? So that if a visitor has js turned off, clicking on a thumbnail would show the larger image.
3
5685
by: PJ | last post by:
I'm trying to duplicate a particular image swap effect shown here: http://css.maxdesign.com.au/listamatic/horizontal18.htm However, I'm confused as to how the padding values are calculated and I was hoping someone could provide a little insight. Are the padding values contingent upon the length and size of the text? Is there a way to achieve this effect w/out using padding values? I attempted to set display: block on the a elements,...
2
2030
by: Koh | last post by:
My rollover image effect work fine in Netscape but not in Internet Explorer. Is there any important element or tag that I have miss out so it is not working in Internet Explorer? Below is my code, hope there is someone can help me. Thank you. <html> <head> <title>List of Products</title> <script language="JavaScript"> <!--
9
2050
by: Karl Burrows | last post by:
I am working on a Website for a non-profit group and for some reason I have one link that doesn't want to cooperate. All the image links work fine with the onmouseover and onmouseout script except one. Maybe I am just getting blurry-eyed, but can someone help me figure out what I have done wrong? Thanks!!!! <td width="190" height="57"><a href="Trends.htm" onmouseover="chgImg('Trends','InteriorTrendsBold')"...
12
1655
by: LAshooter | last post by:
I have a portfolio page which loads a dozen thumbnails and one large image. A friend helped me code a script (below) which will swap out the large image (named "imgLarg") when a different thumbnail is clicked. Both the thumbnail and the enlargement are identically named, one is in /thumbs/ and one is in /enlargements/ - tricky, huh? ;-) What's the easiest way to make this work in other browsers as well? <script language="JavaScript">...
7
8298
by: KiwiBrian | last post by:
On a web page I have a graphic for a Shopping Cart Submit button. It is within a form and working fine. I would like to perform an image swap to an identical graphic of a different colour when I hover over the button. Can anyone show me how to do this, or point me to an implementation. My present code for the submit button is:- <input type="image" name="submit" src="images/addtocart1.gif"> This changes the cursor to a hand, and operates...
4
1576
by: rh1200la | last post by:
Hey all. I need to output an image via an .aspx page and hope someone here can help. I would like to display an image like this: <img src="displayImage.aspx?categoryID=1"> The .aspx page will grab a random URL from the database based on the category id. I would like the script to load the URL and download the image, and
4
1735
by: Dan | last post by:
Hi, I know how to make a rollover image in java, but I have trouble when my photo is a php document like: photo_resize.php? id=2&amp;resize_width=600&amp;resize_height=466 Does anyone know how to make a rollover with images like this? Thanks, Daniel
1
1541
by: rlm51 | last post by:
Hi everyone ... Hope you are all well ... I have a rollover image button that I need to do several things: 1. Update a variable: <?PHP $VarNum = $VarNum + 1 ?> 2. Open a pdf file: <a href="Catalog.pdf" - and if possible - 3. Update a database variable: <?PHP mysql_query("UPDATE tableA SET M = $VarNum"); ?> All on one click ... Could someone please give me an idea of the syntax.
2
2090
by: Axel Siebenwirth | last post by:
Hi, I'm quite desparate with creating a rollover image. I'm using Dreamweaver and had the rollover code created automatically but it doesn't work. http://mooselook.de/snapfish/ Can anybody please have look a give me a hint on why this doesn't work?
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10482
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.