I am using jquery for some fade effects. I also have google maps which stands alone as far as I know. But both work OK. I am trying to introduce a right click piece of code which is also stand alone. When I put onload-"trap()" in the body tag the googlemaps stops but the right click (stop pic downloads) and jquery works OK. I assume it's the onload taking over google maps.

I know that there is a method of doing a jquery onload (I have 1.2.3) but not being a coder I have now idea how to install it. I have seen:

1. $(document).ready(function() {
// put all your jQuery goodness in here.

2. function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
else {
window.onload = function() {
if (oldonload) {

3. addLoadEvent(nameOfSomeFunctionToRunOnPageLoad);
addLoadEvent(function() {
/* more code to run on page load */

Absolutely no idea which of these is suitable or how to fit them in. I would rather jquery do the whole thing.

Can anyone help?