I wrote some JavaScript to move an ad banner when the user is scrolling. However, it’s working fine with every browser except Internet Explorer… It seems like my JS is not even starting…
I’m using the latest IE9.
How I’m invoking it:
<html>
<head>
<script src="./js/move-it.js" type="text/javascript"></script>
</head>
<body>
...
<div id="bird">
<iframe ...>...</iframe>
</div>
<script type="text/javascript">
start(); // method in move-it.js
</script>
</body>
Website: http://lolkitten.org
Btw, can anyone tell me how to prevent the banner from crashing into my footer in a nice way? I tried to put a div as “stopper” above the lower ad and use it’s “offset-top” attribute, but I guess it always gave me a too small value, i.e. it kept crashing… -.-
Cheers
I managed to get it to work now.
The problem was that IE does not allow
constmodifiers in JavaScript. I simply changed them tovarand it worked finely.