kadas99
Joined: 06 Dec 2010
Posts: 10
|
Posted: Tue Jan 04, 2011 11:30 am Post subject: SetPropertiesById work or no? IE or FF? I Am loosing my mind |
|
|
Hello, again me, i have this code, i want (Looking first which navigator is) hide and show 2 diferents buttons, 1 for IE and 1 for FF. Ie button have a run .exe action, opening IE in a new window in private mode, and FF button do the same but open FF private mode, i tried to do this whit callcmd, but like i say in another post, http://www.besttoolbars.net/forum/viewtopic.php?t=1046 dont work, so i take this way, but dosn`t work too. Some one can helpme? this is my code:
| Code: | MainWindow.document.parentWindow.alert ("Javascript Work");
var browser=0;
try{ if (navigator) browser=1; }catch(e){}
if (browser==1) //Javascript code for FireFox version
{
alert("firefox");
SetPropertiesById("IE","visibility","0");
tool.Reload();
MainWindow.document.parentWindow.alert ("FF2");
tool.Reload();
}
else //Javascript code for IE version
{
SetPropertiesById("IE","visibility","1");
tool.Reload();
SetPropertiesById("FF","visibility","0");
tool.Reload();
MainWindow.document.parentWindow.alert ("IE2");
tool.Reload();
} |
So muchs thanks![url][/url] |
|