Samo za brskalnike Netscape!

Ta appAgent razlikuje med Netscape Mozilla Firefox in Netscape Mozilla Microsoft Internet Explorer > 9

Če želiš appAgent uporabiti za preusmeritev povezave (linka), lahko skriješ Agenta tako, da za form spremeniš style=" top:-100;"

Preusmeritev določiš tako, da v JavaScript-u pred 'location' odstraniš poševnice in določiš *.htm ali kakšen drugi format.

+ Dodatno sem pripisal še Agenta za ©Microsoft Internet Explorer.

kopiraj skripto

Naloži fire_search.js

 

 

 

 

 

 

<body>

<script language="JavaScript1.3" type="text/javascript" src="fire_search.js"></script>

<form name="jse_Form" onsubmit="search_form(jse_Form);return false" style="width: 100%; height: 40; position:absolute; top:10; left:10;">
<input type="text" name="iskat" value="Firefox" size="7" style="visibility:hidden; margin-left:10;">
<script language="JavaScript1.3" type="text/javascript">num_app();</script>
<script language="JavaScript1.3" type="text/javascript">appAgent();</script>
</form>

<script language="JavaScript1.3">
/*Pavle Jenko, Kranj, Zasavska cesta 40 SLOVENIJA; (december 2018)
http://www.savel-hobi.net/; E-Mail= pavle_jenko@t-2.net by 'fire_search.js' */

function Agent(){
if(document.getElementById("rezultat2").value==1)
//To change location for Netscape Mozilla Firefox
// location="data/index.htm"

else
if(document.getElementById("rezultat2").value==0)
//To change location for Netscape Mozilla Microsoft Internet Explorer > 9
// location="AppAgent.htm"

var n=navigator.appName
var ie=(n=="Microsoft Internet Explorer")
if (ie){
//To change location for ©Microsoft Internet Explorer
// location="User.htm"
}
}
setTimeout("window.load=Agent()", 100)
</script>

</body>

 

Pavle Jenko
Kranj, Zasavska cesta 40
SLOVENIJA
Pavle Jenko
Kranj, Zasavska cesta 40
SLOVENIJA

 

 

pavle_jenko@t-2.net
moj Hobby