2011-02-25 241 views

回答

1

什么是'快捷菜单'?是否意味着列表项上下文菜单或其他东西?你可以张贴截图吗?

  • 有两种类型的链接使用。

  • 正常的HTML定位点 - 点击时可以按住CTRL键。

JavaScript链接(菜单等)的CTRL键不起作用。如果你与编辑/查看的形式工作,那么这可能会感兴趣

特别是寻找在那里谈论改变列表设置>高级设置>对话框这种行为第二部分

1

这实际上是一个Internet Explorer特定的错误。 SharePoint 2010中的导航链接是常规链接,但链接文本周围有两个嵌套的范围标签。这混淆了IE,它没有意识到你正在右键单击的文本是一个链接,所以没有给出正确的上下文菜单。如果右键单击链接文本的左侧(游标仍应显示为“手形”),上下文菜单将按预期显示。

3

使用JavaScript函数在SharePoint 2010

打开一个新窗口创建函数打开目标窗口,如下面的示例提供。

function load_url(externallink) 
{ 
    window.open(externallink,target='_blank') 
} 

将在JavaScript函数load_url文件

点击网站操作,选择管理内容和结构。 假设您想要更改页面中的链接 http://someserver/sites/Dev/Help/HelpLinks/AllItems.aspx

然后在子站点帮助中选择名为HelpLinks的列表。 Dev将成为最顶级的节点(站点)。帮助将是一个子网站和内部帮助你可以找到按名称列表HelpLinks

  1. 页面中所有的链接,他们的名称将显示

  2. 选择要在新标签页,右键点击打开链接的标题。

  3. 选择编辑属性。然后,在URL字段和调用功能javascript:load_url('http://www.google.co.in');代替http:// www.google.co.in

否则 假设你想改变在下面的网址链接。 URL: http:// someserver/sites/Dev/Help/HelpLinks/AllItems.aspx

转到

  1. 开放链接http:// someserver/sites/Dev/Help/HelpLinks/AllItems.aspx

  2. 你会发现列表的列(标题栏,URL栏,摘要等)。

  3. 选择标题,然后单击要编辑

  4. 然后在URL字段编辑属性和调用功能javascript:load_url('http://www.google.co.in');代替http:// www.google.co.in

-1

这个加入的结束链接。

#openinnewwindow

例如:http://www.bing.com**#openinnewwindow

0

在SharePoint维基编辑器,你可以单击“发件人地址”您添加链接和链接菜单将出现在功能导航栏。在那里,你可以点击“在新标签中打开”这不是新窗口,但它非常简单。

1

这个答案是这篇文章的概括,而不是我想出了一个答案:http://sharepointsolutions.blogspot.com/2007/09/make-selected-links-in-links-list-open.html

第1步:添加#openinnewwindow您要在新窗口中打开所有超链接的结束。

第2步:然后,您需要将后续脚本添加到您的SharePoint页面。 (!&resoundly调升) - :用于将细节感谢

[script language = "JavaScript"] 
 

 
//add an entry to the _spBodyOnLoadFunctionNames array 
 
//so that our function will run on the pageLoad event 
 
_spBodyOnLoadFunctionNames.push("rewriteLinks"); 
 

 
function rewriteLinks() { 
 
    //create an array to store all the anchor elements in the page 
 
    var anchors = document.getElementsByTagName("a"); 
 

 
    //loop through the array 
 
    for (var x = 0; x < anchors.length; x++) { 
 
    //does this anchor element contain #openinnewwindow? 
 
    if (anchors[x].outerHTML.indexOf('#openinnewwindow') > 0) { 
 
     //store the HTML for this anchor element 
 
     oldText = anchors[x].outerHTML; 
 
     //rewrite the URL to remove our test text and add a target instead 
 
     newText = oldText.replace(/#openinnewwindow/, '" target="_blank'); 
 
     //write the HTML back to the browser 
 
     anchors[x].outerHTML = newText; 
 
    } 
 
    } 
 
} 
 
[/script]

+0

精彩为我们的伟大工程 – whytheq 2017-12-11 13:18:13

相关问题