在共享点中添加JavaScript代码 [英] To Add JavaScript code in share point

查看:69
本文介绍了在共享点中添加JavaScript代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经配置了搜索配置并创建了搜索中心网站集.

I have configured search configuration and created search center site collection.

需要添加与搜索结果相关的Java脚本代码.

needs to add Java script code for search result related.

https://social.technet.microsoft.com/Forums/zh-CN/e41ae3f5-9532-4549-abf8-0e10855262f2/change-the-link-企业搜索中心中的标题图标?forum = sharepointadmin以前的

请告诉我,我应该在哪里添加Javascript代码.

<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $("#id").attr("href","http://www.baidu.com"); }); </script>


推荐答案

因此,您想要执行该线程中描述的操作,请更改搜索中心的图标,但请更改为2013您需要帮助吗?

So you want to do what is described in that thread, change the icon for the search centre, but for 2013 and you need some help?

您应该在页面底部添加内容编辑器Web部件.在该CEWP中,您可以添加该脚本代码.您可能需要更新#id值,因为我不确定2013年的ID是否与2010年的ID相同.

You should add a Content Editor Web Part to the bottom of the page. In that CEWP you can add that script code. You may need to update the #id value as i'm not sure it is the same ID in 2013 as it was in 2010.


这篇关于在共享点中添加JavaScript代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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