I'm pretty sure the answer is "it can't be done", but if you don't ask you don't know! LOL
I set a handful of variables in variables.php script that's included on every page of the site. Examples are the absolute path to images, the basepath, the size of the navigation array, and Adsense IDs. These rarely change, but since I have a ton of parked domains they're different for each of those domains.
To use them in Javascript, I have to have a <script>var foo = '$bar'; ...</script> section in my header.php. And afterward, I have a separate <script src="javascript.js"> to get the rest of my Javascript functions.
So the question is, can you guys suggest a way to get the PHP variables inside of javascript.js, without hard coding them or loading them in header.php first?
If it matters, I'm loading jQuery so I can use jQuery suggestions.