开发者

Move Windows 7 Gadget with JavaScript

I already resize a gadget when a certain button is pressed using this code:

with (document.body.style)
{
    width = "987px";
    height = "773px";
}

The complaint I get from users is that it goes off their screen because the gadget maintains it's top-left position and "grows" from that point. Is there any开发者_如何学编程 way to move the gadget relative to its current position? I've tried window.moveTo without success.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜