/    Sign up×
Community /Pin to ProfileBookmark

JS: Scroll Ticker Loop Help

I need help to make this script automatically loop and not stop after its done scrolling. Upon load, I want it to begin scrolling and right now it doesn’t.

[url]http://www.gdevresources.com/Pages/…DScroller.shtml[/url]

Its the SINGLE SCROLLER demo

any help to make it loop upon start?

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@PittimannJul 05.2004 — Hi!

Your link is broken; would you please post it again?

Cheers - Pit
Copy linkTweet thisAlerts:
@PittimannJul 05.2004 — Hi!

That snippet uses a modified scroll down function and starts without clicking something: http://www.pit-r.de/scripts/scrolls/verticalScroller987.htm

The function to scroll up can be modified accordingly.

There are 1000's of scroll scripts in the net, I am sure you will find one which does what you need without requiring modifications.

Cheers - Pit
Copy linkTweet thisAlerts:
@chugger93authorJul 05.2004 — Hey what script is that, that u posted? Did you modify it for me so that it loops upon startup? I think thats perfect for what I need now. Thanks! ? ?
Copy linkTweet thisAlerts:
@chugger93authorJul 06.2004 — also, if i wanted the buttons on the right hand side, is there a way to do it?

I know the table tags go somewhere after
<i>
</i>document.write('&lt;div id="container" style="position:relative;width:40%;height:160px;overflow:hidden;border:4px ridge white"&gt;')


Just not sure how to make it work ?
Copy linkTweet thisAlerts:
@PittimannJul 06.2004 — Hi!Hey what script is that, that u posted?[/QUOTE]It is "your script".

I have modified the second scroll function as well and put the controls on the right side: http://www.pit-r.de/scripts/scrolls/verticalScroller987.htm

Cheers - Pit
Copy linkTweet thisAlerts:
@chugger93authorJul 06.2004 — Perfect! Thanks alot!!

Last question I promise

Im having a problem with my javascript code.

[b](See the attached graphic for an understanding)[/b]

Everytime I click on Bold, Italic etc, in sentence 2 3 4 or whatever. The javascript command puts it in textarea 1 instead of 2 3 or 4.

How can I make it so that, if I click on Bold, Italic etc, the appropriate command will goto the appropriate textarea?? :mad:



<i>
</i>&lt;SCRIPT LANGUAGE="JavaScript"&gt;

&lt;!-- Begin
function View(form) {
msg=open("","DisplayWindow","status=1,scrollbars=1");
msg.document.write(form.Text2.value);
}
function Generate(form) {
var txt="&lt;html&gt;&lt;HEAD&gt;&lt;TITLE&gt;"+form.Name.value+"&lt;/TITLE&gt;&lt;/HEAD&gt;rn";
txt+="&lt;/font&gt;&lt;/body&gt;&lt;/html&gt;";
form.Text2.value=txt;
}
function AddText(form, Action){
var AddTxt="";
var txt="";

if(Action==4) { <br/>
txt=prompt("Text to be made BOLD.","Text"); <br/>
if(txt!=null) <br/>
AddTxt="&lt;b&gt;"+txt+"&lt;/b&gt;"; <br/>
}
if(Action==5) { <br/>
txt=prompt("Text to be italicized","Text"); <br/>
if(txt!=null) <br/>
AddTxt="&lt;i&gt;"+txt+"&lt;/i&gt;"; <br/>
}
if(Action==6) AddTxt="rn&lt;p&gt;";
if(Action==7) AddTxt="&lt;BR&gt;rn";
if(Action==8) AddTxt="&lt;hr&gt;rn";
if(Action==9) { <br/>
txt=prompt("URL for the link.","http://"); <br/>
if(txt!=null){ <br/>
AddTxt="&lt;a href="+txt+"&gt;"; <br/>
txt=prompt("Text to be show for the link","Text"); <br/>
AddTxt+=txt+"&lt;/a&gt;rn"; <br/>
}
}
if(Action==10) {
txt=prompt("URL for graphic","URL"); <br/>
if(txt!=null) <br/>
AddTxt="&lt;img src="+txt+"&gt;rn";
}
if(Action==11) { <br/>
txt=prompt("Text to be made Underline.","Text"); <br/>
if(txt!=null) <br/>
AddTxt="&lt;u&gt;"+txt+"&lt;/u&gt;"; <br/>
}

form.sent1.value+=AddTxt;

}

// End --&gt;
&lt;/SCRIPT&gt;


[code=php]
<table border='1' width='50%' align='left' cellspacing='1' cellpadding='3'>
<tr>
<td width='100' align='left'><b>$CONFIGURESENTENCE1</b></td>
<td width='240' colspan='2'>
<input type='button' value='Link' onClick='AddText(this.form,9);'>
<input type='button' value='Bold' onClick='AddText(this.form,4);'>
<input type='button' value='Italic' onClick='AddText(this.form,5);'>
<input type='button' value='Underline' onClick='AddText(this.form,11);'>
</td>

</tr>
<tr>
<td width='100' align='left'>$Sentence:</td>
<td width='160'>

<textarea name='sent1' rows='7' cols='33'>$sent1</textarea>
</td>
<td width='225'>$expsentence</td>
</tr>
<tr>
<td width='100' align='left'><b>$CONFIGURESENTENCE2</b></td>
<td width='240' colspan='2'>
<input type='button' value='Link' onClick='AddText(this.form,9);'>
<input type='button' value='Bold' onClick='AddText(this.form,4);'>
<input type='button' value='Italic' onClick='AddText(this.form,5);'>
<input type='button' value='Underline' onClick='AddText(this.form,11);'>
</td>
</tr>
[/code]


[upl-file uuid=15e59957-30f5-45dc-afc7-9f54bb1b8974 size=83kB]test2.gif[/upl-file]
Copy linkTweet thisAlerts:
@chugger93authorJul 06.2004 — Pittimann ? plz help if u can or anyone else for that matter :o
×

Success!

Help @chugger93 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...