目標はリンクの色を変更することですが、ホバー状態の色です。
これは完璧に機能します:
jQuery("body").css( "background-color", ui.color.toString());
ただし、ホバーの色を変更したい場合は機能しません:
jQuery("a:hover").css( "color", ui.color.toString());
完全なスクリプトは次のとおりです。
$('#wide-load').iris({ 幅: 170, 非表示: 偽、 パレット: ['#125', '#459', '#78b', '#ab0', '#de3', '#f0f'], 変更:関数(イベント、UI){ jQuery("body").css( "背景色", ui.color.toString()); jQuery("a:hover").css( "color", ui.color.toString()); } });
オンライン スクリプト:
http://automattic.github.io/Iris/