Hello! I am using CSS class to apply design properties to a DIV in my markup. This image is a repeating image. The background-image syntax goes like this:

background-image:url(http://www.mysite.com/images/image.jpg);

I am performing a JavaScript image replacement (it has to be done in JavaScript per client specs) and to replace this image I need to give it a name. How should I apply a name to this image so I can create the document.imagename.src path in JavaScript?

Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.