[RESOLVED]wp_head breaks javascript
-
If i include the wp_head in my header.php file it will break my javascript which is:
<script type="text/javascript"> window.addEvent('domready', function() { var sliders = $$(".moreinfo"); var triggers = $$(".toggle") ; triggers.each(function( o, x ){ var sl = new Fx.Slide( sliders[x], { } ); $(triggers[x]).addEvent('click',function(e){ e = new Event(e); sl.toggle(); e.stop(); }) sl.hide(); }); } )// end </script>
Any ideas why this occurs?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[RESOLVED]wp_head breaks javascript’ is closed to new replies.