右下角弹窗代码,右下角有弹窗

http://www.itjxue.com  2023-01-23 19:20  来源:未知  点击次数: 

C#右下角弹窗 有现成的代码

//获取当前工作区宽度和高度(工作区不包含状态栏)

???int?ScreenWidth?=?Screen.PrimaryScreen.WorkingArea.Width;

????int?ScreenHeight?=?Screen.PrimaryScreen.WorkingArea.Height;

????//计算窗体显示的坐标值,可以根据需要微调几个像素

????int?x?=?ScreenWidth?-?this.Width?-?5;

????int?y?=?ScreenHeight?-?this.Height?-?5;

?

????this.Location?=?new?Point(x,y);

打开一个网页后,右下角自动弹出给我留言的窗口的代码怎么写?

!--

saved

from

url=

and

Settings/yfq/桌面/升起窗口提示.html

--

script

window.onerror

=

new

Function("return(false);")

/script

!DOCTYPE

HTML

PUBLIC

"-//W3C//DTD

HTML

4.0

Transitional//EN"

HTML

HEAD

TITLE类似MSN提示的页面效果

/TITLE

/HEAD

BODY

scroll=no

!--StartFragment--看到右下角的提示了吗?如果没有看到,

BUTTON

onclick=location.reload();刷新

/BUTTON一下

SCRIPT

language=JavaScript

window.onload

=

getMsg;

window.onresize

=

resizeDiv;

window.onerror

=

function(){}

//短信提示使用(asilas添加)

var

divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i

=

0;

function

getMsg()

{

try{

divTop

=

parseInt(document.getElementById("eMeng").style.top,10)

divLeft

=

parseInt(document.getElementById("eMeng").style.left,10)

divHeight

=

parseInt(document.getElementById("eMeng").offsetHeight,10)

divWidth

=

parseInt(document.getElementById("eMeng").offsetWidth,10)

docWidth

=

document.body.clientWidth;

docHeight

=

document.body.clientHeight;

document.getElementById("eMeng").style.top

=

parseInt(document.body.scrollTop,10)

+

docHeight

+

10;//

divHeight

document.getElementById("eMeng").style.left

=

parseInt(document.body.scrollLeft,10)

+

docWidth

-

divWidth

document.getElementById("eMeng").style.visibility="visible"

objTimer

=

window.setInterval("moveDiv()",10)

}

catch(e){}

}

function

resizeDiv()

{

i+=1

if(i500)

closeDiv()

try{

divHeight

=

parseInt(document.getElementById("eMeng").offsetHeight,10)

divWidth

=

parseInt(document.getElementById("eMeng").offsetWidth,10)

docWidth

=

document.body.clientWidth;

docHeight

=

document.body.clientHeight;

document.getElementById("eMeng").style.top

=

docHeight

-

divHeight

+

parseInt(document.body.scrollTop,10)

document.getElementById("eMeng").style.left

=

docWidth

-

divWidth

+

parseInt(document.body.scrollLeft,10)

}

catch(e){}

}

function

moveDiv()

{

try

{

if(parseInt(document.getElementById("eMeng").style.top,10)

=

(docHeight

-

divHeight

+

parseInt(document.body.scrollTop,10)))

{

window.clearInterval(objTimer)

objTimer

=

window.setInterval("resizeDiv()",1)

}

divTop

=

parseInt(document.getElementById("eMeng").style.top,10)

document.getElementById("eMeng").style.top

=

divTop

-

1

}

catch(e){}

}

function

closeDiv()

{

document.getElementById('eMeng').style.visibility='hidden';

if(objTimer)

window.clearInterval(objTimer)

}

/SCRIPT

DIV

id=eMeng

style="BORDER-RIGHT:

#455690

1px

solid;

BORDER-TOP:

#a6b4cf

1px

solid;

Z-INDEX:

99999;

LEFT:

840px;

VISIBILITY:

hidden;

BORDER-LEFT:

#a6b4cf

1px

solid;

WIDTH:

180px;

BORDER-BOTTOM:

#455690

1px

solid;

POSITION:

absolute;

TOP:

483px;

HEIGHT:

116px;

BACKGROUND-COLOR:

#c9d3f3"

TABLE

style="BORDER-TOP:

#ffffff

1px

solid;

BORDER-LEFT:

#ffffff

1px

solid"

cellSpacing=0

cellPadding=0

width="100%"

bgColor=#cfdef4

border=0

TBODY

TR

TD

style="FONT-SIZE:

12px;

BACKGROUND-IMAGE:

url(msgTopBg.gif);

COLOR:

#0f2c8c"

width=30

height=24

/TD

TD

style="PADDING-LEFT:

4px;

FONT-WEIGHT:

normal;

FONT-SIZE:

12px;

BACKGROUND-IMAGE:

url(msgTopBg.gif);

COLOR:

#1f336b;

PADDING-TOP:

4px"

vAlign=center

width="100%"短消息提示:

/TD

TD

style="PADDING-RIGHT:

2px;

BACKGROUND-IMAGE:

url(msgTopBg.gif);

PADDING-TOP:

2px"

vAlign=center

align=right

width=19

SPAN

title=关闭

style="FONT-WEIGHT:

bold;

FONT-SIZE:

12px;

CURSOR:

hand;

COLOR:

red;

MARGIN-RIGHT:

4px"

onclick=closeDiv()×

/SPAN

!--

IMG

title=关闭

style="CURSOR:

hand"

onclick=closeDiv()

hspace=3

src="msgClose.jpg"

--

/TD

/TR

TR

TD

style="PADDING-RIGHT:

1px;

BACKGROUND-IMAGE:

url(1msgBottomBg.jpg);

PADDING-BOTTOM:

1px"

colSpan=3

height=90

DIV

style="BORDER-RIGHT:

#b9c9ef

1px

solid;

PADDING-RIGHT:

13px;

BORDER-TOP:

#728eb8

1px

solid;

PADDING-LEFT:

13px;

FONT-SIZE:

12px;

PADDING-BOTTOM:

13px;

BORDER-LEFT:

#728eb8

1px

solid;

WIDTH:

100%;

COLOR:

#1f336b;

PADDING-TOP:

18px;

BORDER-BOTTOM:

#b9c9ef

1px

solid;

HEIGHT:

100%"您有

FONT

color=#ff00001

/FONT封新短消息

BR

BR

DIV

style="WORD-BREAK:

break-all"

align=center

A

href="javascript:alert('你好')"

FONT

color=#ff0000点击查看短信

/FONT

/A

/DIV

/DIV

/TD

/TR

/TBODY

/TABLE

/DIV

!--EndFragment--

/BODY

/HTML

JavaScript怎么实现网页右下角弹出窗口代码

?

html

head

metahttp-equiv="Content-Type"?content="text/html;charset=utf-8"?/

titleJavaScript实现网页右下角弹出窗口代码/title

/head

style?type="text/css"

#winpop?{?width:200px;?height:0px;position:absolute;?right:0;?bottom:0;?border:1px?solid?#666;?margin:0;padding:1px;?overflow:hidden;?display:none;}

#winpop?.title?{?width:100%;?height:22px;line-height:20px;?background:#FFCC00;?font-weight:bold;?text-align:center;font-size:12px;}

#winpop?.con?{?width:100%;?height:90px;line-height:80px;?font-weight:bold;?font-size:12px;?color:#FF0000;text-decoration:underline;?text-align:center}?/*??*/

#silu?{?font-size:12px;?color:#666;position:absolute;?right:0;?text-align:right;?text-decoration:underline;line-height:22px;}

.close?{?position:absolute;?right:4px;top:-1px;?color:#FFF;?cursor:pointer}

/style

scripttype="text/javascript"

function?tips_pop(){

?var?MsgPop=document.getElementById("winpop");

?var?popH=parseInt(MsgPop.style.height);//将对象的高度转化为数字

??if?(popH==0){

??MsgPop.style.display="block";//显示隐藏的窗口

?show=setInterval("changeH('up')",2);

???}

?else?{

??hide=setInterval("changeH('down')",2);

??}

}

function?changeH(str)?{

?varMsgPop=document.getElementById("winpop");

?varpopH=parseInt(MsgPop.style.height);

?if(str=="up"){

??if(popH=100){

?MsgPop.style.height=(popH+4).toString()+"px";

??}

?else{?

?clearInterval(show);

??}

?}

?if(str=="down"){

??if(popH=4){?

?MsgPop.style.height=(popH-4).toString()+"px";

??}

?else{

?clearInterval(hide);??

?MsgPop.style.display="none";?//隐藏DIV

??}

?}

}

window.onload=function(){//加载

document.getElementById('winpop').style.height='0px';

setTimeout("tips_pop()",800);//3秒后调用tips_pop()这个函数

}

/script

body

div?id="silu"

buttononclick="tips_pop()"3秒后会在右下角自动弹出窗口,如果没有弹出请点击这个按钮/button

/div

div?id="winpop"

?div您有新的短消息!spanclass="close"onclick="tips_pop()"X/span/div

???div1条ahref=""经典语录/a(/div

/div

/body

/html

(责任编辑:IT教学网)

更多

推荐MYSQL文章