Octubre
21
Realizando pruebas de plugin para insertar videos de Google.
Código PHP
function detect_type($str, $type_req = ''){ return ($type === $type_req) ? TRUE : FALSE; } // end fun
Código HTML
<div id="headnav"> <a href="/"> src="http://static.php.net/www.php.net/images/php.gif" alt="PHP" width="120" height="67" /> </a> <div id="headmenu"> <a href="/downloads.php">downloads</a> | <a href="/docs.php">documentation</a> | <a href="/FAQ.php">faq</a> | <a href="/support.php">getting help</a> | <a href="/mailing-lists.php">mailing lists</a> | <a href="http://bugs.php.net/">reporting bugs</a> | <a href="/sites.php">php.net sites</a> | <a href="/links.php">links</a> | <a href="/my.php">my php.net</a> </div> </div>
Código JAVASCRIPT
for (var i = 0; i < children.length; i++) { var child = children[i]; var classNames = child.className.split(' '); for (var j = 0; j < classNames.length; j++) { if (classNames[j] == className) { elements.push(child); break; } } }