i have created a website in that i wants to add text to image to show address just beside the image
or
how to add a label and show text in it in javascript only
how can i add the text to it tell me
------------
function PreloadImages()
{
var img1 = new Image();
img1.src = "images/mall1.jpg";
document.$Image1 = img1;
var img2 = new Image();
img2.src = "images/mall2.jpg";
document.$Image2 = img2;
var img3 = new Image();
img3.src = "images/mall3.jpg";
document.$Image3 = img3;
}
function SetImage(n) {
var image = document.getElementById("myimg");
if (n == 1)
{
image.src = document.$Image1.src;
}
if (n == 2)
{
image.src = document.$Image2.src;
}
else if (n == 3)
{
image.src = document.$Image3.src;
}
}