joomla - javascript not working in chrome,safari,ie etc -
i have javascript code video change in joomla based website not showing in chrome,safari,internet explorer getting displayed in mozilla firefox. here code javascript.
<script type="text/ecmascript"> $(document).ready(function() { $("ul.videolist").ytplaylist({addthumbs:true, autoplay: false, holderid: 'ytvideo'}); });
here live link : http://great.server279.com/greatofficiants
i think know what's wrong , post answer know what, think should talking how make better debugger. post wrote doesn't or you. first of more important code is, console say?
if using google chrome press f12 or ctrl+shift+j , @ console panel. there messages share us?
any way, that's on mind
joomla default loads mootools in header have in mind either didn't load jquery library or it's loaded , it's conflicting mootools.
try changing code to:
<script type="text/javascript"> window.addevent('domready', function() { jquery("ul.videolist").ytplaylist({ addthumbs: true, autoplay: false, holderid: 'ytvideo' }); }); </script>
and make sure called jquery , code contains jquery.noconflict();
Comments
Post a Comment