hmm it's more like to load different js extension ayt?
one for IE and one for Fx like podo's post... (i'm also using one)
but the best part in it is that you can randomly load different js extension/layout
for each browser... am i right? heheh that's a nice trick by shakiro then!! \m/
![=D](img/smilies/evillaugh.gif)
and thanx for posting it m0g0l...
![:thumbsup:](img/smilies/thumbsup.gif)
and if i'm right... just a suggestion...
better add that you can put different js extension/layouts on each
to fully use the concept of the codes...
[b]EX:[/b] lagann = new Array();
lagann[0]="http://h1.ripway.com/username/fs/linker/IElayout[b]1[/b].js";
lagann[1]="http://h1.ripway.com/username/fs/linker/IElayout[b]2[/b].js";
lagann[1]="http://h1.ripway.com/username/fs/linker/IElayout[b]3[/b].js";
coz you can just use podo's codes if you're just going to use only one js
extension for IE and also only one for FX ...
podo's code
[quote]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);
}[/quote]
or what i'm using...
[quote]if (navigator.appName == "Microsoft Internet Explorer") {
var IEscript = document.createElement("script");
IEscript.type = "text/javascript";
IEscript.src = "INSERT UR IE URL HERE";
document.getElementsByTagName("head")[0].appendChild(IEscript);
}
else {
var FXscript = document.createElement("script");
FXscript.type = "text/javascript";
FXscript.src = "INSERT UR FIREFOX URL HERE";
document.getElementsByTagName("head")[0].appendChild(FXscript);
}[/quote]
just a suggestion bro coz i think the codes trick is very cool!!
Last edited by Refresh/Reload (2008-07-11 11:16:58)