<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>Xuanting</title><styletype= "Text/css">#a{Background-image:URL (image/index-lhd-1-2880x1480.jpg);background-size:1000px 500px;background-position:Center;width:1000px;Height:500px;Border:1px solid #000;position:relative;Top:100px;margin:Auto;Overflow:Hidden;cursor:Pointer;}/*#a: hover{background-size:1200px 600px; Background-position:center; transition:0.7s; Cursor:pointer;}*/#b{width:300px;Height:25px;position:relative;Top:400px;margin:Auto;font-family:"Microsoft Jas Black";font-size:18px;text-align:Center;Overflow:Hidden;cursor:Pointer; } </style></Head><Body><DivID= "a"onmouseout= "Yi ()"onmouseover= "Fu ()"><DivID= "B"onmouseout= "Yi ()"onmouseover= "Fu ()"><span>2017 Lexus Global Design Awards</span><BR/><span>Designed to provide opportunities for new and sharp designers</span><BR/><BR/><span>View Details ></span></Div></Div></Body></HTML><Script>functionYi () {document.getElementById ("a"). Style.backgroundsize="1000px 500px"; document.getElementById ("a"). Style.transition="0.7s"; document.getElementById ("b"). Style.transition="0.7s"; document.getElementById ("b"). Style.overflow="Hidden";}functionFu () {document.getElementById ("a"). Style.backgroundsize="1200px 600px"; document.getElementById ("a"). Style.backgroundposition="Center"; document.getElementById ("a"). Style.transition="0.7s"; document.getElementById ("a"). Style.cursor="Pointer"; document.getElementById ("b"). Style.transition="2s"; document.getElementById ("b"). Style.cursor="Pointer"; document.getElementById ("b"). Style.overflow="Visible";}</Script>
JS write when the mouse hover and move the background changes appear