/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /* * Put this in your config file */ function jQuery($v){ echo ($v ? "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/".$v."/jquery.min.js\" type=\"text/javascript\"></script>" : "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js\" type=\"text/javascript\"></script>"); } /* * Put this in all pages */ // Default version jQuery(); // Version specifies jQuery("1.4.2"); ?>