[pLog-svn] r1150 - in plugins/trunk/blogtimes: js/colorpicker
locale templates
mark at devel.plogworld.net
mark at devel.plogworld.net
Sun Feb 20 17:17:22 GMT 2005
Author: mark
Date: 2005-02-20 17:17:22 +0000 (Sun, 20 Feb 2005)
New Revision: 1150
Modified:
plugins/trunk/blogtimes/js/colorpicker/picker.js
plugins/trunk/blogtimes/locale/locale_en_UK.php
plugins/trunk/blogtimes/locale/locale_zh_TW.php
plugins/trunk/blogtimes/templates/blogtimes.template
Log:
Finally, I got the color picker work as I want .:D
Modified: plugins/trunk/blogtimes/js/colorpicker/picker.js
===================================================================
--- plugins/trunk/blogtimes/js/colorpicker/picker.js 2005-02-20 16:37:25 UTC (rev 1149)
+++ plugins/trunk/blogtimes/js/colorpicker/picker.js 2005-02-20 17:17:22 UTC (rev 1150)
@@ -522,6 +522,7 @@
the color picker will not hide itself correctly.
*/
ColorPicker_targetInput = null;
+ColorPicker_linkButton = null;
function ColorPicker_writeDiv() {
document.writeln("<DIV ID=\"colorPickerDiv\" STYLE=\"position:absolute;visibility:hidden;\"> </DIV>");
}
@@ -543,7 +544,7 @@
return;
}
ColorPicker_targetInput.value = color;
- ColorPicker_targetInput.style.backgroundColor = color;
+ ColorPicker_linkButton.style.backgroundColor = color;
}
// This function is the easiest way to popup the window, select a color, and
@@ -555,6 +556,7 @@
return;
}
window.ColorPicker_targetInput = inputobj;
+ window.ColorPicker_linkButton = document.getElementById(linkname);
this.show(linkname);
}
Modified: plugins/trunk/blogtimes/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/blogtimes/locale/locale_en_UK.php 2005-02-20 16:37:25 UTC (rev 1149)
+++ plugins/trunk/blogtimes/locale/locale_en_UK.php 2005-02-20 17:17:22 UTC (rev 1150)
@@ -14,6 +14,8 @@
$messages["blogtimes_bordercolor"] = "Please input your border color (It should be RGB hex color code).";
$messages["blogtimes_tickcolor"] = "Please input your tick color (It should be RGB hex color code).";
$messages["blogtimes_title"] = "Please input your title. It will show on image, only accept English.";
+$messages["blogtimes_width"] = "Please input your image width.";
+$messages["blogtimes_height"] = "Please input your image height.";
$messages["blogtimes_lastdays"] = "Please input the last days of posts you want to show on image.";
$messages["label_configuration"] = "Configuration";
@@ -25,5 +27,7 @@
$messages["label_bordercolor"] = "Border Color";
$messages["label_tickcolor"] = "Tick Color";
$messages["label_title"] = "Title";
+$messages["label_width"] = "Width";
+$messages["label_height"] = "Height";
$messages["label_lastdays"] = "Last Days";
?>
\ No newline at end of file
Modified: plugins/trunk/blogtimes/locale/locale_zh_TW.php
===================================================================
--- plugins/trunk/blogtimes/locale/locale_zh_TW.php 2005-02-20 16:37:25 UTC (rev 1149)
+++ plugins/trunk/blogtimes/locale/locale_zh_TW.php 2005-02-20 17:17:22 UTC (rev 1150)
@@ -14,6 +14,8 @@
$messages["blogtimes_bordercolor"] = "請輸入你的外框顏色代碼(必須是 16 進位的 RGB 顏色代碼)。";
$messages["blogtimes_tickcolor"] = "請輸入你的時間刻度顏色代碼(必須是 16 進位的 RGB 顏色代碼)。";
$messages["blogtimes_title"] = "請輸入你的影像文字敘述,此文字會顯示在方塊圖上。必須為英文。";
+$messages["blogtimes_width"] = "請輸入你的方塊圖影像長度";
+$messages["blogtimes_height"] = "請輸入你的方塊圖影像寬度";
$messages["blogtimes_lastdays"] = "請輸入你所要顯示的過去文章天數。";
$messages["label_configuration"] = "設定";
@@ -25,5 +27,7 @@
$messages["label_bordercolor"] = "外框顏色";
$messages["label_tickcolor"] = "時間刻度顏色";
$messages["label_title"] = "影像文字敘述";
+$messages["label_width"] = "影像長度";
+$messages["label_height"] = "影像高度";
$messages["label_lastdays"] = "過去文章天數";
?>
\ No newline at end of file
Modified: plugins/trunk/blogtimes/templates/blogtimes.template
===================================================================
--- plugins/trunk/blogtimes/templates/blogtimes.template 2005-02-20 16:37:25 UTC (rev 1149)
+++ plugins/trunk/blogtimes/templates/blogtimes.template 2005-02-20 17:17:22 UTC (rev 1150)
@@ -21,48 +21,48 @@
<label for="backColor">{$locale->tr("label_backcolor")}</label>
<span class="required">*</span>
<div class="formHelp">{$locale->tr("blogtimes_backcolor")}</div>
- <input style="width:100px; background:{$backColor};" class="text" type="text" name="backColor" id="backColor" value="{$backColor}" width="10" />
- <A HREF="#" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['backColor'],'pickBackColor');return false;" NAME="pickBackColor" ID="pickBackColor"><img width="15" height="13" border="0" alt="Pick" src="plugins/blogtimes/js/colorpicker/img/sel.gif" /></A>
+ <input style="width:100px;" class="text" type="text" name="backColor" id="backColor" value="{$backColor}" width="10" />
+ <A HREF="#" style="border: 1px solid #000000; background:{$backColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['backColor'],'pickBackColor');return false;" NAME="pickBackColor" ID="pickBackColor"> </A>
</div>
<div class="field">
<label for="boxColor">{$locale->tr("label_boxcolor")}</label>
<span class="required">*</span>
<div class="formHelp">{$locale->tr("blogtimes_boxcolor")}</div>
- <input style="width:100px; background:{$boxColor};" class="text" type="text" name="boxColor" id="boxColor" value="{$boxColor}" width="10" />
- <A HREF="#" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['boxColor'],'pickBoxColor');return false;" NAME="pickBoxColor" ID="pickBoxColor"><img width="15" height="13" border="0" alt="Pick" src="plugins/blogtimes/js/colorpicker/img/sel.gif" /></A>
+ <input style="width:100px;" class="text" type="text" name="boxColor" id="boxColor" value="{$boxColor}" width="10" />
+ <A HREF="#" style="border: 1px solid #000000; background:{$boxColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['boxColor'],'pickBoxColor');return false;" NAME="pickBoxColor" ID="pickBoxColor"> </A>
</div>
<div class="field">
<label for="textColor">{$locale->tr("label_textcolor")}</label>
<span class="required">*</span>
<div class="formHelp">{$locale->tr("blogtimes_textcolor")}</div>
- <input style="width:100px; background:{$textColor};" class="text" type="text" name="textColor" id="textColor" value="{$textColor}" width="10" />
- <A HREF="#" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['textColor'],'pickTextColor');return false;" NAME="pickTextColor" ID="pickTextColor"><img width="15" height="13" border="0" alt="Pick" src="plugins/blogtimes/js/colorpicker/img/sel.gif" /></A>
+ <input style="width:100px;" class="text" type="text" name="textColor" id="textColor" value="{$textColor}" width="10" />
+ <A HREF="#" style="border: 1px solid #000000; background:{$textColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['textColor'],'pickTextColor');return false;" NAME="pickTextColor" ID="pickTextColor"> </A>
</div>
<div class="field">
<label for="lineColor">{$locale->tr("label_linecolor")}</label>
<span class="required">*</span>
<div class="formHelp">{$locale->tr("blogtimes_linecolor")}</div>
- <input style="width:100px; background:{$lineColor};" class="text" type="text" name="lineColor" id="lineColor" value="{$lineColor}" width="10" />
- <A HREF="#" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['lineColor'],'pickLineColor');return false;" NAME="pickLineColor" ID="pickLineColor"><img width="15" height="13" border="0" alt="Pick" src="plugins/blogtimes/js/colorpicker/img/sel.gif" /></A>
+ <input style="width:100px;" class="text" type="text" name="lineColor" id="lineColor" value="{$lineColor}" width="10" />
+ <A HREF="#" style="border: 1px solid #000000; background:{$lineColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['lineColor'],'pickLineColor');return false;" NAME="pickLineColor" ID="pickLineColor"> </A>
</div>
<div class="field">
<label for="borderColor">{$locale->tr("label_bordercolor")}</label>
<span class="required">*</span>
<div class="formHelp">{$locale->tr("blogtimes_bordercolor")}</div>
- <input style="width:100px; background:{$borderColor};" class="text" type="text" name="borderColor" id="borderColor" value="{$borderColor}" width="10" />
- <A HREF="#" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['borderColor'],'pickBorderColor');return false;" NAME="pickBorderColor" ID="pickBorderColor"><img width="15" height="13" border="0" alt="Pick" src="plugins/blogtimes/js/colorpicker/img/sel.gif" /></A>
+ <input style="width:100px;" class="text" type="text" name="borderColor" id="borderColor" value="{$borderColor}" width="10" />
+ <A HREF="#" style="border: 1px solid #000000; background:{$borderColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['borderColor'],'pickBorderColor');return false;" NAME="pickBorderColor" ID="pickBorderColor"> </A>
</div>
<div class="field">
<label for="tickColor">{$locale->tr("label_tickcolor")}</label>
<span class="required">*</span>
<div class="formHelp">{$locale->tr("blogtimes_tickcolor")}</div>
- <input style="width:100px; background:{$tickColor};" class="text" type="text" name="tickColor" id="tickColor" value="{$tickColor}" width="10" />
- <A HREF="#" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['tickColor'],'pickTickColor');return false;" NAME="pickTickColor" ID="pickTickColor"><img width="15" height="13" border="0" alt="Pick" src="plugins/blogtimes/js/colorpicker/img/sel.gif" /></A>
+ <input style="width:100px;" class="text" type="text" name="tickColor" id="tickColor" value="{$tickColor}" width="10" />
+ <A HREF="#" style="border: 1px solid #000000; background:{$tickColor}; font-family:Verdana; font-size:10px; text-decoration: none;" onClick="cp.select(document.forms['blogTimesPluginConfig'].elements['tickColor'],'pickTickColor');return false;" NAME="pickTickColor" ID="pickTickColor"> </A>
</div>
<div class="field">
More information about the pLog-svn
mailing list