Attach multiple functions to events
{
{
return true;
else if (obj.attachEvent)
{
return r;
else
{
Sample to call the function:
<a id="myWebsiteImgLink" href="http://panshin.no-ip.org">
<img src="http://panshin.no-ip.org/Images/WebsiteImg.jpg" onerror="OnErrorLoadImage(this);"/>
</a>
<script>
function OnErrorLoadImage(img)
{
document.getElementById('myWebsiteImgLink').href = '#';
document.getElementById('myWebsiteImgLink').innerHTML = '<strong>My Web Site is Offline Now.</strong>';
}
</script>
var script = document.createElement('script');
var src = 'http://www.blogger.com/feeds/'+
this._blogId+
'/posts/default?alt=json-in-script&callback='+
this.options.objName+
'.onGetDataComplete';
if(this.options.orderBy)
src += '&orderby='+this.options.orderBy;
script.setAttribute('src', src);
script.setAttribute('id', 'blogJsonScript_' + this._blogId);
script.setAttribute('type', 'text/javascript');
document.documentElement.firstChild.appendChild(script);