前言介紹
- 這款 WordPress 外掛「Jellyfish Counter Widget」是 2013-01-12 上架。
- 目前有 1000 個安裝啟用數。
- 上一次更新是 2020-04-02,距離現在已有 1858 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 有 10 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
widget | Counter | animated | odometer | milometer |
內容簡介
Jellyfish Counter 外掛提供小工具和短代碼,可輕鬆在 WordPress 網站上新增動畫計數器。計數器可用作手動更新的總數、隨時間自動更新的計數器,或只是動畫視覺效果。每個計數器可以向上或向下計數,適用於總數遞增或倒數計時情況。對於旅遊博客或任何需要顯示任何運行總數或倒數計時的網站而言,這是一個很棒的視覺效果。
Jellyfish Counters 通過小工具界面高度可配置,並且通過 CSS 和 JavaScript 生成,不需要外部圖形文件。您可以在頁面上添加任意數量的計數器,每個計數器都可以擁有自己的總數和外觀設置。
短代碼支持允許您直接在任何文章或頁面內容中生成計數器,從而不再限於側邊欄或其他可用小工具的區域。
高級用戶會發現,Jellyfish Counter 對象完全可以通過 JavaScript 訪問並且可以按照您自己的自定義腳本進行控制和重新配置。
演示
有關演示和更多信息,請查看外掛主頁面:http://strawberryjellyfish.com/wordpress-plugins/jellyfish-counter/
用法
小工具
只需將計數器小工具拖到側邊欄中,並調整設置以適應您的需求。
有三種基本操作模式:
靜態 - 如果您只希望計數器顯示非動畫數字,只需將起始值設為所需數字,並將計數器類型設為“靜態”
動畫 - 如果您在小工具中提供開始值和結束值,計數器將向上或向下遞增,具體取決於所選計數器類型,直到達到結束值。計數速度由動畫速度選項控制。請注意,此計數器沒有記憶功能,在重新加載或更改頁面時將重置,但它非常適合用於開始值和結束值相對靠近的視覺效果。
連續 - 如果您需要長時間計數,需要您的計數器繼續計數,而不管頁面加載情況如何,只需在小部件中選擇連續選項。然後,選擇計數器增量之間的間隔時間(以秒為單位)。只要保存小工具,計數器就會“開始”,即使沒有人查看您的博客,它也會繼續計時。更改主動連續計數器的設置不會影響計數值,並且它將保持記數,如果您希望重置活動連續計數器,只需更改起始值並保存小部件,計數器就會從新的起始值重新開始。
請注意:在連續模式下,動畫速度和顯示十分位數無效。
通過小工具面板可以高度配置計數器。您可以定義數字高度、寬度和字體,以及動畫速度(僅限動畫模式)和“出故障率”(顯示器顯示數字不對準的類型)。
您可以通過“數字樣式”輸入進一步自定義單個計數器的外觀,該輸入將接受有效的 CSS 樣式屬性,例如字體、顏色、背景等。
請注意:此處的字體大小是從高度、寬度和間距自動計算的。
原文外掛簡介
The Jellyfish Counter plugin provides a widget and shortcode enabling you to
easily add animated counters to your WordPress site.
Counters can be used as a manually updated total, an automatic counter that
updates over time or just as an animated visual effect.
Each counter can count upwards or downwards making them suitable for both
incrementing totals or countdown situations. A great visual effect for travel
blogs or any website that wants to display a running total or countdown of anything.
Jellyfish Counters are highly configurable through the widget interface, and
being generated using CSS and JavaScript, they require no external graphics
files. You may have as many counters as you wish on a page, all can have
individual settings for totals and appearance.
Shortcode support allows you to generate a counter directly within any
post or page content making counters no longer limited to your sidebar or
other widgetable area.
Advanced users will find that Jellyfish Counter objects are fully accessible
via JavaScript and may be controlled and reconfigured as desired though your
own custom scripting.
Demo
Check out the plugin homepage for demos and further information:
Usage
Widget
Simply drag a counter widget to your sidebar and adjust the settings to suit
your needs.
There are three basic modes of operation:
Static – If you want the counter to simply display a non animated number
just set a Start Value to the desired number for the counter and set the
Counter Type to ‘static’
Animated – If you supply both start value and end value in the widget, the
counter will increment upwards or downwards depending on the chosen Counter
Type until it reaches the end value. Speed of the count is controlled by the
Animation Speed option. Note, this counter has no memory, it will reset when a
page is reloaded or changed but it is great for a visual effect where start and
end values are relatively close together.
Continuous – If you want to count over a long period of time and need your
counter to continue to count irrespective of page loads then just select the
continuous option in the widget. Then choose the interval between the counter
increments, in seconds. As soon as you save the widget the counter will “start”
and will continue to tick away even if nobody is viewing your blog. Changing the
setting on an active continuous counter will not effect the count value and it
will keep count, if you wish to reset an active continuous counter just change
the start value and save the widget and the counter will restart from the new
starting value.
Note: In continuous mode, animation speed and display tenths have no effect.
The counters are very configurable through the widget panel. You can define
the digit height, width and font as well as animation speed (animated mode only)
and “bustedness” (odometer style misalignment of the digits).
You can further customise the appearance of an individual counter via the
“Digit Style” input that will accept a valid CSS style attributes such as
font-family, colour, background etc.
Note: the size of the font here as is automatically calculated
from the height, width and padding settings.
Need a flat looking counter?
“Disable 3D effect” removes the CSS shading effect.
If you want to display a prefix on the counter or include separating
characters, use the Format input. Just enter a string here representing your
desired counter appearance, a 0 represents a counter digit, any other
character will be displayed as it is. The Format option overrides the number
of digits option, if a format string exists then the counter will use the
total number of 0 characters as the number of digits.
Example Formats:
$0.00
1,000,000
0000 km
Shortcode
You can generate a counter directly within page or post content using the
[jellyfish_counter] shortcode. The shortcode accepts a full range of
parameters to provide identical functionality to the widget version.
The following parameters may be used within a shortcode:
digits : a number, Number of digits in the counter
format : a string, representing any fancy display format
tenths : true/false, display tenths digit or not
digit_height : number, pixel height of digits
digit_width : number, pixel width of digits
digit_padding : number, pixel padding for digits
digit_style : a string, custom css styles for the digits
alignment : ‘left’, ‘center’, ‘right’, ‘inline’ overall counter alignment
bustedness : a number, misalignment of digits
flat : true/false, don’t show 3d effect, show 3d effect
speed : a number, 0 – 100, animation speed
start : a number, starting value for the counter
end : a number, ending value for the counter
direction : a, string ‘up’ or ‘down’
interval : The number of seconds between updates of a continuous counter
tick_multiplier : the number of units the counter will increment every interval (defaults to 1)
timestamp : false or a string representing the starting time for the counter
If you don’t specify a parameter it’s default value will be used.
Examples:
[jellyfish_counter end=100]
The above shortcode translates as:
Display a counter that animates upwards from 0 to 100
[jellyfish_counter start=999 end=0 direction=”down”
digit_style=”background: transparent; color: red;” flat=true;
timestamp=”2014-09-28 9:20:21″ interval=300 ]
The above shortcode translates as:
Display a counter that starts at 999 and ends at 0, counting downwards.
It has red digits on a transparent background with no 3D shading effect.
It is a persistent counter that started counting at 9:20:21 on 2014-09-28 and
has been decrementing by one every 300 seconds (5 minutes) since then.
Styling
You can modify the appearance of an individual counters text through the
widget control panel or through shortcode parameters. This should be
sufficient for most uses.
However, if you need to globally override the default counter style or make
other CSS changes to the counter digits or container, take a look at
jellyfish-counter.css for the appropriate class names. You should override
this in you theme rather than modifying this css file as any changes made
would be lost when the plugin upgrades..
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Jellyfish Counter Widget」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。