Buonasera a tutti, sono nuova sia nel forum che nel mondo del web.
Sto creando il mio primo sito, dove c'è una slider (easyslider di Jquery). Funziona perfettamente su tutti i browser tranne che su IE. Non legge proprio Javascript.
Sbaglio qualcosa? O dimentico qualcosa? Grazie mille.
Ecco il codice:
<!-- Javascript -->
<script type="text/javascript">
$(document).ready(function(){
$("#slider").easySlider({
auto:true,
continuous: true
});
});
</script>
<!--scroll to-->
<script type="text/javascript">
$('a[href*=#]').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
&& location.hostname == this.hostname) {
var $target = $(this.hash);
$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
if ($target.length) {
var targetOffset = $target.offset().top;
$('html,body').animate({scrollTop: targetOffset}, 1000);
return false;}
}
});
</script>