请输入网址名字：
显示文字
输入URL地址：
设置图标
从现有图标中选择一个
或者上传一个图片作为图标 (格子图标素材交流)
(最大200KB)
充满图标 按比例缩小 不作改动
上传
选择背景色
选择文字颜色
style="background-image: url($list[0][icon]);"> style="color:$list[0][titlecolor];">$list[0][title]
完成
取消
none
{$cdtat_start} $("#form_add_custom_icon_links").submit(submitAddCustomIconForm); $("#form_add_custom_icon_image_links").submit(submitAddCustomIconUploadImageForm); $("#set_color_white").click(function(){change_sample_bgcolor(0); }); $("#set_color_green").click(function(){change_sample_bgcolor(2); }); $("#set_color_blue").click(function(){change_sample_bgcolor(3); }); $("#set_color_red").click(function(){change_sample_bgcolor(4); }); $("#set_color_brown").click(function(){change_sample_bgcolor(5); }); $("#set_color_orange").click(function(){change_sample_bgcolor(6); }); $("#set_color_purple").click(function(){change_sample_bgcolor(7); }); function leon_l_set_icon(l_i) { document.getElementById("add_custom_icon_links_image_type_default").checked=true; // $("#add_custom_icon_links_image_type_default").checked = true; $("#add_custom_icon_links_image_default").val(l_i); $("#add_custom_icon_links_image_default_filename").val("/images/a/icon/def/"+l_i+".gif"); $("#add_custom_icon_links_image_file_existing").val(""); $("#add_custom_icon_links_example_content").css("background-image","url('/images/a/icon/def/"+l_i+".gif')"); $("#add_custom_icon_links_example_content_text").html($("#add_custom_icon_links_label").val()+"
");} $("#add_custom_icon_links_default_1").click(function() { leon_l_set_icon(1); }); $("#add_custom_icon_links_default_2").click(function() { leon_l_set_icon(2); }); $("#add_custom_icon_links_default_3").click(function() { leon_l_set_icon(3); }); $("#add_custom_icon_links_default_4").click(function() { leon_l_set_icon(4); }); $("#add_custom_icon_links_default_5").click(function() { leon_l_set_icon(5); }); $("#add_custom_icon_links_default_6").click(function() { leon_l_set_icon(6); }); $("#add_custom_icon_links_default_7").click(function() { leon_l_set_icon(7); }); $("#add_custom_icon_links_default_8").click(function() { leon_l_set_icon(8); }); $("#add_custom_icon_links_default_9").click(function() { leon_l_set_icon(9); }); $("#add_custom_icon_links_default_10").click(function() { leon_l_set_icon(10); }); $("#add_custom_icon_links_default_11").click(function() { leon_l_set_icon(11); }); $("#add_custom_icon_links_default_12").click(function() { leon_l_set_icon(12); }); $("#add_custom_icon_links_default_13").click(function() { leon_l_set_icon(13); }); $("#add_custom_icon_links_default_14").click(function() { leon_l_set_icon(14); }); $("#add_custom_icon_links_default_15").click(function() { leon_l_set_icon(15); }); $("#add_custom_icon_links_default_16").click(function() { leon_l_set_icon(16); }); $("#add_custom_icon_links_default_17").click(function() { leon_l_set_icon(17); }); $("#add_custom_icon_links_default_18").click(function() { leon_l_set_icon(18); }); $("#add_custom_icon_links_default_19").click(function() { leon_l_set_icon(19); }); $("#add_custom_icon_links_default_20").click(function() { leon_l_set_icon(20); }); $("#add_custom_icon_links_default_21").click(function() { leon_l_set_icon(21); }); $("#add_custom_icon_links_default_22").click(function() { leon_l_set_icon(22); }); $("#add_custom_icon_links_default_23").click(function() { leon_l_set_icon(23); }); $("#add_custom_icon_links_default_24").click(function() { leon_l_set_icon(24); }); $("#add_custom_icon_links_default_25").click(function() { leon_l_set_icon(25); }); $("#add_custom_icon_links_default_26").click(function() { leon_l_set_icon(26); }); $("#add_custom_icon_links_default_27").click(function() { leon_l_set_icon(27); }); $("#add_custom_icon_links_default_28").click(function() { leon_l_set_icon(28); }); $("#add_custom_icon_links_default_29").click(function() { leon_l_set_icon(29); }); $("#add_custom_icon_links_default_30").click(function() { leon_l_set_icon(30); }); $("#add_custom_icon_links_default_31").click(function() { leon_l_set_icon(31); }); $("#add_custom_icon_links_default_32").click(function() { leon_l_set_icon(32); }); $("#add_custom_icon_links_default_33").click(function() { leon_l_set_icon(33); }); $("#add_custom_icon_links_default_34").click(function() { leon_l_set_icon(34); }); $("#add_custom_icon_links_default_35").click(function() { leon_l_set_icon(35); }); $("#add_custom_icon_links_default_36").click(function() { leon_l_set_icon(36); }); $("#add_custom_icon_links_default_37").click(function() { leon_l_set_icon(37); }); $("#add_custom_icon_links_default_38").click(function() { leon_l_set_icon(38); }); $("#add_custom_icon_links_default_39").click(function() { leon_l_set_icon(39); }); $("#add_custom_icon_links_default_40").click(function() { leon_l_set_icon(40); }); $("#add_custom_icon_links_default_41").click(function() { leon_l_set_icon(41); }); $("#add_custom_icon_links_default_42").click(function() { leon_l_set_icon(42); }); $("#add_custom_icon_links_default_43").click(function() { leon_l_set_icon(43); }); $("#add_custom_icon_links_default_44").click(function() { leon_l_set_icon(44); }); $("#add_custom_icon_links_default_45").click(function() { leon_l_set_icon(45); }); $("#add_custom_icon_links_default_46").click(function() { leon_l_set_icon(46); }); $("#add_custom_icon_links_default_47").click(function() { leon_l_set_icon(47); }); $("#add_custom_icon_links_default_48").click(function() { leon_l_set_icon(48); }); $("#add_custom_icon_links_default_49").click(function() { leon_l_set_icon(49); }); $("#add_custom_icon_links_default_50").click(function() { leon_l_set_icon(50); }); $("#add_custom_icon_links_default_51").click(function() { leon_l_set_icon(51); }); $("#add_custom_icon_links_default_52").click(function() { leon_l_set_icon(52); }); $("#add_custom_icon_links_default_53").click(function() { leon_l_set_icon(53); }); $("#add_custom_icon_links_default_54").click(function() { leon_l_set_icon(54); }); $("#add_custom_icon_links_default_55").click(function() { leon_l_set_icon(55); }); $("#add_custom_icon_links_default_56").click(function() { leon_l_set_icon(56); }); $("#add_custom_icon_links_default_57").click(function() { leon_l_set_icon(57); }); $("#add_custom_icon_links_default_58").click(function() { leon_l_set_icon(58); }); $("#add_custom_icon_links_default_59").click(function() { leon_l_set_icon(59); }); $("#add_custom_icon_links_default_60").click(function() { leon_l_set_icon(60); }); $("#add_custom_icon_links_default_61").click(function() { leon_l_set_icon(61); }); $("#add_custom_icon_links_default_62").click(function() { leon_l_set_icon(62); }); $("#add_custom_icon_links_default_63").click(function() { leon_l_set_icon(63); }); $("#add_custom_icon_links_default_64").click(function() { leon_l_set_icon(64); }); $("#add_custom_icon_links_default_65").click(function() { leon_l_set_icon(65); }); $("#add_custom_icon_links_default_66").click(function() { leon_l_set_icon(66); }); $("#add_custom_icon_links_default_67").click(function() { leon_l_set_icon(67); }); $("#add_custom_icon_links_default_68").click(function() { leon_l_set_icon(68); }); $("#add_custom_icon_links_default_69").click(function() { leon_l_set_icon(69); }); $("#add_custom_icon_links_default_70").click(function() { leon_l_set_icon(70); }); $("#add_custom_icon_links_default_71").click(function() { leon_l_set_icon(71); }); $("#add_custom_icon_links_default_72").click(function() { leon_l_set_icon(72); }); $("#add_custom_icon_links_default_73").click(function() { leon_l_set_icon(73); }); $("#add_custom_icon_links_default_74").click(function() { leon_l_set_icon(74); }); $("#add_custom_icon_links_default_75").click(function() { leon_l_set_icon(75); }); $("#add_custom_icon_links_default_76").click(function() { leon_l_set_icon(76); }); function change_sample_bgcolor(l_color) { var obj = $("#add_custom_icon_links_example"); try{obj.removeClass('white');}catch(e) {} try{obj.removeClass('green'); }catch(e) {} try{ obj.removeClass('blue');}catch(e) {} try{ obj.removeClass('red'); }catch(e) {} try{obj.removeClass('brown'); }catch(e) {} try{ obj.removeClass('orange'); }catch(e) {} try{ obj.removeClass('purple');}catch(e) {} switch(l_color) { case 0: obj.addClass('white'); break; case 2: obj.addClass('green'); break; case 3: obj.addClass('blue'); break; case 4: obj.addClass('red'); break; case 5: obj.addClass('brown'); break; case 6: obj.addClass('orange'); break; case 7: obj.addClass('purple'); break; default: obj.addClass('white'); } $("#add_custom_icon_bg_color").val(''+l_color); $("#add_custom_icon_bg_color2").val(''+l_color); } function leon_l_upload_icon_image() { $("#add_custom_icon_links_wait").show(); document.getElementById("add_custom_icon_links_image_type_browse").checked=true; // $("#add_custom_icon_links_image_type_browse").checked = true; $("#form_add_custom_icon_image_links").submit(); } function leon_l_set_sample_text() { $("#add_custom_icon_links_example_content_text").html($("#add_custom_icon_links_label").val()+"
"); } $("#add_custom_icon_links_label").blur(function() {leon_l_set_sample_text(); }); leon_l_set_sample_text(); $("#add_custom_icon_links_example_content").css("background-image","url('$list[0][icon]')"); $("#set_text_color_handle").click(function() { add_icon_show_color_picker(); }); function add_icon_show_color_picker() { if(document.getElementById("div__colorpicker").innerHTML != 'none') { $("#div__colorpicker").css("display","block"); return; } var html_content = '
默认颜色 关闭

'; var arr_color1 = new Array('00','33','66'); var arr_color2 = new Array('00','33','66','99','cc','ff'); var arr_color3 = new Array('000000','333333','666666','999999','cccccc','ffffff', 'ff0000', '00ff00','0000ff', 'ffff00', 'ff00ff','00ffff'); var idx=0; for(k=0;k'; idx++; for(i=0;i'; } } html_content += ''; } var arr_color1 = new Array('99','cc','ff'); for(k=0;k'; idx++; for(i=0;i'; } } html_content += ''; } html_content += '

'; $("#div__colorpicker").html( html_content ); $("#div__colorpicker").css("display","block"); } function add_icon_close_color_picker() { $("#div__colorpicker").css("display","none"); } function add_icon_set_text_color(color_val) { $("#add_custom_icon_text_color").val(color_val); // if(color_val == 'transparent') $("#add_custom_icon_links_example_content_text").css("color",color_val); $("#add_custom_icon_text_color_sample").css("background-color",color_val); add_icon_close_color_picker(); } add_icon_set_text_color('$list[0][titlecolor]'); {$cdtat_end}
{$value[name]}
{$data[title]}
{$cdtat_start} $("#form_add_recommend_icon_links").submit(submitAddCustomIconForm); $("#add_recommend_icon_desktop_id").val( desktopId ); function leon_l_set_quick_icon(l_i) { $("#add_recommend_icon_links_id").val(l_i); $("#form_add_recommend_icon_links").submit(); } $("#quick_icon_{$data[id]} div.iconcontent").click(function() { leon_l_set_quick_icon("{$data[id]}"); }); {$cdtat_end}