Implementing the marquee tag using jQuery

It’s time for another foray into the good old days of HTML, and we’re going to look at how to build the <marquee> tag, which has also gone for quite some time.
Again we’re going to use jQuery to help us out, so let’s see w…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

It’s time for another foray into the good old days of HTML, and we’re going to look at how to build the <marquee> tag, which has also gone for quite some time. Again we’re going to use jQuery to help us out, so let’s see what we’re building: (function($) { $.fn.textWidth = function(){ var calc = '<span style="display:none">' + $(this).text() + '</span>'; $('body').append(calc); var width = $('body').find('span:last').width(); $('body').find('span:last').remove(); return width; }; $.


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate Updates
APA

Posts on LINQ to Fail | Sciencx (2011-02-09T00:00:00+00:00) Implementing the marquee tag using jQuery. Retrieved from https://www.scien.cx/2011/02/09/implementing-the-marquee-tag-using-jquery/

MLA
" » Implementing the marquee tag using jQuery." Posts on LINQ to Fail | Sciencx - Wednesday February 9, 2011, https://www.scien.cx/2011/02/09/implementing-the-marquee-tag-using-jquery/
HARVARD
Posts on LINQ to Fail | Sciencx Wednesday February 9, 2011 » Implementing the marquee tag using jQuery., viewed ,<https://www.scien.cx/2011/02/09/implementing-the-marquee-tag-using-jquery/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Implementing the marquee tag using jQuery. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2011/02/09/implementing-the-marquee-tag-using-jquery/
CHICAGO
" » Implementing the marquee tag using jQuery." Posts on LINQ to Fail | Sciencx - Accessed . https://www.scien.cx/2011/02/09/implementing-the-marquee-tag-using-jquery/
IEEE
" » Implementing the marquee tag using jQuery." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2011/02/09/implementing-the-marquee-tag-using-jquery/. [Accessed: ]
rf:citation
» Implementing the marquee tag using jQuery | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2011/02/09/implementing-the-marquee-tag-using-jquery/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.