/    Sign up×
Community /Pin to ProfileBookmark

javascrpt text scroller only scroll once ?

Hello,

I want to alter the below code so that it only scrolls once even if the page is reloaded.

<script language=”JavaScript”>
<!– Start script
var ms = navigator.appVersion.indexOf(“MSIE”);
from = 600;
to = 20;
moveto = 20;
function move1() {
if (from > to) {
if ((ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)) {
document.all.texte.style.left = (from -= moveto);
} else {
document.texte.left = (from -= moveto);
};
setTimeout(‘move1(‘ + from + ‘,’ + to + ‘,’ + moveto + ‘)’, 75);
}
}
// End script –>
</script>

<body onLoad=”move1()”>


——

Any suggestions would be greatly appreciated.

Thanks

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@justinbarneskinNov 21.2006 — remove this;

[COLOR=DarkRed]else {

document.texte.left = (from -= moveto);

};[/COLOR]
×

Success!

Help @kat24 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.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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