I have following files that are added to header:
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js"></script>
<script type="text/javascript" src="js/jquery-1.4.1.js"></script>
<script type="text/javascript">
jQuery.noConflict(); 开发者_StackOverflow中文版
</script>
<script type="text/javascript" src="js/jquery.alphanumeric.js"></script>
<script type="text/javascript" src="js/jquery.friends.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.colorbox.js"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>
<script type="text/javascript" src="js/site.js"></script>
<script type="text/javascript" src="js/search.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
<script type="text/javascript" src="js/inbox.js"></script>
<script type="text/javascript" src="js/profile.js"></script>
<script type="text/javascript" src="js/color_picker.js"></script>
<?php if($CONFIG['fb_status'] == 1) { ?>
<script type="text/javascript" src="js/facebook.js"></script>
<script type="text/javascript">
facebook_appId = "<?php print($CONFIG['fb_appId']); ?>";
faceboook_base = "<?php print($CONFIG['site_url']); ?>";
</script>
<script>
jQuery(document).ready(function(){
//Examples of how to assign the ColorBox event to elements
jQuery(".example5").colorbox({
onComplete:function(){ document.getElementById('question1').value=document.getElementById('question').value; }
});
});
</script>
I have been placing noconflict on differnt places but for some reason one of the jquery buttons dont work. Is there any way i can put noconflict or use anything else that will make all these files work?
you have started
<?php if($CONFIG['fb_status'] == 1) { ?>
but not ended it, will show a php Fatal erro and break down.
Btw why so many script files, I bet half of them are not even used most of the time, It must take your website a decade to load :)
精彩评论