如下代码
<script>
function upNext(bigimg) {
var width = bigimg.offsetWidth;
var height = bigimg.offsetHeight;
bigimg.onmousemove = function () {
if (event.offsetX < width / 2) {
bigimg.style.cursor = 'url(images/arr_left.cur),auto';
} else {
bigimg.style.cursor = 'url(images/arr_right.cur),auto';
}
}
bigimg.onmouseup = function () {
}
}
</script>
<div onmouseover="upNext(this)" style="margin-left:200px; width:500px; height:500px; border:1px solid red;">
<FarPoint:FpSpread ID="FpSpread1" runat="server" BorderColor="Black" BorderStyle="Solid"
BorderWidth="1px" Height="200" Width="400" Style="margin-left:50px;">
<CommandBar BackColor="Control" ButtonFaceColor="Control" ButtonHighlightColor="ControlLightLight"
ButtonShadowColor="ControlDark">
</CommandBar>
<Sheets>
<FarPoint:SheetView SheetName="Sheet1">
</FarPoint:SheetView>
</Sheets>
</FarPoint:FpSpread>
</div>
怎么才能让鼠标移动到Spread中心的时候也显示图片 |
|