开发者

Move Windows 7 Gadget with JavaScript

开发者 https://www.devze.com 2023-02-16 20:31 出处:网络
I already resize a gadget when a certain button is pressed using this code: with (document.body.style)

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

精彩评论

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

关注公众号