仿MSN,QQ窗体震动的功能 很简单 代码如下:
private void Vibration() //震动
{
this.TopMost = true; //窗体前端显示
bool lab = true;
for (int i = 0; i < 100; i++) //循环里的都能懂吧!
{
if (lab)
{
this.Top += 5;
this.Left += 5;
lab = false;
}
else
{
this.Top -= 5;
this.Left -= 5;
lab = true;
}
}
this.TopMost = false; //取消最前
}
<script src="tag.php?action=relatetag&rtid=9271" type="text/javascript"></script> <script src="tag.php?action=relatetag&rtid=9271" type="text/javascript"></script>