I've been having lots of trouble with a website I'm helping out with. It has a bunch of javasripts to give the website a nice scrolling effect, but it doesn't work on Safari.
So I need a way for the javascripts not to run, preferably by just checking what browser the viewer is using since I've only had this problem with people browsing using Safari. I've never really used javascript before, so I don't know how I can make these exceptions... I'm also curious to why it's just Safari that seems to have this problem as I haven't come across a real concrete answer.
<link rel="stylesheet" type="text/css" href="styles.css" />
<title>Website name</title>
<link rel="shortcut icon" href="_IMG/icon.png" />
<!-- Javascripts causing problems in Safari are commented out for now
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript" src="_JAVA/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="_JAVA/smooth-scroll.js"></script>
<script type="text/javascript" src="_JAVA/skrollr.js"></script>
<script type="text/javascript" src="_JAVA/mainJs.js"></script>
-->
<link href='http://fonts.googleapis.com/css?family=Buenard:400,700|Bentham' rel='stylesheet' type='text/css'>