View Single Post
Old 06-24-2002, 04:43 PM   PM User | #2
ACJavascript
Regular Coder

 
Join Date: Jun 2002
Location: FL, USA
Posts: 734
Thanks: 0
Thanked 0 Times in 0 Posts
ACJavascript is on a distinguished road
Hi there rasiris,

Well this should work for ya. *crossing fingers* hehe

heres how the code works


-------

<script language="javascript">

var ie,earth

if(navigator.appName=="Microsoft Internet Explorer"){
ie=true
}else{
earh=true
}


function Code(){

if(ie){
//Explorer
menu.style.pixelTop = obj.getBoundingClientRect().top + obj.offsetHeight + Bdy.scrollTop
menu.style.pixelLeft = obj.getBoundingClientRect().left + Bdy.scrollLeft
}else{
//Other Browser, Or Earthlink
menu.style.pixelTop = obj.getBoundingClientRect().top + obj.offsetHeight + Bdy.scrollTop +50
menu.style.pixelLeft = obj.getBoundingClientRect().left + Bdy.scrollLeft +605
}
}

</script>

--------

the var ie,earth

represent Internet explorer and Earthlink

the if construction sees if the user is using IE or Earthlink(or other browsers)

if its IE then ie=true
if its earthlink then earth=true

So when you set up your function to perform the task

you set it up like this

if(ie){
alert("YOUR IE BROWSER")
}else{
alert("YOUR USING ANOTHER BROWSER")
}



Hope this helps
__________________
CYWebmaster.com - See why we dot com!!
ACJavascripts.com - Cut & Paste Javascripts!
SimplyProgram.com - Personal Blog
ACJavascript is offline   Reply With Quote