I’m trying to incorporate a custom google map into my wordpress website and google gives me javascript embedded into the html.
The function itself I can dump into my functions.js but does anyone know how I can avoid using this:
And do the same via jquery?
Here is my onload attempt:
Code:
$(document).ready(function(load){
// Your code here
});
Not sure about onunload though. Would I use the unload function http://docs.jquery.com/Events/unload#fn ? I’m not sure how to write it though and to check that it does execute the GUnload function on unload.
Any help would be much appreciated.