Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir how to put 100 websites links in one page
links come one by one 5 sec gap
Posted
Comments
Rajesh Anuhya 30-Oct-10 3:59am    
can you elaborate your Question
Sandesh M Patil 30-Oct-10 3:59am    
Please describe your question, dont get it.
nagababu maridu 30-Oct-10 4:03am    
sir web sites links like google.com .......
these links scroll one by one in webpage
show one by one with 5 seconds gap

You can use ajax for it.
Example Javascript:
var _count = 0;
var _max = 200;

var secs;
var timerID = null;
var timerRunning = false;
var delay = 5000;

var J = jQuery.noConflict();

function InitializeTimer() {
secs = 10000;
StopTheClock();
StartTheTimer();
}

function StopTheClock() {
if (timerRunning)
clearTimeout(timerID);
timerRunning = false;
}

function StartTheTimer() {

    var id = _count; 
    J.ajax({
        url: "GetNextLink.ashx",
        type: "GET",
        dataType: 'html',
        data: { 'Next': id },
        success: function (data) {
                J('#divLinks').html(J('#divLinks').html()+data);
        }
    });

_count++;

if (secs == 0) {
StopTheClock();
}
else {
if (_max == _count) {
StopTheClock();
}
else {
self.status = secs;
secs = secs – 1;
timerRunning = true;
timerID = self.setTimeout("StartTheTimer()", delay);
}
}
}


C# code
Page.ClientScript.RegisterStartupScript(this.GetType(), "javaScript", "InitializeTimer();", true);
 
Share this answer
 
Comments
nagababu maridu 30-Oct-10 5:29am    
thank u sir
you need to store these links in database/XML file. and use timer control to display these links in Label control on your home page.

I provide you the logic. :)
 
Share this answer
 
Comments
nagababu maridu 30-Oct-10 6:07am    
ok sir provide code '
babum1894@gmail.com

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