0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Modify RokIEwarn.js to promote Firefox?

    • imagine4D's Avatar
    • imagine4D
    • Hero Rocketeer
    • Posts: 409
    • Thanks: 1
    • Project developer

    Modify RokIEwarn.js to promote Firefox?

    Posted 16 years 8 months ago
    • I've fumbled around with this code a bit, to try and remove all references to IE completely, thus replacing the IE7 stuff with Firefox info (a download link and an image). So far, I can't seem to get it to work.

      Here's the code that needs changing:
      var RokIEWarn = new Class({
      'site': 'sitename',
      'initialize': function() {
      var warning = "<h3>Your are currently browsing this site with Internet Explorer 6 (IE6).</h3><h4>NOTE: This template is compatible with IE6, however your experience will be enhanced with a newer browser.</h4><p>The last version of Internet Explorer 6 was called Service Pack 1 for Internet Explorer 6 and was released in December of 2004. By continuing to run Internet Explorer 6 you are open to any and all security vulnerabilities discovered since that date. In October of 2006, Microsoft released version 7 of Internet Explorer that, in addition to providing greater safety in navigation, which allows the Internet Explorer browser to identify as' modern browsers'. Microsoft has launched Internet Explorer 7 as a high-priority update, and is now available to download for free without any certification requirements. As of Feb 12th, 2008 Microsoft is forcing updates to Internet Explorer 6 in order to move people towards the much improved and secure version 7. Please ensure you don't hamper this process. It's for your own good!</p> <br /><a class="external" href=" www.microsoft.com/downloads/details.aspx...7C-8A30-081805B2F90B ">Download Internet Explorer 7 NOW!</a>";

      Here is the text I would like to add instead:
      var warning = "<h3>Your are currently browsing this site with Internet Explorer 6 (IE6).</h3><h4>NOTE: This template is compatible with IE6, however your experience will be enhanced with a newer browser.</h4><p>The last version of Internet Explorer 6 was released in <i>December of 2004</i>. By continuing to run Internet Explorer 6 you are open to any and all security vulnerabilities discovered since that date.<br /><br />While Internet Explorer 7 is a far superior browser, we suggest you give <a href=" www.mozilla.com/en-US/firefox/ "target="_blank">Firefox</a> a try – it's just the most powerful Open Source browser in the world.<br /><br />

      Free yourself from the horse and cart that is Internet Explorer - <a href=" www.mozilla.com/en-US/firefox/ "target="_blank"> download Firefox</a> and start surfing the 'net in a spaceship!<br /><br />

      <br /><a class="external" href=" www.microsoft.com/downloads/details.aspx...7C-8A30-081805B2F90B ">Download Internet Explorer 7 NOW!</a>";

      What could I replace the code in red with? Here is the Download Firefox link:

      Or maybe it would work better to insert the code via an affiliate link? Here's mine, as an example (you should register for your own account for affiliate points):
      <a href=" www.spreadfirefox.com/node&id=247952&t=307 "><img border="0" alt="Firefox 3" title="Firefox 3" src=" sfx-images.mozilla.org/affiliates/Button...00x32_best-yet.png"/ ></a>

      Thanks in advance for any help! ;D
  • Re: Modify RokIEwarn.js to promote Firefox?

    Posted 16 years 8 months ago

Time to create page: 0.069 seconds