Pages: 123

  2008-06-05 01:46:17

aich
» FTalkManiac
FTalk Level: zero
769
0
1969-12-31

Re: 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

[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 :cool: you so money ;) :thumbsup: 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 :D be creative and just have fun playing with it ;) :thumbsup:[/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?

Pages: 123

Board footer

© 2024 F Talk

Current time is 12:49

[ 12 queries - 0.014 second ]
Privacy Policy