Hopefully someone from the JS forum will help you with that ancient script and give you some better practices.
As far as CSS goes you can position the image wherever you want (within reason) by adding some styles for it via its id.
Of course there are about a million variables to consider and as we don't have a complete structure of your page it will be hard to be more specific. You will probably need to add position:relative to the parent of those links so that the absolute image is placed in relation to the parent and not the viewport - but again that does depend on what you need.
If you want all the images ion the same place then use a class on the image so that they all get put in the same place with the rule above. You will of course need to adjust positions to fit in to where you want.