![]() |
|
Thread Tools |
#1
|
||||
|
||||
LazyLoad Youtube BB Code
I've got a number of threads that are predominantly videos, for example a 'Movie Trailers' thread I have the board automatically post to from a youtube RSS feed. It doesn't take many before it starts to crawl. Wrapping them in 'spoiler' tags help, but it's an ugly workaround.
I've got a lazyload concept working, but I'm not too familiar with jquery/javascript and it's very simplistic. http://www.landthieves.com/board/showthread.php?70130 A single div with the dimensions of the player and the youtube thumbnail set as the background. Clicking the div fires the jquery .html() to insert the youtube iframe which autoplays. jfiddle: http://jsfiddle.net/9t2q7/13/ I know inline script is frowned upon, especially when redundant, but I'm using the {param} to give the div a unique ID on top of the embed/thumbnail. Is there a more efficient way of doing this?
__________________
http://www.LandThieves.com No members have liked this post.
|
#2
|
|||
|
|||
Did you get any further with this?
__________________
Get running or get better at running - Import video game news and friendly discussion - Sport kit reviews No members have liked this post.
|
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
BB Code Enhancements Youtube Subscribe BB code | OUTL4W | vBulletin 4.x Add-ons | 1 | 22 Nov 2013 20:10 |
BB Code Enhancements Widescreen Youtube BB Code | fattony69 | vBulletin 3.7 Template Modifications | 10 | 23 Aug 2009 11:23 |
BB Code Enhancements Youtube bb channel code | ti07shadow | vBulletin 3.8 Add-ons | 2 | 21 Jul 2009 08:43 |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 10:45.