编辑下面的代码:【加编码】
<html> <head> <script> function displayResult(x) { var whichSelected=x.selectedIndex; document.body.style.cursor=x.options[whichSelected].text; } </script> </head> <body> <p>Select a cursor in the list below and move the cursor over the body.</p> <select onchange="displayResult(this);" size="17"> <option>auto </option><option>crosshair </option><option>default </option><option>crosshair </option><option>e-resize </option><option>help </option><option>move </option><option>n-resize </option><option>ne-resize </option><option>nw-resize </option><option>pointer </option><option>s-resize </option><option>se-resize </option><option>sw-resize </option><option>text </option><option>w-resize </option><option>wait </option></select> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂