Handy Plug-ins Category
Needed to finish up a web project for my client. I was asked to embed videos with various format types including “wmv”, “mov”, “swf”, ‘flv”, “f4v” and etc. And some requirements are to show play controller, to auto-start. wmv and swf can be easily done by coping and pasting some code to embed the video files. After some research, I found JW Player is a very well-written Javascript library to support video embedding on the web. It covers all five media types I need, and it also can play mp4, 3gp and etc. The player interface is also user-friendly. The best thing is that it is very easy to be used and customized...
Read MoreI found this little PHP library fileĀ is very useful. It can read through the whole HTML file through DOM object. And user can also read part of HTML file by using div id + class. Once file is read, HTML tag element can be located, and tag attributes and values can be found as well. It also supports to change the tag attribute value so that user can use this library to update and change HTML file properties dynamically. ======================================= How to get HTML elements // Create DOM from URL or file $html = file_get_html(‘http://www.google.com/’); // Find all images foreach($html->find(‘img’) as $element) echo $element->src ....
Read More