View Single Post
Old 09-24-2001, 03:46 PM  
magnatique
Confirmed User
 
magnatique's Avatar
 
Join Date: Jan 2001
Location: Montreal
Posts: 1,830
Javascript help PLEASE

Hey guys... just need you geniuses' help a bit..

I wanna have a floating picture to add to a design... but it only works in IE, so I don't want it to show in Netscape...

so, I thought this could probably be done in Javascript...

anybody would care to help me on this? I tried to modify an existing Javascript I had, but I am not too good with programing yet eheh

here's the code I try to get to work...
you'll probably understand the logic..

Code:
<SCRIPT language="JavaScript">

function sweet() 
{
 if (navigator.appName == 'Microsoft Internet Explorer')
    return (<img border="0" src="img/page/sweetcheer.jpg" style="position: absolute; left: 341; top: 305 width="320" height="41">);
 else 
    return false;
}
</script>
[This message has been edited by magnatique (edited 09-24-2001).]
magnatique is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote