First try this ...
change your next line of code
$(window).bind("resize", function(){
to
// Bind event listener $(window).resize(imageresize);
and put a warning inside imageresize to see if it works or not ...
In case the above does not work ... I believe that there is one problem, probably.
in your code there
$(document).ready(function() { $(window).bind("resize", function(){
Thus, the function to stay inside jquery may not work correctly. Also, try using simple javascript; I had a similar problem and decided to use simple javascript and jquery did not work in some browsers.
The sound is strange enough that you do not try on it, but it will work ...
source share