Click to See Complete Forum and Search --> : Someone for getting it to NE compatible??


Asch
05-26-2003, 03:20 AM
hi, i have a script, that when you passes on a l ink with your mous, an image displays, the problem is that it doesnt work in netscape...i have tried some stuff but... does someone know how can I do that..??

this is the main function :

blablabla

function changetext(whichcontent){
if (document.all)
descriptions.innerHTML='<font face="Verdana"><small>'+whichcontent+'<font></small>'
else if (document.layers){
document.d1.document.d2.document.write('<font face="Verdana"><small>'+whichcontent+'</small></font>')
document.d1.document.d2.document.close()
}
}

It s called with this :
onMouseover="changetext(content[1]);return false;


any suggestion is welcome...thanks..

asch

Nevermore
05-26-2003, 03:34 AM
document.all is IE only - that's probably why it won't work in Netscape.

Asch
05-26-2003, 04:20 AM
:o)..thx...

so what replaces "document" in netscape ;) ???

Charles
05-26-2003, 06:21 AM
Don't worry about it. Netscape users are only about 7% of users. (http://www.thecounter.com/stats/2003/May/browser.php) Instead, worry about the 14% of users who do not use JavaScript at all or who have browsers old enough that they do not understand the W3C DOM. (http://www.thecounter.com/stats/2003/May/javas.php)

Asch
05-26-2003, 07:39 AM
really intersting..charles...14% with javascript disabled
i m surprised :O)...

think il put a sniffer...on th entrance page which will tell people to enable it ...and change to IE if....

I think it s the besst way ...:O)

Charles
05-26-2003, 07:42 AM
The best way is to make one page that works as well with as without JavaScript. Put the NOSCRIPT element to good use and get creative.

Asch
05-26-2003, 08:30 AM
okay lets do it like this....

thx for your help...really appriciated


asch