当前位置: 首页 > news >正文

做网站用需要几个软件/合肥网络公司seo建站

做网站用需要几个软件,合肥网络公司seo建站,wordpress建站什么意思,听说上海又要封了此文中的代码只是从做的一项目中扣出的,省略了AJAX与后台通信的的代码,代码如下:一个消息测试例子!模仿QQ消息提示功能的web实现。2008-09-17function CLASS_MSN_MESSAGE(id,width,height,caption,title,message,target,action){t…

此文中的代码只是从做的一项目中扣出的,省略了AJAX与后台通信的的代码,代码如下:

一个消息测试例子!

模仿QQ消息提示功能的web实现。2008-09-17

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

{

this.id = id;

this.title = title;

this.caption= caption;

this.message= message;

this.target = target;

this.action = action;

this.width = width?width:200;

this.height = height?height:120;

this.timeout= 500;

this.speed = 120;

this.step = 1;

this.right = screen.width -1;

this.bottom = screen.height;

this.left = this.right - this.width;

this.top = this.bottom - this.height;

this.timer = 0;

this.pause = false;

this.close = false;

this.autoHide = true;

}

/**//*

* 隐藏消息方法

*/

CLASS_MSN_MESSAGE.prototype.hide = function()

{

if(this.onunload()){

var offset = this.height>this.bottom-this.top?this.height:this.bottom-this.top;

var me = this;

if(this.timer>0){

window.clearInterval(me.timer);

}

var fun = function(){

if(me.pause==false||me.close){

var x = me.left;

var y = 0;

var width = me.width;

var height = 0;

if(me.offset>0){

height = me.offset;

}

y = me.bottom - height;

if(y>=me.bottom){

window.clearInterval(me.timer);

me.Pop.hide();

} else {

me.offset = me.offset - me.step;

}

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

}

}

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

}

}

/**//*

* 消息卸载事件,可以重写

*/

CLASS_MSN_MESSAGE.prototype.onunload = function()

{

return true;

}

/**//*

* 消息命令事件,要实现自己的连接,请重写它

*

*/

CLASS_MSN_MESSAGE.prototype.oncommand = function()

{

this.close = true;

this.hide();

window.open("http://www.baidu.com");

}

/**//*

* 消息显示方法

*/

CLASS_MSN_MESSAGE.prototype.show = function()

{

var oPopup = window.createPopup(); //IE5.5+

this.Pop = oPopup;

var w = this.width;

var h = this.height;

var str = "

"

str += "

str += "

"

str += "

"

str += "

" + this.caption + ""

str += "

"

str += "×

"

str += "

"

str += "

"

str += "

"

str += "

" + this.title + "
"

str += "

" + this.message + "
"

str += "

"

str += "

"

str += "

"

str += "

"

str += "

"

oPopup.document.body.innerHTML = str;

this.offset = 0;

var me = this;

oPopup.document.body.onmouseover = function(){me.pause=true;}

oPopup.document.body.onmouseout = function(){me.pause=false;}

var fun = function(){

var x = me.left;

var y = 0;

var width = me.width;

var height = me.height;

if(me.offset>me.height){

height = me.height;

} else {

height = me.offset;

}

y = me.bottom - me.offset;

if(y<=me.top){

me.timeout--;

if(me.timeout==0){

window.clearInterval(me.timer);

if(me.autoHide){

me.hide();

}

}

} else {

me.offset = me.offset + me.step;

}

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

}

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

var btClose = oPopup.document.getElementById("btSysClose");

btClose.onclick = function(){

me.close = true;

me.hide();

}

var btCommand = oPopup.document.getElementById("btCommand");

btCommand.onclick = function(){

me.oncommand();

}

var ommand = oPopup.document.getElementById("ommand");

ommand.onclick = function(){

//this.close = true;

me.hide();

window.open(ommand.href);

}

}

/**//*

** 设置速度方法

**/

CLASS_MSN_MESSAGE.prototype.speed = function(s){

var t = 20;

try {

t = praseInt(s);

} catch(e){}

this.speed = t;

}

/**//*

** 设置步长方法

**/

CLASS_MSN_MESSAGE.prototype.step = function(s){

var t = 1;

try {

t = praseInt(s);

} catch(e){}

this.step = t;

}

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

try {

this.left = left !=null?left:this.right-this.width;

this.right = right !=null?right:this.left +this.width;

this.bottom = bottom!=null?(bottom>screen.height?screen.height:bottom):screen.height;

this.top = top !=null?top:this.bottom - this.height;

} catch(e){}

}

/************************************/

function showalarm()

{ var desc="我叫强强,我困!"+'
'+"我好饿!";

var name="mht";

var cmptime;

var now=new Date();

var hour=now.getHours();

var minute=now.getMinutes();

cmptime=hour.toString()+":"+minute.toString();

//

var header="您有1个新的消息来自 "+name+" "+cmptime;

var MSG1 = new CLASS_MSN_MESSAGE("aa",200,120,"提示:",header,desc);

MSG1.rect(null,null,null,screen.height-50);

MSG1.speed = 10;

MSG1.step = 5;

MSG1.show();

}

http://www.jmfq.cn/news/5144131.html

相关文章:

  • 长沙市政府网/网站优化包括哪些
  • 乾安网站建设哪家好/优质网站
  • 石家庄哪里有做网站/安卓排名优化
  • 昆山做网站找文博/seo网站结构优化的方法
  • 中国做外贸网站有哪些问题/怎么创建一个属于自己的网站
  • 专门做视频的网站/百度竞价代运营外包
  • 重庆忠县网站建设公司/北京网络推广外包公司排行
  • 蓝色网站模板/最新seo新手教程
  • 怎样做展会推广网站/宁波网站建设优化企业
  • 百度网站查反链/百度推广营销
  • 网站背景 手机显示不全/seo网站推广推荐
  • wordpress关闭手机访问/百度seoo优化软件
  • 增城网站建设/容易被百度收录的网站
  • 做网站师傅/seo用什么论坛引流
  • 杭州网站建设出 名/seo公司培训课程
  • 互联网网站界面设计 要素/企业网站seo贵不贵
  • 用asp做的几个大网站/怎么弄一个自己的网址
  • 一个网站是如何建设/适合小学生的新闻事件
  • 四川建设厅官方网站是多少/新东方烹饪学校学费一年多少钱
  • 制作个人网站教程/某网站搜索引擎优化
  • 六安市人民政府/seo优化就业前景
  • 网站防止被采集/怎么做好营销推广
  • 小语种网站开发/西安企业seo
  • 做网站前途如何/互联网推广招聘
  • 上海服装集团网站建设/哈尔滨网络seo公司
  • 有哪些网站可以做店面设计/企业营销案例
  • 公司网站工程案例怎么做/下载安装
  • adobe网站制作/人大常委会委员长
  • 政府 网站建设规划/全媒体广告投放平台
  • 个人站长网站需要注册公司吗/外贸网站大全