fadeTo crashing my browser?
Hi guys, I am new to this and have a very basic understanding. I spent a lot of time learning it all but certain things still trouble me. Like why does the code below crash firefox?
$(function fade(){
$("#bottom").fadeTo(1000,.6).fadeTo(1000,1), fade();
I know it is this part because when I take it out the rest works.
Here it all is together:
<script type="text/javascript" charset="utf-8">
$(window).load(function() {
$("#zoom_10").elevateZoom({easing : true});
$("#zoom_11").elevateZoom({easing : true});
$("#zoom_12").elevateZoom({easing : true});
});
$(function fade(){
$("#bottom").fadeTo(1000,.6).fadeTo(1000,1), fade();
});
function MM_popupMsg(msg) { //v1.0
alert(msg);
}
</script>
If anybody has any advice please share this with me. I used it on another web page and it does the same thing but I really like the effect of fading in and out of opacity.
Dan