[thelist] Scrolling ticker
Erik Mattheis
gozz at gozz.com
Thu Jun 7 20:43:08 CDT 2007
How about if you forget about pixels and do something like this pseudocode:
doStuff() {
Wait()
myCurrentAchor++
scrollMe()
doStuff()
}
myNextAnchorFunction() {
myCurrentAchor++
scrollMe()
resetWait()
doStuff()
}
myPreviousAnchorFunction() {
myCurrentAchor--
scrollMe()
resetWait()
doStuff()
}
scrollMe() {
slideToAnchor(myCurrentAnchor)
}
I find tickers that pause for you to read them to be easier to read anyway.
- Erik
----- Original Message -----
From: "Robert Gormley" <robert at pennyonthesidewalk.com>
To: <thelist at lists.evolt.org>
Sent: Thursday, June 07, 2007 12:15 PM
Subject: [thelist] Scrolling ticker
The DIV is much bigger than its viewport, and we're scrolling by
adjusting its position, pulling it through x pixels every x msec.
If I could walk the DOM tree and get left value for each A (can't do it
on char count, because of proportional fonts, etc), then I could
determine which is "next" by finding which one is just outside of the
right of the viewport, and previous by the one which is just outside of
the left of the viewport, because I know the current offset of the DIV,
as I'm using it for scrolling.
--
I am using the free version of SPAMfighter for private users.
It has removed 26596 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len
More information about the thelist
mailing list