Besttoolbars Development network

Back to Besttoolbars main site

 

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Another JavaScript question

 
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> Mozilla/Firefox conversion
Author Message
jpw21683



Joined: 07 Jan 2008
Posts: 7

PostPosted: Mon May 05, 2008 8:20 pm    Post subject: Another JavaScript question Reply with quote

I've got a menu item that, when clicked, toggles the display of a banner/bubble named tbs_ticker.

Here's my JavaScript that's invoked when the menu item is clicked. Works fine in IE, what do I need to modify for the Firefox version?

Thanks,
Josh

Code:
function Launch(tool)   // executes when clicking the show/hide ticker button
{
   if (tool.GetPropertyByID("tbs_ticker","visibility")=="1") {
      HideTicker(tool);
   } else {
      ShowTicker(tool);
   }   
}

function HideTicker(tool) {
   tool.SetPropertyById("tbs_ticker","visibility","0");
   tool.Reload();
}

function ShowTicker(tool) {
   tool.SetPropertyById("tbs_ticker","visibility","1");
   
   // following two lines refresh the ticker
   varUrl=tool.GetPropertyByID("tbs_ticker","url");
   tool.SetPropertyById("tbs_ticker","url",varUrl);
   
   tool.Reload();

}
Back to top
Admin
Site Admin


Joined: 22 Aug 2006
Posts: 1055

PostPosted: Tue May 20, 2008 8:55 am    Post subject: Reply with quote

please,send us your .cab to support@besttoolbars.net ,we'll test and fix immediately
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> Mozilla/Firefox conversion All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group

Copyright c Softomate, 2010. All Rights Reserved
Terms of Service | Privacy Policy