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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dreamweaver 3.0 Mouseover code

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]
 
Dear Matthew

in d3 there is a option in the sourcecode that will give u the line no on the left side

ok

as per the mouseover prob please put the code where the mouseover is there so that we can have a look at it

regards :) [sig]<p>Unicorn11<br><a href=mailto:webmaster@tripmedia.com>webmaster@tripmedia.com</a><br><a href= > </a><br>Hi there it all likeminded fellows!!!!!![/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top