• I have the following code on my blog as part of DIY Social bookmark toolbar. This one produces the EMAIL ME bit. For some reason, this works fine in Safari and Chrome. But on IE, any page that has this code, ONLY the email image shows up on the page and nothing else.

    I know nothing about javascript beyond the real basics. Any help or where to start looking would be much appreciated.

    <script type="text/javascript" defer="defer">
    function isPPC() {
    if (navigator.appVersion.indexOf("PPC") != -1) return true;
    else return false;
    }
    if(isPPC()) {
    document.write('<a class="contact" HREF=\"mailto:\?subject\=Take a look at this page I found, ' + document.title + '?body=You can see this page at: ' + window.location + '\" onMouseOver="window.status=\'Send your friends e-mail about this page\'; return true" TITLE="Send your friends e-mail about this page"><img src="/wp-content/themes/arthemia/images/icons/email60.png" width="60" height="60"></a>');
    }
    else { document.write('<a class="contact" HREF=\"mailto:\?body\=Take a look at this page I found titled ' + document.title + '. You can see this page at: ' + window.location + '\" onMouseOver="window.status=\'Send your friends e-mail about this page\'; return true" TITLE="Send your friends e-mail about this page" rel="nofollow"><img src="/wp-content/themes/arthemia/images/icons/email60.png" width="60" height="60"></a>');
    }
    </script>
  • The topic ‘Javascript making pages not work in IE’ is closed to new replies.