Results 1 to 4 of 4

Thread: [DHTML] Fuzzy Text

  1. #1
    Join Date
    May 2007
    Location
    USA
    Posts
    373
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default [DHTML] Fuzzy Text

    1) CODE TITLE: Fuzzy Text

    2) AUTHOR NAME: Trinithis

    3) DESCRIPTION: Makes text fuzzy and blurred

    4) URL TO CODE: http://trinithis.awardspace.com/fuzzyText/fuzzyText.js

    5) URL TO DEMO: http://trinithis.awardspace.com/fuzz...fuzzyText.html



    Just place the following in your page to blur your text:
    Code:
    <span><span>
    Text and other markup here
    </span></span><script type="text/javascript">fuzzyText(0)</script>
    fuzzyText(0) blurs it in the vertical direction.
    fuzzyText(1) blurs it in the horizontal direction.

    Works best without enormous font.

    Important Note: Due to an IE issue of rendering it correctly when an image is placed within the span containers, if you want the script to work properly, add this right when your BODY tag begins (so the glich works upon it instead of your actual blurred text and image):
    Code:
    <span style="display:none"><span>
    <img src="someRandomImageHere.jpg" alt="" />
    </span></span><script type="text/javascript">fuzzyText(0)</script>

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    	c = o.getElementsByTagName("*")[0];
    Might be better to use o.firstChild and o.firstChild.nextSibling until you get an element, I hear some browsers have problems with getElementsByTagName("*").
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    This whole things seems rather pointless except as an exercise in coding (which can be important in itself). For one thing, most people prefer to be able to read the text, making it fuzzy isn't of much use. And, if there were some overriding need for it, simple markup and css can achieve it without the need for javascript.

    Oh, and wasn't his show cancelled?
    - John
    ________________________

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

  4. #4
    Join Date
    May 2007
    Location
    USA
    Posts
    373
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default

    Farscape ran for four seasons and got canceled. Then they made a miniseries to finish the show. Scorpie is the coolest villain evar!

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
  •