[急]内容编辑器显示弹出窗口 [英] [Urgent]content editor to display popup

查看:61
本文介绍了[急]内容编辑器显示弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过弹出窗口通知moss2007网站用户将网站移动到新位置,以便看起来明显可见。请帮助 



Blitz

I need to notify the moss2007 site users with popup that the site is moved to new location so that things look obviously visible.Please help 


Blitz

推荐答案

Hi Blitz,

Hi Blitz,

以下是在内容编辑器Web部件中添加模式对话框的演示:

Here is a demo to add a modal dialog in content editor web part:

<a href="javascript:openInModalDialog()">The Site moved to a new location, click here to learn more</a>

 <script type="text/javascript">

function openInModalDialog()

{

  var url = "http://newsite";

  commonShowModalDialog(url,"resizable: no; status:no; scroll: no; help: no; center: yes; dialogwidth:800px; dialogHeight:500px;",RetrieveItemValue);

}

function RetrieveItemValue(retValue) {

    alert(retValue); /* here do what you want */

}

</script>

根据我的测试,它适用于SharePoint 2010,您可以检查它是否在MOSS 2007中有效。

Per my test, it works in SharePoint 2010, you can check if it works in MOSS 2007.

此外,这里有一些类似的帖子供您参考:

Besides, here are some similar post for your reference:

http://swatipoint.blogspot.com/2011/07/modal-popup- with-content-editor-webpart.html

http://www.sharepointbinder.com/blog/how-to-create-a-pop-up

祝你好运,

Grace Wang

Grace Wang


这篇关于[急]内容编辑器显示弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆