View Full Version : Image in Javascript

04-17-2009, 08:15 PM
Hello there,

I recently looking to editing the Omni Slide script from Dynamic Drive so it fits in with my site design and have come across part I cannot do.

barbgcolor:'#4d6814', // bar (the vertical cell) background color

How do I place an image in Javascript?

I tried this:

Image.src = “image.jpg”;

and I tried this:

var Image = Image;
Image.src = “image.jpg”;

and they dont work.

Can anyone give me a hand