简体   繁体   English

将鼠标悬停在Webpart中显示的图像上时,显示Sharepoint库中的图像

[英]display image from a Sharepoint library on mouseover on the image displayed in webpart

I have two Picture Libraries. 我有两个图片库。 One has pictures and the other contains the thumbnails created programmatically by me. 一个包含图片,另一个包含我以编程方式创建的缩略图。 I am displaying the thumbnails into a custom webpart. 我正在将缩略图显示到自定义Webpart中。 I need to display the original pictures on mouseover on the thumbnails displayed in webpart and the originals displayed should dissappear on mouse out. 我需要在鼠标悬停在Webpart上显示的缩略图上显示原始图片,并且在鼠标移出时显示的原图应该消失。

Please Help. 请帮忙。 I am a new sharepoint developer 我是新的Sharepoint开发人员

You don't need to create separate PictureLibrary for thumbnails, SharePoint will do it automatically for you. 您无需为缩略图创建单独的PictureLibrary,SharePoint将自动为您创建。 So when you upload images to Picture Library 'ABC', SharePoint will create two hidden folders inside ABC folder: _t for thumbnails (path: ABC/_t/) and _w for previews (path: ABC/_w/). 因此,当您将图像上传到图片库“ ABC”时,SharePoint将在ABC文件夹内创建两个隐藏文件夹:_t用于缩略图(路径:ABC / _t /),_w用于预览(路径:ABC / _w /)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM