copy and paste between <body>here</body>
tags
<p><style>.bgimages img {cursor:hand} </style> <script language="JavaScript1.2">
<!--
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=''
}
document.body.onclick=restore
//-->
</script>
</p> |
|
Copy and paste between <body>here</body>
tags where your background sample is going to be.
<span class="bgimages" onClick="tile();event.cancelBubble=true"><img src="Your image file jpg or gif
goes here" width="64" height="64"> |
|
notes
for every background image you want as a sample to be clicked, you add <span class="bgimages" onClick="tile();event.cancelBubble=true">
and then your image background file. |
|