Hello,
I'm trying to create a web banner that consists of (2) parts. The first is a static .gif image that is floated left. The second is a rotating image (called with Java), also floated, that is supposed to display in-line with the .gif image beside it.
Everything works fine and displays correctly, including the random image, until I specify a link for the random image. If I include a link with the random image, the pic seems to ignore the float commands and instead jumps to the next line and displays below the gif.
Here is how I coded the random image with link:
var whichBanner = Math.round(Math.random()*(q-1));
function showBanner(){
document.write('<a href="http://www.google.com"<img src="'+theBanners[whichBanner]+'"></a>');
}
As soon as the <a href="... is removed, the image displays in the correct position (but without a link, obviously). What can I do?
Much Thanks,
B
Bookmarks