Esto es lo que estoy usando como Javascript:
Código HTML:
Ver original
<?php wp_enqueue_script('script', get_template_directory_uri() . '/js/featuredcontentglider.js', 'jquery', false); ?> <script language="javascript"> $(document).ready(function() { }); </script> <script type="text/javascript"> $(document).ready(function() { $("ul#topnav li").hover(function() { //Hover over event on list item $(this).css({ 'background' : '#e10f12', 'color' : '#ffffff'}); //Add background color + image on hovered list item $(this).find("span").show(); //Show the subnav } , function() { //on hover out... $(this).css({ 'background' : 'none'}); //Ditch the background $(this).find("span").hide(); //Hide the subnav }); }); </script> <script> $(document).ready(function(){ $('.bxslider').bxSlider(); }); </script> <script> $(function(){ $('#slider-id').codaSlider(); }); </script> <script> $(function(){ $('#slider-id2').codaSlider(); }); </script> <script> $(function(){ $('#slider-id3').codaSlider(); }); </script> <script> $(function(){ $('#slider-id4').codaSlider(); }); </script> <script> var cssLink = document.createElement("link") cssLink.href = "<?php bloginfo('template_directory'); ?>/style.css"; cssLink .rel = "stylesheet"; cssLink .type = "text/css"; frames['HVWIframe'].document.body.appendChild(cssLink); </script> $(document).ready(function(){ // Target your .container, .wrapper, .post, etc. $(".cn_ct").fitVids(); });