Hi
The following functions are working propery for IE, Ns 4.x and NS 6+ but
the image I want to display disappears in IE. Why?
function swapPic(layer,i mgName,imgObj) {
o = (n &&
layer?document. layers[layer].document.image s[imgName]:document.image s[imgName]);
if(!o.hasswappe d) o.src = eval(imgObj+".s rc");
}
var oRef = null;
var oRefImg = null;
function keepPic(layer,i mgName,imgObj) {
if(oRef) {
// swap image back
oRef.src = oRefImg;
}
if (document.image s) {
o = (n &&
layer?document. layers[layer].document.image s[imgName]:document.image s[imgName]);
if(o) {
oRef = o
oRefImg = o.src;
o.src = eval(imgObj+".s rc");
o.hasswapped = true;
}
}
}
I use the following link to chose the image I want to display
<area shape="poly" alt="" coords="25,25,2 1,0,30,0"
href="javascrip t:void(0)" title=""
onMouseOver="sw apPic('metera', 'diala','img1') ;"
onClick="keepPi c('metera','dia la','img1');">
<div id="metera"><im g src="images/pointer.aa.gif" alt="" name="diala"
id="diala" width="50" height="50" border="0" usemap="#dialit a"></div>
The image map is a dial with 20 positions on it to display a position on
a dial
--
Cheers!
Ken Tuck
EyeCreate Inc.
Web Site Design | Online Applications | E-Commerce
ph: 705 755-1120
fx: 705 743-9259
The following functions are working propery for IE, Ns 4.x and NS 6+ but
the image I want to display disappears in IE. Why?
function swapPic(layer,i mgName,imgObj) {
o = (n &&
layer?document. layers[layer].document.image s[imgName]:document.image s[imgName]);
if(!o.hasswappe d) o.src = eval(imgObj+".s rc");
}
var oRef = null;
var oRefImg = null;
function keepPic(layer,i mgName,imgObj) {
if(oRef) {
// swap image back
oRef.src = oRefImg;
}
if (document.image s) {
o = (n &&
layer?document. layers[layer].document.image s[imgName]:document.image s[imgName]);
if(o) {
oRef = o
oRefImg = o.src;
o.src = eval(imgObj+".s rc");
o.hasswapped = true;
}
}
}
I use the following link to chose the image I want to display
<area shape="poly" alt="" coords="25,25,2 1,0,30,0"
href="javascrip t:void(0)" title=""
onMouseOver="sw apPic('metera', 'diala','img1') ;"
onClick="keepPi c('metera','dia la','img1');">
<div id="metera"><im g src="images/pointer.aa.gif" alt="" name="diala"
id="diala" width="50" height="50" border="0" usemap="#dialit a"></div>
The image map is a dial with 20 positions on it to display a position on
a dial
--
Cheers!
Ken Tuck
EyeCreate Inc.
Web Site Design | Online Applications | E-Commerce
ph: 705 755-1120
fx: 705 743-9259
Comment