View Full Version : if NS hide div tag if IE ok...
manga101
10-24-2002, 08:50 PM
hey gurus.
i went to http://www.ubi.com
and saw a cool effect they did that i want to acheive...i look at their source code..found out how they did the flash div layer but i cant find the part where they detect NS and dont show/play the flash floating layer..
i ran IE..it works great.. i ran NS both 4.7 and 6.2 both dont show the flash floating which is great!
so basically somehwere amidst their massive coding there exist such a javascript or function that does this..
any tip/help?
thx guys.
chrismiceli
10-24-2002, 11:06 PM
you could do this but i doubt this what they did
if (navigator.appName=="Netscape") {
//code here
}
else if (navigator.appName=="Microsoft Internet Explorer") {
//code here
}
don't know if the netscape is the the same appname as mozilla, but that tells the browser name.
manga101
10-24-2002, 11:19 PM
here is the code for the floating flash DIV:
----------------------
<script>
function hideSplinterCellDiv(){
// Get the object
var objDiv = self.document.getElementById("splintercellflash");
if(objDiv){
objDiv.style.visibility = "hidden";
objDiv.style.left = 0;
objDiv.style.top = 0;
objDiv.style.clip='rect(0px 0px 0px 0px)';
objDiv.style.width = 0;
objDiv.style.height = 0;
}
}
</script>
<div id="splintercellflash" style="visibility:inherit; position:absolute; left:150; top:50; width:550; height:400; clip:rect(0,530,400,0)" onmousedown="hideSplinterCellDiv()">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="550" HEIGHT="400" id="billboard_nobackground" ALIGN="">
<PARAM NAME=movie VALUE="/NR/rdonlyres/e663pbwannvkmf3f73hoyr5tebtcalqhsvxn5e562u5ea5wueyspjepx4j6bdnnrecyhcyaiivl32gt5wxon3gdpofc/billboard_nobackground.swf">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=bgcolor VALUE=#000000>
<EMBED src="/NR/rdonlyres/e663pbwannvkmf3f73hoyr5tebtcalqhsvxn5e562u5ea5wueyspjepx4j6bdnnrecyhcyaiivl32gt5wxon3gdpofc/billboard_nobackground.swf" loop=false menu=false quality=high wmode=transparent bgcolor=#000000 WIDTH="550" HEIGHT="400" NAME="billboard_nobackground" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT></div>
---------------------------
how would i incorporate your code into the existing js script?..
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.