tonyledenko 0 Newbie Poster

Hello,

I have discovered that my flash banner disappears when the menu above it is mouseovered. Anyway, I was wondering if someone could help me with a sniffer script. Example, if the user is on a safari browser then swap out the flash with a static image. Here is my code for the flash:

<script type="text/javascript">
var v1,v2,v3,rangVideo;
v1='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="250" id="contact3" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/Portals/0/Skins/NationalProducts/contact3.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="scalevalue="noscale" /><embed src="/Portals/0/Skins/NationalProducts/contact3.swf" quality="high" wmode="transparent" scale="noscale" width="100%" height="250" name="contact3" align="middle"allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
v2='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="250" id="contact4" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/Portals/0/Skins/NationalProducts/contact4.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="scalevalue="noscale" /><embed src="/Portals/0/Skins/NationalProducts/contact4.swf" quality="high" wmode="transparent" scale="noscale" width="100%" height="250" name="contact4" align="middle"allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
v3='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="250" id="contact5" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/Portals/0/Skins/NationalProducts/contact5.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="scale"value="noscale" /><embed src="/Portals/0/Skins/NationalProducts/contact5.swf" quality="high" wmode="transparent" scale="noscale" width="100%" height="250" name="contact5" align="middle"allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
rangVideo=[v1,v2,v3];
window.onload=function()
{
rangProc=Math.floor(Math.random()*rangVideo.length);
document.getElementById('flash').innerHTML=rangVideo[rangProc];
}
</script>

<div id="flash"></div>