Nodemap not show in Chrome, Opera and Internet Explorer

Nodemap show up in Firefox but not in Chrome, Opera and Internet Explorer in a correct way. By adding the following script it will solve the problem. The code below can be added in the end of your page.tpl.php template file.

</script>
    <script type="text/javascript">
    window.onload = function() {
      load();
    }
    window.onunload = function() {
      GUnload();
    }
  </script>

Or by adding it in a module by this code

<?php
$script
= "window.onload = function() {
             load();
           }
           window.onunload = function() {
             GUnload();
           } "
;
drupal_add_js($script, 'inline', 'footer');
?>

Source: http://drupal.org/node/302933#comment-1017152
Source: http://thewichitacomputerguy.com/blog/embed-google-maps-drupal-node-with...

Knowledge keywords: