`

弹出消息框的不同位置效果

    博客分类:
  • zk
 
阅读更多

将代码放到zkDemo 中可测试:

 

<vbox>
<textbox value="Jerry"  type="password" width="150px">
       <attribute name="onChange">
                newpw.open(self,"end_before");
                self.setStyle("border: 1px solid #ed7a66;");
        </attribute>
</textbox>
<popup id="newpw">
      <image src="/img/Centigrade-Widget-Icons/ArrowLeft-16x16.png"/>
      <label value="两次输入密码不一致,请重新输入!" style="color::Red"/>
      <image src="/img/Centigrade-Widget-Icons/PaperClip-16x16.png" onClick="newpw.close()"/>
</popup>
 </vbox> 
 

红色位置可选参数:

  • before_start
    the popup appears above the anchor, aligned on the left. 效果:附图1
  • before_end
    the popup appears above the anchor, aligned on the right. 效果:附图2
  • after_start
    the popup appears below the anchor, aligned on the left. 效果:附图3
  • after_end
    the popup appears below the anchor, aligned on the right. 效果:附图4
  • start_before
    the popup appears to the left of the anchor, aligned on the top. 效果:附图5
  • start_after
    the popup appears to the left of the anchor, aligned on the bottom. 效果:附图6
  • end_before
    the popup appears to the right of the anchor, aligned on the top. 效果:附图7
  • end_after
    the popup appears to the right of the anchor, aligned on the bottom. 效果:附图8
  • overlap
    the popup overlaps the anchor, with the top-left corners of both the anchor and popup aligned. 效果:附图9
  • overlap_end
    the popup overlaps the anchor, with the top-right corners of both the anchor and popup aligned. (since 3.6.3)
  • overlap_before
    the popup overlaps the anchor, with the bottom-left corners of both the anchor and popup aligned. (since 3.6.3)
  • overlap_after
    the popup overlaps the anchor, with the bottom-right corners of both the anchor and popup aligned. (since 3.6.3)
  • after_pointer
    the popup appears with the top aligned with the bottom of the anchor, with the topleft corner of the popup at the horizontal position of the mouse pointer.
  •  

    分享到:
    评论

    相关推荐

      C# winform 右下角弹出消息框

      C# WinForm 消息提示功能,类似QQ的消息提醒样式,可定时关闭,消息框弹出从下往上,关闭从上往下,有动画效果。当用户鼠标停放在提示框上时,自动关闭功能停止 ,当移走鼠标时,重新开始自动关闭功能 。有C#源码;...

      仿QQ长按消息,组件附近弹出选项框

      用PopupWindow实现的一个组件附近弹出选项框的效果,欢迎下载,共同学习

      winform 右下角弹出消息框

      项目需要,做了个用户消息提示功能,访QQ的文件传输,飞秋的消息提醒样式,可定时关闭,消息框弹出从下往上,关闭从上往下,有动画效果。当用户鼠标停放在提示框上时,自动关闭功能停止 ,当移走鼠标时,重新开始...

      Delphi 程序出错时的弹出消息框仿真.rar

      Delphi 程序出错时的弹出消息框仿真,本来是无意遇到的这种提示框,后来做出了这种效果,曾经被这种对话框搞晕过。

      popup.js实现弹出消息提示框效果

      popup.js实现弹出消息提示框效果,代码示例

      Winform自定义消息框,好看的消息提示Alert源码

      Winform自定义消息框,好看的消息提示Alert源码,国外大神,很基础的实现,可以在此基础上进行优化和进一步调整。Winform控件、Winform优美提示框、消息框、Alert信息弹窗、Notification

      Android仿ios弹出框效果

      一块很简单的仿ios弹出框效果 包括底部弹出日期 地址等

      asp.net弹出类似MSN提示框,控件

      MSN由个很好的功能,就是每当你的MSN好友上线时,MSN会自动在窗体托盘的右下角由下往上弹出消息框来通知你,这个功能十分实用,比如在论坛 里,当有新回复你的帖子时,系统会自动弹出消息提示框,又或者在一个电子...

      jQuery 仿QQ右下角弹出消息提示.rar

      jQuery 仿QQ右下角弹出消息提示,显示一个300x200的消息,显示一个fadeIn动画消息,显示一个show动画消息,显示一个show动画消息,不含html,显示定义内容和标题消息,一秒钟关闭消息。  支持鼠标over时不关闭消息...

      类似QQ弹出消息的效果

      类似QQ或MSN弹出消息的效果,JS写的。

      12种利用html5+css3打造的消息提示框效果

      这是12中风格各异的弹出消息提示框效果,使用html5和css3 animation属性制作,有各种旋转、翻转、伸展特效。效果非常华丽。

      网页右下角弹出消息的JS提示框

      采用纯JavaScript技术实现,当登录后网页的右下角弹出小型消息框,如csdn右下角的效果......或许对你很有帮助哟......

      WPF弹出带蒙板的消息框

      先看看效果图   思路 拿到父级窗体的内容,放入一个容器.../// 弹出消息框 /// /// 消息 /// 父级窗体 public static void ShowDialog(string message, Window owner) { //蒙板 Grid layer = new Grid() { Backgrou

      winform窗体位置弹出自定义、应用淡入淡出结果

      winform窗体位置弹出自定义、应用淡入淡出结果,可自定义弹出框位置和效果

      仿 qq 弹出框效果

      仿照qq,做出的弹出框,可以嵌套在网页里,做消息提醒

      大气绿色jQuery弹出框弹出层特效代码.zip

      实现效果: ...大气绿色jQuery弹出框弹出层特效代码,支持三种弹出对话框模式,即提示信息、confirm确认、 alert提示三种弹框模式,特效代码基于jQuery实现,很不错的对话框,相比ArtDialog功能弱了点。效。

      C#实现客户端弹出消息框封装类实例

      asp.net在服务器端运行,是不能在服务器端弹出对话框的,但是C#可以通过在页面输出JS代码实现弹出消息框的效果,这个C#类封装了常用的消息框弹出JS代码,可以在服务器端调用,在客户端显示对话框。不但可以显示JS的...

      jQuery实现消息弹出框效果

      本文实例为大家分享了jQuery消息弹出框的具体代码,供大家参考,具体内容如下 效果图 实现代码 &lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;!-- BootCDN提供了很...

      jBox弹窗提示框插件 多种效果

      jBox是一款多种效果的弹窗提示框插件,包含了tooltips提示框,模态窗口,图片画廊等多种效果,具体看演示。

    Global site tag (gtag.js) - Google Analytics