w4ker
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
I will try in another way. Thanks, I will close the topic.
Well, I tried to follow these steps https://wordpress.org/support/topic/include-jquery-in-headerphp-please-help?replies=21 but it changes anything. Still not working :/
I’m putting this in header.php
<script type="text/javascript" src="/js/postheadingtitle.js"></script> <script type="text/javascript"> <!-- function startMarquee() { var menuItemWidth = $(this).width(); var listItemWidth = $(this).parent().width(); if(menuItemWidth > listItemWidth) { var scrollDistance = menuItemWidth - listItemWidth; var listItem = $(this).parent(); listItem.stop(); listItem.animate({scrollLeft: scrollDistance}, 1000, 'linear'); } } function stopMarquee() { var listItem = $(this).parent(); listItem.stop(); listItem.animate({scrollLeft: 0}, 'medium', 'swing'); } $('#menu a').hover(startMarquee, stopMarquee); //--></script>and this in content.php to test:
<ul id="menu"><a href="#"><li>testing java script failing</li></a></ul>
Viewing 3 replies - 1 through 3 (of 3 total)