I commonly use "feature detection" to make my scripts cross-browser compatible. ie:
Code:
if(document.getElementById)
or
Code:
if(document.images)
I need to detect whether or not the user's browser will perform IE's "blendtrans" filter.
Code:
if this browser does filters
document.images.Pic1.style.filter="blendTrans(duration=1)";
document.images.Pic1.filters.blendTrans.Apply();
document.images.Pic1.src = image;
document.images.Pic1.filters.blendTrans.Play();
Actually, I remember posting a question about this code to another forum several months ago, and someone directed me to a website that explained how to make a fade-in work in each of the major browsers, but I've searched the forum (and the web), and can't find it.
Any aid is appreciated...
joe
|