Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi every one,

here i created a slideshow where image is static all i need is that image should be taken from picture lib dynamically and top 5 images in the pic lib should be in slide show

<script type="text/javascript">
    //preload images
    var image1 = new Image()
    image1.src = "../_layouts/15/images/MySlide/1.jpg"
    var image2 = new Image()
    image2.src = "../_layouts/15/images/MySlide/2.jpg"
    var image3 = new Image()
    image3.src = "../_layouts/15/images/MySlide/3.jpg"
    var image4 = new Image()
    image4.src = "../_layouts/15/images/MySlide/4.jpg"
<a href="javascript:slidelink()">
<img src="../_layouts/15/images/MySlide/1.jpg" name="slide" border="0" width="700" height="300" /></a>
<script type="text/javascript">
    var step = 1
    var whichimage = 1
    function slideit() {
        if (!document.images)
        document.images.slide.src = eval("image" + step + ".src")
        whichimage = step
        if (step < 4)
            step = 1
        setTimeout("slideit()", 1800)
    function slidelink() {
        if (whichimage == 1)
            window.location = "link1.htm"
        else if (whichimage == 2)
            window.location = "link2.htm"
        else if (whichimage == 3)
            window.location = "link3.htm"
        else if (whichimage == 4)
            window.location = "link4.htm"


can anybody help creating slideshow in share point visual web-part where image should be taken from picture library or site assets.

please help ASAP....

Thanks in advance
Updated 26-Aug-13 20:00pm
Richard C Bishop 26-Aug-13 14:26pm    
And what do you suppose we help you with? You have not provided any sort of information that could be examined for suggestions.
[no name] 26-Aug-13 14:59pm    
And what have you attempted to do do this yourself? Anything? Why ASAP? Is your assignment due tomorrow?
Member 10233361 27-Aug-13 6:00am    
hi richcb,

this is my task as i tried in many ways by using repeater control and other query i am finding hard in this so one of the post i tried i posted there can you please help me in this and i have to complete the task by EOD,

thanks in advance
Member 10233361 26-Aug-13 15:03pm    
hi sorry for the delay, i have created a webpart using static images where images coming from layouts all i need is that the images should come from sp pic lib or site assets and the top 5 images should be there in slideshow. i hope you understand my question
Member 10233361 27-Aug-13 14:01pm    
Please help me on this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900