darren670501
07-23-2008, 04:09 PM
Hi Everyone,
I am having great problems recalling a variable from my toolbar, I have created my toolbar made by besttoolbars.net software and I am trying to recall a variable from the toolbar and have it placed into a HTML file for the 3rd party software to pick it up.
If any one knows how Besttoolbar software works can someone help me. Here is the code I have. (See below) Now I can recall the variable from the toolbar as an alert, "alert(tool.Var(1));" without the quotes and it shows the correct info. So I know the variable is set correctly. But I can not get the variable to point to USER. i.e. user = the variable
Can anyone help....
<SCRIPT language="JavaScript">
var MyTool = null;
var user = null;
var size = null;
var shape = null;
function ToolBarInit(tool)
{
MyTool=tool;
document.all.innerHTML=MyTool.Var(1);
user = tool.Var(1);
}
size = "3";
shape = "1";
document.write('<s'+'cript language="JavaScript" src="http://www.awebsite.com/work.php?n='+user+'&size='+size+'&shape='+shape+'&c=0&c_border=336699&c_background=FFFFFF&c_text1=00 0000&code='+new Date().getTime()+'"></s'+'cript>');
</script>
Kind Regards
Darren
I am having great problems recalling a variable from my toolbar, I have created my toolbar made by besttoolbars.net software and I am trying to recall a variable from the toolbar and have it placed into a HTML file for the 3rd party software to pick it up.
If any one knows how Besttoolbar software works can someone help me. Here is the code I have. (See below) Now I can recall the variable from the toolbar as an alert, "alert(tool.Var(1));" without the quotes and it shows the correct info. So I know the variable is set correctly. But I can not get the variable to point to USER. i.e. user = the variable
Can anyone help....
<SCRIPT language="JavaScript">
var MyTool = null;
var user = null;
var size = null;
var shape = null;
function ToolBarInit(tool)
{
MyTool=tool;
document.all.innerHTML=MyTool.Var(1);
user = tool.Var(1);
}
size = "3";
shape = "1";
document.write('<s'+'cript language="JavaScript" src="http://www.awebsite.com/work.php?n='+user+'&size='+size+'&shape='+shape+'&c=0&c_border=336699&c_background=FFFFFF&c_text1=00 0000&code='+new Date().getTime()+'"></s'+'cript>');
</script>
Kind Regards
Darren