In the head:
Code:
<script type="text/javascript" src="FadableObject.js"></script>
<script type="text/javascript">
var fn = function() {
new FadableObject(document.getElementById("imageOne"), 1, 10, 30, 99, true, false);
};
if (window.attachEvent) window.attachEvent("onload", fn);
else if(window.addEventListener) window.addEventListener("onload", fn, false);
else {
window.overriddenonload = window.onload;
window.onload = function() { fn(); window.overriddenonload(); }
}
</script>
In the body, where you want the image:
Code:
<img src="myImage.png" id="imageOne" onmouseover="this.fadeThread.fadeIn();" onmouseout="this.fadeThread.fadeOut();">
Bookmarks