Posted by Morgan on 09/16/05 23:31
Just use a little javascript to give the IE crowd gifs and the others
pngs.
This script would put either an gif image or a png image depending on
the results of the code.
(put this into your html code)
<script type="text/javascript">
<!--
if( navigator.appName=="Microsoft Internet Explorer")
{
document.write("<img src='directory/image.gif' />"); //put gif
location here
}
else
{
document.write("<img src='directory/image.png' />");// put png location
here
}
//-->
</script>
This is only an general example of what could be done, but its
certainly not crossbrowser as it should be.
I'll leave it to the others to make more sophisicated examples.
[Back to original message]
|