well,if a Pokemon flies and anoher Pokemon hit it with thunder?...if Pokemon use dig and the opponent use earthquake?if a Pokemon use dive and the foe use thunder?if a Pokemon use dive and the opponent use earthquake?if a Pokemon use dive and the opponent use a fire type move ?

Well, let's use some common sense here...
Thunder comes from the sky, right? So a Flying Pokemon can be hit by Thunder.
Earthquakes are caused on land, so being below the earth will still cause you to be hit.

Diving means you are somewhat far below in the water, so Thunder will most likely not get to you.
An Earthquake won't be hitting anything in the water, but it will disturb the water.
And Fire in water? C'mon, that fire won't last any more than 5 seconds, leaving you untouched.

it's true... only Whirlpool and surf will hit a diving pokemon, and Thunder would hit a pokemon using Fly, unless it is a golurk, who has an Electric immunity.
yes, GameFrea does have SOME logic, although not that much... c: