View Full Version : Include on <head>
nicksalad
06-11-2007, 02:25 PM
Hello, i was wondering if there's a way to place all the javascripts on a separated file and then include it on index <head>. Like this:
<head>
<?php
include("folder/javascripts.php");
?>
</head>
Thanks you.
boogyman
06-11-2007, 03:22 PM
why not just hard code it into your html file?
<script type="text/javascript" href="SCRIPT_NAME.js"></script>
however yes you can do it the way that you have there if you so please.
1 other way to look at this all is that you can put each script into a separate file ending with the .js extension, and use the javascripts.php file which you can then determine which of the scripts to include and which are not necessary
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.