View Single Post
Old 12-20-2006, 08:46 AM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
why not just put the 2 javascript together in one file in sep functions..

this would go in body tag or head tag

Code:
<script src=detect.js></script>
<script>
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)

//if IE 4+
if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4){
document.write("- press any keyboard key to skip to the next picture -<br>");
ie();
}
else
{

notie();
}
</script>
This would go inside detect.js
Code:
function ie() {

alert('Your using internet explorer');

}
function notie() {

alert('Your not using internet explorer');

}
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote