WebRingo

WebRingo Help & FAQ

Using Different Types of NavBar Code

Article Details



Poster: Admin
Article ID: 20
Views: 1876
Rate: Like   Dislike
Rated: 1
Posted: Tue 17 Jul 2012
Approved: Yes

Original Article Source: WebRingo
Using Different Types of NavBar Code

To get the NavBar on your pages, we offer 3 different types of NavBar code: JavaScript-based code, "Static HTML" code, and "Dynamic IFRAME" code.

In general we recommend the use of the JavaScript code, but the IFRAME code or Static code may be necessary depending on your needs. Only the JavaScript-based code requires that JavaScript be enabled in the user's browser.

  • JavaScript NavBar code: The JavaScript NavBar code is works on any page that has JavaScript enabled. NavBars using the JavaScript code are served from WebRingo on demand each time the page with the NavBar on it is loaded. Since the code is generated fresh each time the Ring owner can update the colors and/or Ring image and the NavBar code automatically changes on all the pages that display it. You can often use the JavaScript NavBar code on pages that can't use the Dynamic navbar code, such as in a template file used by a Content Management System (most will allow JavaScript to be embedded in the page). For most pages this is probably the code you'll want to use.
  • Dynamic IFRAME code: NavBars using the Dynamic IFRAME code are served from WebRingo on demand each time the page with the NavBar on it is loaded. Since the code is generated fresh each time the Ring owner can update the colors and/or Ring image and the NavBar code automatically changes on all the pages that display it.  The IFRAME code works in pages without JavaScript enabled, but some older browsers may have minor formatting issues with IFrames. This is probably the code you'll want to use if you cannot use the JavaScript NavBar code.
  • Static NavBar code: The Static NavBar code is simple HTML and works in places the Dynamic IFRAME might not. The main disadvantage is that if the Ring Owner changes the colors or Ring image, the HTML code doesn't change- it would need to be updated individually on every site in the Ring. If you frequently change the NavBar colors or Ring image, do not use this code. This code does not require that the client or surfer have JavaScript enabled. You might want to use the Static NavBar code if you're adding it to a page that can't retrieve the Dynamic navbar code, such as in a template file used by a Content Management System.



SA Knowledge Base Beta RC1 R19
© 2011 - 2020 SA Mods