Click to See Complete Forum and Search --> : what's netscapes problem?


havik
03-12-2003, 10:37 AM
Take a look at the following URL:

http://www.e-bsc.ca/Temp/NewFolder/example.html

I know this scroller is compatible with any netscape less that the version 6, but I'm trying to get it to work in netscape 6 and 7.


Explorer has no problems running the scroller without creating havik :) on the page.

any ideas to work around this?

Havik

Vladdy
03-12-2003, 11:08 AM
Write compliant code!!!

havik
03-12-2003, 11:11 AM
Yeah good idea, what do you think I'm trying to do in the first place?

Havik

Vladdy
03-12-2003, 11:59 AM
For example:
document.images['ttus'].src is not compliant
document.getElementById('ttus').src is

havik
03-12-2003, 12:45 PM
Well that was code that I removed so I could show just the minimum of what was going on. Guess what, that code works perfectly on the page. Don't believe me? Go to:

http://www.cbsc.org/manitoba/index.html

and look at the 'Talk to us' button right below the side menu.

So look, if you don't know how to solve my problem then don't bother saying something very vague and general like, 'Write compliant code!!!'.

Havik

Vladdy
03-12-2003, 12:52 PM
If you code works in IE and does not in Gecko, the problem is in its compliancy with DOM standard. Go through it and make sure there are no document.all, node.attachEvent and other IE only and old stuff. Use Gecko's javascript console and see on which object it errors.
You want me to rewrite it for you so it works in Gecko - that will be $75/hour.

havik
03-12-2003, 01:29 PM
I'll get back to you on that since Gecko isn't my priority right now.

boojum
03-12-2003, 05:29 PM
havik, wheres your sig from?

havik
03-13-2003, 09:18 AM
The first one is something I read on Dilbert and the second is similiar to something someone told me.

But regarding the subject of the thread, nevermind I got it to work.

Havik

Dan Drillich
03-13-2003, 09:31 AM
HTML4 N6 and IE4 support onmouseover, onmouseout, etc. for most elements. So, you can use just the img element without wrapping it with the a tag.
If you do use the a tags, you have to be careful with javascript in URLs as in -
<a href="javascript:scrollTextUpFast()….”

As “JavaScript The Definitive Guide” says –


Often, we want to use a javascript: URL to execute some JavaScript code without altering the currently displayed document. To do this, you must be sure that the last statement in the URL has no return value. One way to ensure this is to use the void operator to explicitly specify an undefined return value. Simply use the statement void 0; at the end of the javascript: URL.



Cheers,
Dan

havik
03-13-2003, 09:48 AM
Well, I'm happy with the way the scroller works in NS6+ and IE, but it doesn't want to work to well with NS4. Do div layers show up in NS4 at all, or should I work with <ilayer> and <layer>?

Havik