While the next problem is really an obvious coding error and not a browser problem, sometimes it may not be obvious when that one has done this. YAMF uses the document.write() method to create the DHTML image containers. Basically, there is a function that generates these containers (layers) using the Space character (white space) with the style sheet visibility property initially set to invisible (or hide in the case of Netscape 4.) This occurs as soon as the page is loaded and then the Space images are replaced with ones pointed to by an arbitrary message string after the page has loaded. Thus, the initial load was set up to not display any images until such time as the main function was called.
While you might think that the myImage.src property contains the relative URL text string after the assignment, you might be mistaken. Internet Explorer and Netscape 4 actually expand the relative URL to its fully qualified absolute URL value, e.g.,http://www.SomeDomain.com/images/MyImage.gif as part of the assignment process; while, Netscape 6 leaves it in its relative state. Under normal circumstances, this is not an issue since use of an automatically expanded URL is just as valid as its shortened relative one. However, if for any reason one has to rely on the original form of the URL (to determine which method was used to define the URL, for example) then the script cannot expect the original value to be contained in the myImage.src property.
YAMF - "Yet Another Mouse Follower"
All Is Not What It Seems
Netscape 6 Made Me Do It!
Testing - To Reload or To Restart?
Browser Sniffing - Parse or Presence?
Stopping Annoying Auto-Scroll in DOM2 Browsers
Netscape 6 is Pixel Picky
Inline Style Constraint on Internet Explorer 5
Must Use <LAYER> tag in Netscape 4 to perform DHTML
!DOCTYPE Compliance Mode
Take Care Not to Render in <HEAD> Section
Automatic Expansion of Relative URLs
The Elusive Netscape 4 Layer Elements
Temperamental onLoad After Reload
document.images[id].complete Property Dependency
Search Method Does Not Return Boolean Value
Regular Expression Global Flag Fails With Subsequent Usage
Roll Your Own
|Copyright © 2002-2003, ProjectIt, All Rights Reserved||Last Revised:|