Click here to Skip to main content
15,899,126 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAdd image and to dropdown Pin
Elham M14-Dec-12 5:03
Elham M14-Dec-12 5:03 
AnswerRe: Add image and to dropdown Pin
CommDev15-Dec-12 20:22
CommDev15-Dec-12 20:22 
GeneralRe: Add image and to dropdown Pin
Elham M16-Dec-12 21:14
Elham M16-Dec-12 21:14 
Questionbest SlideShow control Pin
Jassim Rahma14-Dec-12 2:22
Jassim Rahma14-Dec-12 2:22 
AnswerRe: best SlideShow control Pin
Elham M14-Dec-12 4:56
Elham M14-Dec-12 4:56 
GeneralRe: best SlideShow control Pin
Jassim Rahma14-Dec-12 5:14
Jassim Rahma14-Dec-12 5:14 
GeneralRe: best SlideShow control Pin
Elham M15-Dec-12 1:20
Elham M15-Dec-12 1:20 
AnswerRe: best SlideShow control Pin
jkirkerx14-Dec-12 13:12
professionaljkirkerx14-Dec-12 13:12 
Most here on the CodeProject write their own programs for everything, such as slideshows, few purchase anything for use.

Slideshows are just a div tag element with an image tag inside, in which you use javascript to change the image source, and to tween the image up down left or right.

You can then make it more complex by adding something to store various image file locations, such as a xml file, and rotate through the record elements.

I had some slide show code from a project I had to upgrade, in which the slideshow was the only thing that worked. Actually now that I think about it, I had to fix that as well, was poorly written. Requires JQuery 1.8.2. I don't have the CSS for it anymore.

I think this had a container called slider_Container, and 4 div tags inside it, in which in moved the div inside the container. It's written in Jquery, and will not work with an update panel on the page, because you have to edit the file below to handle the UP events when they fire.

<div id="_slider_Container">
   <div id="slide0"><img /></div>
   <div id="slide1"><img /></div>
   <div id="slide2"><img /></div>
   <div id="slide3"><img /></div>
</div>

$(document).ready(function () {
    
    var slideContainer = $('[id*="_slider_container"]');
    var slidesHolder = $(slideContainer).children();
    var slideWidth = $(slideContainer).width();
    var slides = $(slidesHolder).children();
    var slidePos = 0;    
    var slideTotal = slides.length;
    var currentSlide = 0;
    var delay = 5000;
    var slideTime = 1000;

    $(slideContainer).css({
        'overflow': 'hidden',
        'position': 'relative'
    });

    $(slidesHolder).css({
        'position': 'absolute'
    });

    for (var i = 0; i < slides.length; i++) {
        $(slides[i]).css({
            'position': 'absolute',
            'top': '0',
            'left': slidePos + 'px'
        });
        slidePos = slidePos + slideWidth;
    }

    $(slidesHolder).css('width', slidePos + slideWidth);

    $(slides).first().clone().css({
        'left': slidePos + 'px'
    }).appendTo(slidesHolder);

    animate();

    function animate() {
        $(slidesHolder).delay(delay).animate({
            left: '-=' + slideWidth
        }, slideTime, function () {
            if (currentSlide < slideTotal - 1) {
                currentSlide++;
                animate();
            } else {
                $(slidesHolder).css({
                    'left': 0
                });
                currentSlide = 0;
                animate();
            }
        });
    }

});

Questionjava script validation Pin
shakti das13-Dec-12 21:34
shakti das13-Dec-12 21:34 
AnswerRe: java script validation Pin
ujju.113-Dec-12 23:27
ujju.113-Dec-12 23:27 
AnswerRe: java script validation Pin
Elham M15-Dec-12 1:36
Elham M15-Dec-12 1:36 
QuestionImproving the performance in ASP.Net app Pin
maheshdb8413-Dec-12 4:47
maheshdb8413-Dec-12 4:47 
AnswerRe: Improving the performance in ASP.Net app Pin
David Mujica13-Dec-12 4:56
David Mujica13-Dec-12 4:56 
GeneralRe: Improving the performance in ASP.Net app Pin
maheshdb8413-Dec-12 7:50
maheshdb8413-Dec-12 7:50 
GeneralRe: Improving the performance in ASP.Net app Pin
David Mujica13-Dec-12 10:44
David Mujica13-Dec-12 10:44 
AnswerRe: Improving the performance in ASP.Net app Pin
jkirkerx13-Dec-12 10:35
professionaljkirkerx13-Dec-12 10:35 
QuestionDsSmoothMenu and ASP.Net Pin
#realJSOP13-Dec-12 2:00
professional#realJSOP13-Dec-12 2:00 
QuestionPSD to ASPX Pin
Yoyosch13-Dec-12 2:00
Yoyosch13-Dec-12 2:00 
AnswerRe: PSD to ASPX Pin
jkirkerx13-Dec-12 11:00
professionaljkirkerx13-Dec-12 11:00 
GeneralRe: PSD to ASPX Pin
Yoyosch13-Dec-12 21:55
Yoyosch13-Dec-12 21:55 
GeneralRe: PSD to ASPX Pin
jkirkerx14-Dec-12 7:57
professionaljkirkerx14-Dec-12 7:57 
QuestionRemember me so I don't have to log on again Pin
VishwaKL12-Dec-12 23:37
VishwaKL12-Dec-12 23:37 
QuestionASP.NET Local Storage save a item of DataSet XML failture Pin
akira3212-Dec-12 18:56
akira3212-Dec-12 18:56 
QuestionASP.NET VB cannot change Label'sText by Javascript Pin
akira3212-Dec-12 16:36
akira3212-Dec-12 16:36 
Questionmobile website Pin
johnson_shalom11-Dec-12 23:09
johnson_shalom11-Dec-12 23:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.