home *** CD-ROM | disk | FTP | other *** search
/ Clickx 23 / Clickx 23.iso / DATA / moveabletype / images / sifr_replacements.js < prev    next >
Encoding:
JavaScript  |  2005-04-13  |  11.1 KB  |  97 lines

  1. //<![CDATA[
  2.  
  3.     /* You can put your replace statement(s) below, or at the very end of the JS file
  4.     
  5.     Example:
  6.     replaceElement(sSelector, sFlashSrc, sColor, sLinkColor, sHoverColor, sBgColor, nPaddingTop, nPaddingRight, nPaddingBottom, nPaddingLeft, sFlashVars);
  7.     
  8.     Here is what goes in your statements:
  9.     
  10.     sSelector = CSS selector you'd like to replace (e.g. 'h1.main' or 'h2' or '#main h3')
  11.     sColor = text color (e.g. '#000000')
  12.     sLinkColor = link color (e.g. '#0000CC')
  13.     sHoverColor = link color on hover (e.g. '#00CC00')
  14.     sBgColor = color of background (e.g. '#CCCCCC', or 'transparent'... transparent not recommended)
  15.     
  16.     nPadding parameters = enter 0 in here unless you specifically have padding assigned to the element in CSS
  17.     PADDING MUST MATCH *EXACTLY* TO YOUR CSS... THESE ARE NOT NUMBERS TO TRIFLE WITH
  18.  
  19.     sFlashVars = this is a special parameter which lets you pass other things into Flash. Examples include:
  20.     textalign=center (horizontally centers text)
  21.     offsetLeft=5 (pushes text 5 pixels to the right)
  22.     offsetTop==5 (pushes text 5 pixels down)
  23.     uppercase=true (changes text to uppercase)
  24.     lowercase=true (changes text to lowercase)
  25.     underline=true (adds underline to links on hover)
  26.  
  27.     Example syntax for extra parameters (& delimited):
  28.     'textalign=center&offsetTop=2&offsetLeft=4'
  29.     */
  30. var ieMac = false;
  31. var x = new Array();
  32. if(!x.shift && window.ActiveXObject && document.all && (window.getSelection || document.getSelection)){ieMac = true};
  33.  
  34. if(typeof sIFR == "function" && !ieMac){
  35.     sIFR.replaceElement("h3.sifr_left", "http://www.sixapart.com/sifr/gothambold.swf", "#4d6977", null, null, "#e7eff2", 7, 11, 7, 11, "underline=true");
  36.    sIFR.replaceElement("h3.sifr_left_alt", "http://www.sixapart.com/sifr/gothambold.swf", "#4d6977", null, null, "#eeeeee", 7, 11, 7, 11, "underline=true");
  37.     sIFR.replaceElement("h3.sifr_left_2", "http://www.sixapart.com/sifr/gothambold.swf", "#4d6977", null, null, "#e7eff2", 7, 11, 3, 11, "underline=true");
  38.     sIFR.replaceElement("h3.sifr_center", "http://www.sixapart.com/sifr/gothambold.swf", "#678b99", null, null, "#ffffff", 0, 0, 0, 0, "underline=true");
  39.     sIFR.replaceElement("h3.sifr_center_typepad", "http://www.sixapart.com/sifr/gothambold.swf", "#3b5b6c", null, null, "#ffffff", 0, 0, 0, 0, "uppercase=true&underline=true");
  40.     sIFR.replaceElement("h3.sifr_center_pronet", "http://www.sixapart.com/sifr/gothambold.swf", "#3b5b6c", null, null, "#ffffff", 0, 0, 0, 0, "uppercase=true&underline=true");
  41.     sIFR.replaceElement("h3.sifr_center_ml", "http://www.sixapart.com/sifr/gothambold.swf", "#3b5b6c", null, null, "#ffffff", 0, 0, 0, 0, "underline=true");
  42.     // ##unused## sIFR.replaceElement("h3.sifr_center_b", "http://www.sixapart.com/sifr/gothambold.swf", "#4f6f81", null, null, "#d8e1e7", 9, 11, 1, 11, "uppercase=true&underline=true");
  43.     sIFR.replaceElement("h3.sifr_left_db", "http://www.sixapart.com/sifr/gothambold.swf", "#4f6f81", null, null, "#d8e1e7", 9, 11, 1, 11, "underline=true");
  44.     sIFR.replaceElement("h3.sifr_articles", "http://www.sixapart.com/sifr/gothambold.swf", "#4e6978", null, null, "#dbe4e9", 7, 11, 3, 11, "uppercase=true&underline=true");
  45.     sIFR.replaceElement("h2.sifr_articles_header", "http://www.sixapart.com/sifr/gothambold.swf", "#cc6600", null, null, "#ffffff", 0, 0, 0, 0, "underline=true");
  46.     sIFR.replaceElement("h2.sifr_resources", "http://www.sixapart.com/sifr/gothambold.swf", "#cc6600", null, null, "#ffffff", 0, 0, 0, 0, "uppercase=true&underline=true");
  47.     sIFR.replaceElement("h2.sifr_overview", "http://www.sixapart.com/sifr/gothambold.swf", "#cc6600", null, null, "#ffffff", 0, 0, 0, 0, "underline=true");
  48.     //sIFR.replaceElement("h4.sifr_center_b2", "http://www.sixapart.com/sifr/gothambold.swf", "#4f6f81", null, null, "#d8e1e7", 6, 11, 0, 11, "uppercase=true&underline=true");
  49.     sIFR.replaceElement("h3.sifr_products", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#97bd78", 6, 9, 4, 9, "uppercase=true&underline=true");
  50.     //sIFR.replaceElement("h3.sifr_sidebar_wg", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#97bd78", 7, 11, 7, 11, "uppercase=true&underline=true");
  51.     //sIFR.replaceElement("h3.sifr_sidebar_wy", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#ffcc33", 7, 11, 7, 11, "uppercase=true&underline=true");
  52.     sIFR.replaceElement("h3.sifr_left_g", "http://www.sixapart.com/sifr/gothambold.swf", "#7b9e5e", null, null, "#eaf2e4", 8, 11, 6, 11, "underline=true");
  53.     sIFR.replaceElement("h3.sifr_left_g2", "http://www.sixapart.com/sifr/gothambold.swf", "#668844", null, null, "#dfebd5", 7, 11, 3, 11, "uppercase=true&underline=true");
  54.     sIFR.replaceElement("h3.sifr_work_with_us", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#f5c937", 11, 11, 5, 11, "underline=true");
  55.     //sIFR.replaceElement("h3.sifr_plugins_bottom", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#97bd78", 0, 0, 0, 0, "uppercase=true&underline=true");
  56.     sIFR.replaceElement("h2.sifr_typepad", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#ffcc33", 9, 10, 9, 10, "uppercase=true&underline=true");
  57.     sIFR.replaceElement("h3.sifr_happenings", "http://www.sixapart.com/sifr/gothambold.swf", "#ff9900", null, null, "#fcf1d1", 0, 0, 0, 0, "uppercase=true&underline=true");
  58.     //sIFR.replaceElement("h4.sifr_categories", "http://www.sixapart.com/sifr/gothambold.swf", "#fc6700", null, null, "#fcf1d1", 0, 0, 0, 0, "uppercase=true&underline=true");
  59.     sIFR.replaceElement("h3.sifr_featured", "http://www.sixapart.com/sifr/gothambold.swf", "#3d5967", null, null, "#ffffff", 11, 11, 8, 11, "uppercase=true&underline=true");
  60.     sIFR.replaceElement("h3.sifr_templates", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#a3c686", 7, 11, 7, 11, "uppercase=true&underline=true");
  61.     sIFR.replaceElement("h3.sifr_buzz", "http://www.sixapart.com/sifr/gothambold.swf", "#818181", null, null, "#eeeeee", 7, 11, 7, 11, "uppercase=true&underline=true");
  62.     sIFR.replaceElement("h3.sifr_subnav", "http://www.sixapart.com/sifr/gothambold.swf", "#e0ebd6", null, null, "#97bd78", 8, 10, 0, 10, "underline=true");
  63.     sIFR.replaceElement("h3.sifr_menas", "http://www.sixapart.com/sifr/gothambold.swf", "#466677", null, null, "#d8e1e7", 8, 10, 0, 10, "uppercase=true&underline=true");
  64.         sIFR.replaceElement("h3.sifr_benefits", "http://www.sixapart.com/sifr/gothambold.swf", "#466677", null, null, "#d8e1e7", 0, 0, 0, 0, "uppercase=true&underline=true");
  65.         sIFR.replaceElement("h3.sifr_welcome", "http://www.sixapart.com/sifr/gothambold.swf", "#b2bbc0", null, null, "#668290", 7, 11, 7, 11, "uppercase=true&underline=true");
  66.     sIFR.replaceElement("h3.sifr_confirm", "http://www.sixapart.com/sifr/gothambold.swf", "#96bd7a", null, null, "#ffffff", 0, 0, 0, 0, "uppercase=true&underline=true");
  67.     sIFR.replaceElement("h3.sifr_albums", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#a3c686", 0, 0, 0, 0, "uppercase=true&underline=true");
  68.     sIFR.replaceElement("h3.sifr_user_welcome", "http://www.sixapart.com/sifr/gothambold.swf", "#b2bbc0", null, null, "#668290", 0, 0, 10, 0, "uppercase=true&underline=true");
  69.     //sIFR.replaceElement("h4.sifr_user_content", "http://www.sixapart.com/sifr/gothambold.swf", "#b2bbc0", null, null, "#668290", 0, 0, 0, 0, "uppercase=true&underline=true");
  70.     //sIFR.replaceElement("h4.sifr_recent_posts", "http://www.sixapart.com/sifr/gothambold.swf", "#ffcc33", null, null, "#668290", 0, 0, 0, 0, "uppercase=true&underline=true");
  71.     sIFR.replaceElement("h3.sifr_user_people", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#668290", 5, 0, 5, 0, "uppercase=true&underline=true");
  72.     sIFR.replaceElement("h3.top", "http://www.sixapart.com/sifr/gothambold.swf", "#000000", null, null, "#f5c937", 4, 10, 4, 10, "uppercase=true&underline=true");
  73.     sIFR.replaceElement("h3.sifr_compare_title", "http://www.sixapart.com/sifr/gothambold.swf", "#ff9900", null, null, "#fff", 5, 0, 0, 0, "uppercase=true&underline=true");
  74.     sIFR.replaceElement("h3.sifr_search", "http://www.sixapart.com/sifr/gothambold.swf", "#69884c", null, null, "#cadebb", 8, 10, 0, 10, "uppercase=true&underline=true");
  75.     sIFR.replaceElement("h3.sifr_plugin_title", "http://www.sixapart.com/sifr/gothambold.swf", "#ce6900", null, null, "#fff", 0, -10, 0, -10, "uppercase=true&underline=true");
  76.     sIFR.replaceElement("h1.sifr_big_promo", "http://www.sixapart.com/sifr/gothambold.swf", "#000000", null, null, "#ffffff", 0, 0, 0, 0, "uppercase=true&underline=true&textalign=center");
  77.     sIFR.replaceElement("h4.sifr_store_header_item", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#61879a", 5, 10, 5, 10, "uppercase=true&underline=true");
  78.     sIFR.replaceElement("h4.sifr_store_header_favs", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#98bd78", 5, 10, 5, 10, "uppercase=true&underline=true");
  79.     sIFR.replaceElement("h3.sifr_login", "http://www.sixapart.com/sifr/gothambold.swf", "#d3dae0", null, null, "#668290", 0, 0, 0, 0, "uppercase=true&underline=true");
  80.     sIFR.replaceElement("h3.sifr_tp_header", "http://www.sixapart.com/sifr/gothambold.swf", "#ffcc32", null, null, "#fcf1d3", 0, 0, 0, 0, "uppercase=true&underline=true");
  81.     sIFR.replaceElement("h4.sifr_tp_subheader", "http://www.sixapart.com/sifr/gothambold.swf", "#fe9901", null, null, "#fcf1d3", 0, 0, 0, 0, "uppercase=true&underline=true");
  82.     sIFR.replaceElement("h3.sifr_welcome_back", "http://www.sixapart.com/sifr/gothambold.swf", "#b3bac0", null, null, "#668290", 8, 10, 8, 10, "uppercase=true&underline=true");
  83.     sIFR.replaceElement("h2.sifr_tool_overview", "http://www.sixapart.com/sifr/gothambold.swf", "#cc6600", null, null, "#fcf2ce", 0, 0, 0, 0, "underline=true");
  84.     sIFR.replaceElement("h3.sifr_also", "http://www.sixapart.com/sifr/gothambold.swf", "#9a9a9a", null, null, "#dfdfdf", 10, 0, 0, 10, "uppercase=true");
  85.     sIFR.replaceElement("h3.sifr_weblogs", "http://www.sixapart.com/sifr/gothambold.swf", "#698a9b", null, null, "#c7dae1", 4, 10, 4, 10, "uppercase=true");
  86.    sIFR.replaceElement("h3.sifr_news", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#678b99", 7, 11, 7, 11, "underline=true");
  87.    sIFR.replaceElement("h2.sifr_overview_small", "http://www.sixapart.com/sifr/gothambold.swf", "#cc6600", null, null, "#ffffff", 8, 0, 8, 0, "underline=true");
  88.    sIFR.replaceElement("h3.sifr_price", "http://www.sixapart.com/sifr/gothambold.swf", "#000000", null, null, "#fcf2ce", 0, 0, 0, 0, "uppercase=true");
  89.    sIFR.replaceElement("h3.sifr_press_info", "http://www.sixapart.com/sifr/gothambold.swf", "#466677", null, null, "#eeeeee", 8, 10, 4, 10, "uppercase=true");
  90.    sIFR.replaceElement("h3.sifr_questions", "http://www.sixapart.com/sifr/gothambold.swf", "#7d9eb1", null, null, "#dbe4e9", 7, 11, 3, 11, "uppercase=true");
  91.    sIFR.replaceElement("h3.sifr_free_vers", "http://www.sixapart.com/sifr/gothambold.swf", "#666666", null, null, "#fae6a1", 10, 0, 0, 6, "uppercase=true");
  92.    sIFR.replaceElement("h3.sifr_paid_vers", "http://www.sixapart.com/sifr/gothambold.swf", "#4c6b7f", null, null, "#fcf2ce", 0, 0, 0, 0, "uppercase=true");
  93.    sIFR.replaceElement("h2.sifr_features", "http://www.sixapart.com/sifr/gothambold.swf", "#ffffff", null, null, "#ffcc33", 6, 10, 6, 15, "uppercase=true");
  94.    sIFR.replaceElement("li.sifr_list", "http://www.sixapart.com/sifr/gothambold.swf", "#ffb746", null, null, "#fcf1d1", 0, 0, 0, 0, "");
  95. }
  96. //]]>
  97.