`
hfeeqi
  • 浏览: 13803 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

怎样弹出浮动窗口组件

阅读更多
Here's an exclusive preview just for the Conduiters who hang around the forum:
What's the most annoying thing when trying to embed parts of your site inside your toolbar (usually using HTML components)?
That you only have 20px height to work with...

Not any more!

Introducing our Floating Web Components! (that's a temporary name)
Now you can go beyond the 20px boundaries of your toolbar and create a large window with any web page in it (similar to our weather window).

That means that you can expand the real estate of your toolbar and create windows that display any web pages without being limited to the height of your toolbar.

Just think: all those cool gadgets and widgets that are now widely available on the net can be displayed from within your toolbar!
The possibilities are endless: video players, login forms, advanced search forms, Google gadgets....

Here's how to add a Floating Web Component to your toolbar:
All you need to do is add a link in this format to the URL of any component:
javascript:EBOpenPopHtml(url,width,height);

For example:
javascript:EBOpenPopHtml('http://www.cnn.com',300,400);

Simple ah?
You can add these links to any button, button with menu, or HTML Component.

Currently this only works from version 4.5.132.0 of the toolbar in IE but will be available soon in Firefox too and in Firefox from version 1.5.0.4.

Go crazy and don't forget to share what you've done with this cool new addition.
分享到:
评论
3 楼 hfeeqi 2007-04-08  
Here is a modification to the "18 item To Do List". It will open it in a sized (popup) window, which you can configure as you wish. The code consists of two .HTM(L) pages. The second goes in your toolbar, and it calls the first, which actually has the "To Do List" code. Both of these pages will need to be hosted on YOUR website !!

As stated, the actual "To Do List" code is found HERE:   http://yaldex.com/FSCookies/ToDoList.htm

This code will need to be placed within the <BODY></BODY> section of an .HTML page  called say , "todo_list.htm". The look of the page can be changed by modifying the code following the SECOND  "</script>" from the bottom.

The second page, which you will call from your toolbar, has the Javascript code needed to place the above page in a window. You could call it something like "todo.htm".

This code can be generated HERE:   http://javascript.internet.com/generators/popup-window.html

You will also need to add this code snippet in the <HEAD> section -- It will warn the user if they have Popups disabled (Popups ENABLED) is required for this to work):

Code:

<SCRIPT LANGUAGE="JavaScript">
var popWin = window.open("","ptest","width=1,height=1,left=5000,top=5000",true); 
if (popWin) { 
  popWin.blur(); 
  popWin.close(); 
} else { 
  alert("This function REQUIRES Popups. Please turn Popup Blocker OFF !!"); 
}	
</script>



You can view MY completed .HTML HERE:   http://www.tlchrist.info/toolbar/todo.htm

NOTE: You will need to open this page with an HTML editor in order to see anything !!

Finally, create a button on YOUR toolbar using the "Add Link Button". Put the FULL URL of the "Popup window script" .HTM page in the "Destination URL: " box, i.e..  "http://www.yoursite.com/toolbar/todo.htm". Add an icon, text, and a "hint", and you are finished !!
2 楼 hfeeqi 2007-04-08  
Here is a modification to the "18 item To Do List". It will open it in a sized (popup) window, which you can configure as you wish. The code consists of two .HTM(L) pages. The second goes in your toolbar, and it calls the first, which actually has the "To Do List" code. Both of these pages will need to be hosted on YOUR website !!

As stated, the actual "To Do List" code is found HERE:   http://yaldex.com/FSCookies/ToDoList.htm

This code will need to be placed within the <BODY></BODY> section of an .HTML page  called say , "todo_list.htm". The look of the page can be changed by modifying the code following the SECOND  "</script>" from the bottom.

The second page, which you will call from your toolbar, has the Javascript code needed to place the above page in a window. You could call it something like "todo.htm".

This code can be generated HERE:   http://javascript.internet.com/generators/popup-window.html

You will also need to add this code snippet in the <HEAD> section -- It will warn the user if they have Popups disabled (Popups ENABLED) is required for this to work):

Code:

<SCRIPT LANGUAGE="JavaScript">
var popWin = window.open("","ptest","width=1,height=1,left=5000,top=5000",true);
if (popWin) {
  popWin.blur();
  popWin.close();
} else {
  alert("This function REQUIRES Popups. Please turn Popup Blocker OFF !!");
}
</script>


You can view MY completed .HTML HERE:   http://www.tlchrist.info/toolbar/todo.htm

NOTE: You will need to open this page with an HTML editor in order to see anything !!

Finally, create a button on YOUR toolbar using the "Add Link Button". Put the FULL URL of the "Popup window script" .HTM page in the "Destination URL: " box, i.e..  "http://www.yoursite.com/toolbar/todo.htm". Add an icon, text, and a "hint", and you are finished !!
1 楼 hfeeqi 2007-04-08  
We implemented this in our "Horizon Toolbar" and it works fine.

http://toolbar.youthere1.com

Here are the complete instructions, simplified:

1) Enusre you have the very latest version of your Toolbar (4.5.132 for Internet Explorer).

2) Log into your Conduit account.

3) Add a new "Link Button".

4) Give your button an icon and a name.

5) Paste this in for the "Destination URL": javascript:EBOpenPopHtml('http://www.labpixies.com/campaigns/todo/todo.html',258,246);

6) Ensure "Open in new window" is un-checked.


Save your changes and that's it.

As already stated, this is an excellent component.

相关推荐

    ymprompt消息提示组件4.0【js插件弹出框美化版】

    winPos:弹出窗口的位置,支持8种内置位置(c,l,t,r,b,lt,rt,lb,rb)及自定义窗口坐标,默认为c。 各参数意义:c:页面中间,l:页面左侧,t:页面顶部,r:页面右侧,b:页面顶部,lt:左上角,rt:右上角,lb:左下角,rb:右下角 ...

    react-native-floatWindow:RN仿微信悬浮窗口

    纯RN仿微信悬浮窗口 运行这个项目 npm install react-native run-ios或react-native run-android 用法 步骤1 npm install react-native-root-siblings 第2步 将SuspensionWindow浮动块拖动到自己的浮动块上 第三...

    vue实现移动端悬浮窗效果

    touchcancel 当一些更高级别的事件发生的时候(如电话接入或者弹出信息)会取消当前的touch操作,即触发touchcancel。一般会在touchcancel时暂停游戏、存档等操作。 效果图 实现步骤 1.html 总结了一下评论,好像...

    JavaScript网页特效范例宝典源码

    1.1 弹出窗口控制 2 实例001 打开新窗口显示广告信息 2 实例002 定时打开窗口 4 实例003 通过按钮创建窗口 5 实例004 自动关闭的广告窗口 6 实例005 控制弹出窗口居中显示 7 实例006 弹出的窗口之Cookie控制 9 实例...

    delphi 开发经验技巧宝典源码

    0223 怎样弹出ConnectionString设置页 148 0224 利用ADO获取DELETE后所影响的记录数 148 7.3 业务实现数据处理技术 149 0225 随机产生中奖号码 149 0226 使用快捷键保存数据 150 0227 密码只允许输入8位...

    delphi 开发经验技巧宝典源码06

    0223 怎样弹出ConnectionString设置页 148 0224 利用ADO获取DELETE后所影响的记录数 148 7.3 业务实现数据处理技术 149 0225 随机产生中奖号码 149 0226 使用快捷键保存数据 150 0227 密码只允许输入8位...

    VB右下角托盘提示控件 用法实例.rar

    VB托盘提示控件 用法实例,显示在右下角的浮动提示窗口,可对提示窗口的时间进行设置,计时结束后自动关闭该提示窗口,可自定义提示窗口的标题和提示内容,退出时以动画方式向下滑出提示窗口,显示时向上滑出,同时...

    JQuery&CSS;&CSS;+DIV实例大全.rar

    一款支持拖拽的jQuery层弹出窗口(TipsWindown1.0版本)下载 10.分享一款jquery Ajax弹出对话框插件SimpleModal 11.下载jQuery对话框Dialog弹出层插件演示与使用说明 12.实用jQuery漂亮浮动层插件,精美Dialog...

    C#开发实例大全(基础卷).软件开发技术联盟(带详细书签) PDF 下载

    实例202 在关闭窗体时弹出确认对话框 270 实例203 隐藏应用程序在任务栏中的图标 272 实例204 实现动态系统托盘图标 272 实例205 实现气泡提示窗口 275 实例206 从桌面右下角显示的Popup窗口提醒 276 实例207 设置可...

    PHP程序开发范例宝典III

    实例086 关闭弹出窗口时自动刷新父窗口 128 实例087 在弹出的对话框中选择个性头像 130 实例088 自动关闭的广告窗口 131 实例089 关闭IE主窗口时,不弹出询问对话框 132 实例090 弹出提示对话框并重定向...

    SKkeeper:Blender Addon可自动将细分曲面修改器应用于具有多个shapekey的模型的过程

    将所有修改器应用于对象Sk:应用细分(保持Shapekey) 仅应用最顶层的细分修饰符,并保留其他修饰符Sk:应用选定的修饰符(保持Shapekey) 在对象上显示带有所有修改器的弹出窗口,仅应用您选择的修改器如果选择应用...

    Visual C++编程技巧精选集 光盘

    116.如何在视图窗口中创建弹出式跟踪菜单 117.如何在视图窗口中创建上下文快捷菜单 118.如何禁止运行默认系统菜单按钮命令 119.如何设置默认系统菜单的字体为粗体 120.如何为默认系统菜单文字添加下划线 121.如何...

    Flash CS5实例教程(第2版) 光盘

    6.1.8 库面板弹出式菜单 138 6.1.9 内置公用库及外部库的文件 139 6.2 实例的创建与应用 140 6.2.1 课堂案例——制作按钮实例 141 6.2.2 建立实例 143 6.2.3 转换实例的类型 145 6.2.4 替换实例引用的...

Global site tag (gtag.js) - Google Analytics