[quote=podo]i would like to share this code that would enable you to have a different js/javascript ext. when viewed by either fire fox or ie..
that means you can have a different version for your fire fox or ie! wow!
please delete if its been posted awredi or somewhat identical.. oh wellz jas wanna share..
credits goes to mah boi shakiro
you so money
Code:
var podo = document.createElement("script");
var browser=navigator.appName;
var mic="Microsoft Internet Explorer";
if (browser==mic){
podo.type = "text/javascript";
podo.src = "INSERT UR IE URL HERE";
document.getElementsByTagName("head")[0].appendChild(podo);
}
else
{
podo.type = "text/javascript";
podo.src = "INSERT UR FIREFOX URL HERE";
document.getElementsByTagName("head")[0].appendChild(podo);
}
create another textfile. either name it by .js/.txt etc. then paste the code above and replace the "insert ur ie/ff url here".
then use ur newly created textfile as your linker and thats it!
*note*
not only can you have a different js version on ie and ff but also you can inject a different css ext. on each browser! cool ey!?
no more ie/ff only codes or best viewed on ie/ff why not have a seperate one on each and have both
be creative and just have fun playing with it
[/quote]
You mean I will create a new .js or .txt file? And I will paste my two js file there?
What If I am using a css linker?