I want position a DIV with the content of an addsense script on top of a img that I use as a banner.
I have the img tag inside a div. then I put the google script inside
You need to use position: absolute; and the parent must be position: relative. Without a proper position rule set z-index means squat.
position: absolute;
position: relative