View Single Post
Old 12-20-2006, 08:14 AM  
polle54
Confirmed User
 
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
Quote:
Originally Posted by psili View Post
Use a server side script to write the .js include:

if($_SERVER["HTTP_USER_AGENT"] == "so and so")
echo "this.js";
else
echo "that.js";

Or, have your .js file alias to a server side script that does the same thing internally.

Otherwise, I tend to agree with Calvilnguy, that's it'd be better to just write cross-platform JS scripts.
are you sure you mean echo????

that's for writing shit in php
__________________
ICQ# 143561781
polle54 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote