Results 1 to 3 of 3

Thread: Installing FireFox Themes

  1. #1
    Barrista
    Join Date
    Feb 2003
    Location
    Calgary, Alberta, Canada
    Posts
    2,480

    Installing FireFox Themes

    A buddy hooked me up with this code which allows you to add themes to FireFox. Take this code copy past into a word document and save as an html file and you will be able to add themes to FireFox.

    The Code:

    <script type="text/javascript">

    function installTheme(where) {

    var file = '';

    if (where == 'local') {

    file = 'file:///' + escape(document.getElementById('filename').value.r eplace(/\\/g,'/'));

    } else {

    file = document.getElementById('url').value;

    }

    InstallTrigger.installChrome(InstallTrigger.SKIN, file, getName(file));

    }

    function getName(raw) {

    var grabFileStart = raw.lastIndexOf('/');

    var grabFileEnd = raw.lastIndexOf('.');

    if (grabFileStart >= grabFileEnd) {

    return 'Invalid file name';

    } else {

    return raw.substring(grabFileStart + 1,grabFileEnd);

    }

    }

    function installThemeNow(file) {

    InstallTrigger.installChrome(InstallTrigger.SKIN, file, getName(file));

    return true;

    }

    </script>

    <style type="text/css">

    <!--

    .style2 {

    font-family: Verdana, Arial, Helvetica, sans-serif;

    font-weight: bold;

    font-size: 12px;

    }

    -->

    </style>







    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="2" bgcolor="#0099FF">

    <tr>

    <td bgcolor="#F5F4ED"><br><div align="center"><span class="style2">Install Firefox .JAR theme from Harddisk<br><br></span>

    <form><input id="filename" type="file">



    <input value="Install" onclick="installTheme('local');" type="button">

    </form>

    </div></td>

    </tr>

    </table>

  2. #2
    Barrista TechZsue's Avatar
    Join Date
    Aug 2002
    Location
    California
    Posts
    2,861
    ?? I can add themes already. You just download them.
    Tools > Themes > Get more themes....

  3. #3
    Barrista
    Join Date
    Feb 2003
    Location
    Calgary, Alberta, Canada
    Posts
    2,480
    Well theres always more then 1 way to do it lol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •