Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JScrip Error

Status
Not open for further replies.

kloner

Programmer
May 15, 2000
79
AU
Hi all,

I have a question regarding Dreamweavers Javascript code it produces for image swapping. I am building a rather large site using Cold Fusion and incorporating the code. Testing is very good, but we have discovered on the Macintosh (IE 4 / 4.5) runtime errors relating to mouseover code.

I have two images side-by-side when i mouseover the first image it works fine, as soon as the pointer goes over the second I get an error saying

Microsoft JScript Runtime Error.
Line 179
Char 2
Error : Object doesn't support this property or method.

Due to no debugging existing on the mac, I looked at the source code, and counted down to line 179 and got the following.

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

The colour of the code is highlighted when it reaches :

<a.length&&(x=a)&&x.oSrc;i++

Obviously the code is not executing properly, and it may be thinking its looking for an open '<' tag and then a closing '>' tag. Any help appreciated.

[sig]<p>Matthew Wall<br><a href=mailto: > </a><br><a href= > </a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top