Dynamic change backgrounds.

This program is very convenient for using for change of a field of the screen. Well and in general will look not bad in a collection backgrounds as the filling by that or other figure will look. Images are not the links, but works the script on click on one of images.

In heading we write:
<script language="JavaScript">
function tile(){
if (!document.all)
return
var source=event.srcElement
if (source.tagName=="IMG")
document.body.style.backgroundImage="url("+source.src+")"
}
function restore(){
document.body.style.backgroundImage=''
}
</script>

Further before images in any place of the text we write:
<span class="bgimages" onClick="tile();event.cancelBubble=true">
<img src=.............>
</span>

BACK