<object id="pixwin" classid="clsid:678788C1-36D6-41AF-A407-5405BCBC6E49" codebase="pix.cab"> </object>
pixwin 自定义控件。是个视频窗口控件<script language="javascript" event="onmousemove(e)" for="pixwin">
if(pixwin.layout ==1)
{
var e = e || window.event;
{
//alert(e.offsetX); X坐标
//alert(pixwin.style.width); pixwin宽度
//alert(e.offsetY);Y坐标
//alert(pixwin.style.height);pixwin高度
var offsetX = e.offsetX;
var pixwinW = pixwin.style.width.replace('px','');
var offsetY = e.offsetY;
var pixwinH = pixwin.style.height.replace('px','');
if(offsetX>(pixwinW/3) && offsetX<(2*(pixwinW)/3) && offsetY<((pixwinH)/3)){
pixwin.style.cursor = 'crosshair';
alert( pixwin.style.cursor);
}
}具体就是取到在这个控件的某个区域把cursor 设置成一个自建的cursor如果可以的话加我qq89415716 我把控件传给你。
希望高手可以帮忙只允许我发100分。小弟级别低
pixwin 自定义控件。是个视频窗口控件<script language="javascript" event="onmousemove(e)" for="pixwin">
if(pixwin.layout ==1)
{
var e = e || window.event;
{
//alert(e.offsetX); X坐标
//alert(pixwin.style.width); pixwin宽度
//alert(e.offsetY);Y坐标
//alert(pixwin.style.height);pixwin高度
var offsetX = e.offsetX;
var pixwinW = pixwin.style.width.replace('px','');
var offsetY = e.offsetY;
var pixwinH = pixwin.style.height.replace('px','');
if(offsetX>(pixwinW/3) && offsetX<(2*(pixwinW)/3) && offsetY<((pixwinH)/3)){
pixwin.style.cursor = 'crosshair';
alert( pixwin.style.cursor);
}
}具体就是取到在这个控件的某个区域把cursor 设置成一个自建的cursor如果可以的话加我qq89415716 我把控件传给你。
希望高手可以帮忙只允许我发100分。小弟级别低
用js设置对象的className属性
pixwin.className='mycursor';
//但是我没测试object是否支持class,你自已试试