when i paste a javascript into my dreamweaver page, on the page a little coffee cup comes up. (i think this means that its ok) but when i look at in a browser the program either frezzes or the gif i am trying to make a banner comes up in a outline with a little red cross in the corner.

Does anyone know what the deal is as this is the first time I have used java.