Click here to Skip to main content
15,949,686 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: getting error when typing in userid field. Pin
vikas25107422-Jun-08 22:03
vikas25107422-Jun-08 22:03 
Questionauto scroll ifram Pin
erickislam20-Jun-08 7:25
erickislam20-Jun-08 7:25 
GeneralRe: auto scroll ifram Pin
Brook.Zhang30-Jun-08 20:50
Brook.Zhang30-Jun-08 20:50 
QuestionHow does The Code Project compose newsletter emails? Pin
nofacts20-Jun-08 7:05
nofacts20-Jun-08 7:05 
AnswerRe: How does The Code Project compose newsletter emails? Pin
Chris Maunder24-Jun-08 4:09
cofounderChris Maunder24-Jun-08 4:09 
GeneralRe: How does The Code Project compose newsletter emails? Pin
nofacts24-Jun-08 7:03
nofacts24-Jun-08 7:03 
GeneralRe: How does The Code Project compose newsletter emails? Pin
Chris Maunder24-Jun-08 9:34
cofounderChris Maunder24-Jun-08 9:34 
QuestionJavascript Help?? Pin
Imran Adam20-Jun-08 1:43
Imran Adam20-Jun-08 1:43 
Hi
I would like to know "how to stop vertical scrolling text in javascript after one iteration". What i have is the text that scrolls continuously, and i want it to make it stop at the top of the box.

How can i acheive this effect??

This is the javascript i have;


<script language="JavaScript">

function getObject( obj ) {

var strObj

if ( document.all ) {

strObj = document.all.item( obj );

} else if ( document.getElementById ) {

strObj = document.getElementById( obj );

}

return strObj;

}

var theTop = 200;
var theHeight = 100;
var theWidth = 150;
var theLeft = 350;
var toClip = 200;

function scrollNews( newsDiv, toMove )
{

theDiv = getObject( newsDiv.toString() );

if ( theDiv == null )
{
return;
}

if ( document.layers )
{
theDiv.clip.top = toMove;
theDiv.clip.bottom = toMove + toClip;
theDiv.top = theTop - toMove;
}
else
{
theDiv = theDiv.style;
theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";
theDiv.top = theTop - toMove + 'px';
}
if ( ( theTop + theHeight - toMove ) < ( theTop - theHeight - 20 ) )
{
toMove = 0;
if ( document.layers )
{
theDiv.clip.top = theTop;
theDiv.clip.bottom = toClip;
theDiv.top = theTop
}
else
{
theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";
theDiv.top = theTop + 'px';
}
}
toMove = (toMove + 2); //speed of scroll
setTimeout("scrollNews('" + newsDiv + "'," + toMove + ")", 100);
}
</script>

Any help is much appreciated Smile | :)
QuestionAccessing Remote IIS through IIS Pin
karthi8420-Jun-08 1:15
karthi8420-Jun-08 1:15 
QuestionREG OWA webpart Pin
manikandanid19-Jun-08 5:50
manikandanid19-Jun-08 5:50 
Questionhelp regarding web hosting. Pin
chandu00419-Jun-08 2:18
chandu00419-Jun-08 2:18 
AnswerRe: help regarding web hosting. Pin
Ashfield19-Jun-08 6:35
Ashfield19-Jun-08 6:35 
AnswerRe: help regarding web hosting. Pin
Shog919-Jun-08 6:35
sitebuilderShog919-Jun-08 6:35 
QuestionConfiguring IIS Pin
Puneri19-Jun-08 2:00
Puneri19-Jun-08 2:00 
Questioncreating word document using c#/ vb/ crystal reports Pin
Puneri19-Jun-08 1:42
Puneri19-Jun-08 1:42 
AnswerRe: creating word document using c#/ vb/ crystal reports Pin
Ashfield20-Jun-08 1:26
Ashfield20-Jun-08 1:26 
QuestionUsing central storage for Web Farm, Performance Impacts? Pin
orbatech18-Jun-08 21:35
orbatech18-Jun-08 21:35 
QuestionClient Handling by IIS Pin
sreeraghavendra18-Jun-08 18:58
sreeraghavendra18-Jun-08 18:58 
AnswerRe: Client Handling by IIS Pin
Ashfield18-Jun-08 21:28
Ashfield18-Jun-08 21:28 
QuestionWeb Form design Pin
Assaf8218-Jun-08 3:40
Assaf8218-Jun-08 3:40 
GeneralRe: Web Form design Pin
Hesham Amin18-Jun-08 21:53
Hesham Amin18-Jun-08 21:53 
QuestionI am not getting the id value.... Pin
r aa j18-Jun-08 0:09
r aa j18-Jun-08 0:09 
Questionproblems with asp:hyperlink Pin
livez17-Jun-08 21:27
livez17-Jun-08 21:27 
AnswerRe: problems with asp:hyperlink Pin
Shog918-Jun-08 15:53
sitebuilderShog918-Jun-08 15:53 
QuestionHow to Grade Student Marks Pin
wisdom_deku17-Jun-08 5:22
wisdom_deku17-Jun-08 5:22 

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.