Advanced Search

Results 1 to 5 of 5

Thread: [DHTML] Circling text trail UPDATE

  1. #1
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,687
    Thanks
    43
    Thanked 3,129 Times in 3,095 Posts
    Blog Entries
    12

    Default [DHTML] Circling text trail UPDATE

    1) CODE TITLE: Circling text trail

    2) AUTHOR NAME/NOTES: Tim Tilton - updated by jscheuer1

    3) DESCRIPTION: Just an update to Tilton's outdated script. It uses the original's math for the trail, more or less, but is updated:

    It's more configurable, now uses DOM level 2 to make the trail, exposes no global variables, follows the cursor even on wide pages, and works in modern browsers with or without a valid URL DOCTYPE.

    4) URL TO CODE: http://home.comcast.net/~jscheuer1/s...ext_update.htm

    or, ATTACHED BELOW (see #3 in guidelines below):
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  2. #2
    Join Date
    Aug 2004
    Posts
    9,863
    Thanks
    3
    Thanked 960 Times in 949 Posts
    Blog Entries
    15

    Default

    Nice update! It even works in IE8 beta2 btw, which I've found trips up quite a few scripts that deal with CSS positioning. I've gone ahead and updated the script on DD to match: http://www.dynamicdrive.com/dynamici...circletext.htm

    p.s: I never realized this until now, but orientation wise the script has always shown the circling message in a "mirror writing" way whenever the text comes into the foreground. Probably an error in the Math the original author either didn't realize, or realized too late into writing the script. lol
    DD Admin

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,687
    Thanks
    43
    Thanked 3,129 Times in 3,095 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by ddadmin View Post
    Nice update!
    Thanks!

    Quote Originally Posted by ddadmin View Post
    I never realized this until now, but orientation wise the script has always shown the circling message in a "mirror writing" way whenever the text comes into the foreground. Probably an error in the Math the original author either didn't realize, or realized too late into writing the script. lol
    Well, if I understand what you are saying, yes and no. I think Tim just liked the way it looked with the upper portion of the circle/oval being able to be read LTR. However, Tim also provided (and I preserved, from the update code):

    Code:
    // Rotation speed, set it negative if you want it to spin clockwise (decimals allowed)
    var rotation = 0.4;
    So, if you want the lower portion of the circle/oval to read LTR, just use a negative value for 'rotation'. Of course, this will make the upper portion RTL, but in a rotating circle/oval, you cannot have both upper and lower go in the same direction.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    May 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi, I was trying to figure out how to make the trailing text automatically stop (or buzz off) after a period of time, (so it dosent become too annoying)
    using the javascript setTimeout,
    though my brain is too small to get that in the right spot, can someone please help me,

    I did wonder if setTimeout may leave the chars on screen, which obviously one would not want.

    Thanks, Garry
    Outback Central Australia.

  5. #5
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    47
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Hi Garry,
    You should create a new thread in dd scripts help for this.
    Bernie
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •