웹마스터 팁
page_full_width">
배경색을 마우스로 크릭하여 지정하여 준다.
2006.07.27 20:05
미리보기 http://www.kmsmaru.com/java_sous/pa-1.htm
<html>
<body>
<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>
<span class="bgimages" onClick="tile();event.cancelBubble=true"><img src="../java_sous/backgr10.jpg" width="101" height="102"><img src="../java_sous/backgr11.jpg" width="101" height="102"><br><img src="../java_sous/backgr14.jpg" width="101" height="102"><img src="../java_sous/backgr13.jpg" width="101" height="102"></span>
</body>
</html>
<html>
<body>
<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>
<span class="bgimages" onClick="tile();event.cancelBubble=true"><img src="../java_sous/backgr10.jpg" width="101" height="102"><img src="../java_sous/backgr11.jpg" width="101" height="102"><br><img src="../java_sous/backgr14.jpg" width="101" height="102"><img src="../java_sous/backgr13.jpg" width="101" height="102"></span>
</body>
</html>