js視窗右下角彈出框效果(找了很久,不容易)

2021-09-01 07:24:51 字數 1894 閱讀 8642

這是別人寫的**,很好用,效果很好。作為乙個學習教材也很好。

為了方便使用,我把上述js放到乙個js檔案中,以後使用的話,引入它就可以了。

poplittle.js

function class_msn_message(id,width,height,caption,title,message,target,action)  

/*

* 隱藏訊息方法

*/

class_msn_message.prototype.hide = function()

var fun = function()

y = me.bottom - height;

if(y>=me.bottom)

else

me.pop.show(x,y,width,height);

} this.timer = window.setinterval(fun,this.speed)

} }

/*

* 訊息解除安裝事件,可以重寫

*/

class_msn_message.prototype.onunload = function()

/*

* 訊息命令事件,要實現自己的連線,請重寫它

* */

class_msn_message.prototype.oncommand = function()

/*

* 訊息顯示方法

*/

class_msn_message.prototype.show = function()

else

y = me.bottom - me.offset;

if(y<=me.top)

} else

me.pop.show(x,y,width,height);

} //end fun

this.timer = window.setinterval(fun,this.speed)

var btclose = opopup.document.getelementbyid("btsysclose");

btclose.onclick = function()

var btcommand = opopup.document.getelementbyid("btcommand");

btcommand.onclick = function()

} // end show

/* ** 設定速度方法

**/

class_msn_message.prototype.speed = function(s)

catch(e){}

this.speed = t;

} /*

** 設定步長方法

**/

class_msn_message.prototype.step = function(s)

catch(e){}

this.step = t;

}

class_msn_message.prototype.rect = function(left,right,top,bottom)

catch(e)

{} } /*

呼叫示例

function window.onload()

*/

呼叫頁面:

pop.html

這樣使用起來就很方便,我們只要傳入顯示的內容就可以了。

js視窗右下角彈出框效果(找了很久,不容易)

這是別人寫的 很好用,效果很好。作為乙個學習教材也很好。為了方便使用,我把上述js放到乙個js檔案中,以後使用的話,引入它就可以了。poplittle.js function class msn message id,width,height,caption,title,message,target...

C winform 右下角彈出視窗效果

using system.runtime.interopservices dllimport user32 private static extern bool animatewindow intptr hwnd,int dwtime,int dwflags 下面是可用的常量,根據不同的動畫效果宣告...

右下角彈出視窗(C )

using system using system.collections.generic using system.componentmodel using system.data using system.drawing using system.linq using system.text u...