<html><head><style type='text/css'>h1 { margin: 0; margin-top: 4px; margin-bottom: 5px; font-size: 12px; border-bottom: 2px solid #90A8F0; color: #90A8F0;}h2 { margin: 0; margin-top: 4px; margin-bottom: 5px; font-size: 12px; border-bottom: 1px solid #90A8F0; color: #90A8F0;}#s_container { height: 240px; clear: both;}#s_sampleContainer { background-color: #fff;}.tabMenu { list-style:none; margin:0px; padding:0px; }.tabMenu li { margin:0px; padding:0px; }a:link, a:visited, a:active, a:hover { text-decoration:none; }a.selectedTab { color: #000; display: block; width:80px; border: 1px solid #aaa; border-top: 1px solid #fff; border-left: 1px solid #fff; padding: 4px; margin:0px; background-color: #Edf0D9;}a.unselectedTab { color: #000; display: block; width:80px; border: 0; padding: 5px; margin:0px; background-color: #ECE9D8;}html, body { background-color: #ECE9D8; color: #000000; font: 11px Tahoma,Verdana,sans-serif; padding: 0px; }body { margin: 5px; }form { margin: 0px; padding: 0px;}table { font: 11px Tahoma,Verdana,sans-serif; }fieldset { padding: 0px 10px 5px 5px; }button { width: 75px; }select, input, button { font: 11px Tahoma,Verdana,sans-serif; }.f_title { text-align:right; width: 70px;}</style><script type='text/javascript'>function FTB_StyleEditor(id) { this.id = id;};FTB_StyleEditor.prototype.UpdateStylePreview = function() { this.ChangeElementStyle(this.previewDiv);};FTB_StyleEditor.prototype.ReturnStyle = function() { el = window.launchParameters['element']; this.ChangeElementStyle(el); ftb = window.launchParameters['ftb'];};FTB_StyleEditor.prototype.Initialize = function() { styleEditor = this; this.ftb = window.launchParameters['ftb']; this.previewDiv = document.getElementById('s_sample'); this.fontLayer = document.getElementById('s_layer_font'); this.textLayer = document.getElementById('s_layer_text'); this.backgroundLayer = document.getElementById('s_layer_background'); this.spacingLayer = document.getElementById('s_layer_spacing'); this.bordersLayer = document.getElementById('s_layer_borders'); this.fontTab = document.getElementById('s_tab_font'); this.fontTab.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.fontTab,'click',function() {this.styleEditor.ShowLayer(this.styleEditor.fontTab,this.styleEditor.fontLayer); }); this.textTab = document.getElementById('s_tab_text'); this.textTab.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.textTab,'click',function() {this.styleEditor.ShowLayer(this.styleEditor.textTab,this.styleEditor.textLayer); }); this.backgroundTab = document.getElementById('s_tab_background'); this.backgroundTab.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.backgroundTab,'click',function() {this.styleEditor.ShowLayer(this.styleEditor.backgroundTab,this.styleEditor.backgroundLayer); }); this.spacingTab = document.getElementById('s_tab_spacing'); this.spacingTab.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.spacingTab,'click',function() {this.styleEditor.ShowLayer(this.styleEditor.spacingTab,this.styleEditor.spacingLayer); }); this.bordersTab = document.getElementById('s_tab_borders'); this.bordersTab.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.bordersTab,'click',function() {this.styleEditor.ShowLayer(this.styleEditor.bordersTab,this.styleEditor.bordersLayer); }); this.fontFamily = document.getElementById('s_fontFamily'); this.fontFamily.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.fontFamily,'keyup',function() {this.styleEditor.UpdateStylePreview(); } ); this.color = document.getElementById('s_color'); this.color.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.color,'keyup',function() {this.styleEditor.UpdateStylePreview(); }); this.size = document.getElementById('s_fontSize'); this.size.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.size,'keyup',function() {this.styleEditor.UpdateStylePreview(); }); this.sizeUnit = document.getElementById('s_fontSizeUnit'); this.sizeUnit.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.sizeUnit,'change',function() {this.styleEditor.UpdateStylePreview(); }); this.bold = document.getElementById('s_bold'); this.bold.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.bold,'click',function() {this.styleEditor.UpdateStylePreview(); }); this.italic = document.getElementById('s_italic'); this.italic.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.italic,'click',function() {this.styleEditor.UpdateStylePreview(); }); this.smallcaps = document.getElementById('s_smallcaps'); this.smallcaps.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.smallcaps,'click',function() {this.styleEditor.UpdateStylePreview(); }); this.strikethrough = document.getElementById('s_strikethrough'); this.strikethrough.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.strikethrough,'click',function() {this.styleEditor.UpdateStylePreview(); }); this.underline = document.getElementById('s_underline'); this.underline.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.underline,'click',function() {this.styleEditor.UpdateStylePreview(); }); this.overline = document.getElementById('s_overline'); this.overline.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.overline,'click',function() {this.styleEditor.UpdateStylePreview(); }); this.capitalization = document.getElementById('s_capitalization'); this.capitalization.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.capitalization,'click',function() {this.styleEditor.UpdateStylePreview(); }); this.halign = document.getElementById('s_halign'); this.halign.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.halign,'change',function() {this.styleEditor.UpdateStylePreview(); }); this.valign = document.getElementById('s_valign'); this.valign.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.valign,'change',function() {this.styleEditor.UpdateStylePreview(); }); this.textIndent = document.getElementById('s_textIndent'); this.textIndent.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.textIndent,'keyup',function() {this.styleEditor.UpdateStylePreview(); }); this.textIndentUnit = document.getElementById('s_textIndentUnit'); this.textIndentUnit.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.textIndentUnit,'change',function() {this.styleEditor.UpdateStylePreview(); }); this.direction = document.getElementById('s_direction'); this.direction.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.direction,'change',function() {this.styleEditor.UpdateStylePreview(); }); this.backcolor = document.getElementById('s_backcolor'); this.backcolor.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.backcolor,'keyup',function() {this.styleEditor.UpdateStylePreview(); }); this.letterSpacing = document.getElementById('s_letterSpacing'); this.letterSpacing.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.letterSpacing,'keyup',function() {this.styleEditor.UpdateStylePreview(); }); this.letterSpacingUnit = document.getElementById('s_letterSpacingUnit'); this.letterSpacingUnit.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.letterSpacingUnit,'change',function() {this.styleEditor.UpdateStylePreview(); }); this.lineHeight = document.getElementById('s_lineHeight'); this.lineHeight.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.lineHeight,'keyup',function() {this.styleEditor.UpdateStylePreview(); }); this.lineHeightUnit = document.getElementById('s_lineHeightUnit'); this.lineHeightUnit.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.lineHeightUnit,'change',function() {this.styleEditor.UpdateStylePreview(); }); this.marginLeft = document.getElementById('s_marginLeft'); this.marginLeft.styleEditor = styleEditor; window.opener.FTB_AddEvent(this.marginLeft,'keyup',function() {this.styleEditor.UpdateStylePreview(); }); this.marginLeftUnit = document.getElementById('s_marginLeft_unit'); this.marginLeftUnit.styleEditor = styleEditor; window.opener.
- 1
- 2
前往页