1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | /*********** 換骰語法 ************* * 用法:發噗或留言時先輸入指定的【換骰表符】,再擲骰子(dice20) * 就會看到骰子變成自訂的圖片 ************************************************** /* 換骰表符:6164e9f54bd3a61c012883e41f83dfd4,有需要可以換成其他表符 */ .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)']{ width: 0px; height: 0px; padding: 48px 48px 0 0; /* 在這裡設定換骰後的表符大小,表符有多大就設定成多大 */ background-repeat: no-repeat; background-position: center; } /* 移到噗的時候顯示原本的骰子,不需要可以刪除此段 */ .plurk .text_holder:hover img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)']{ width: auto; height: auto; padding: 0; background-image: none !important; } /****** 骰子圖片設定 ******/ .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='1']{ background-image: url('https://emos.plurk.com/f7f1914608d113a630b2f6252a20439c_w48_h48.png'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='2']{ background-image: url('https://emos.plurk.com/b58bd7ac493388d10495746e694ad5bd_w48_h48.png'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='3']{ background-image: url('https://emos.plurk.com/08b1a21a80f5196c2b6148b46aa261ac_w48_h48.png'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='4']{ background-image: url('https://emos.plurk.com/869fe5c2be097e3b8e8ba90b2723d447_w48_h48.png'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='5']{ background-image: url('https://emos.plurk.com/baa05f7e1884fdbff79c13636587c0e3_w48_h48.png'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='6']{ background-image: url('https://emos.plurk.com/fc1f04eec6afcfbc3f02dd2e00bf5f71_w48_h48.png'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='7']{ background-image: url('https://emos.plurk.com/34a901a20279dbe3ff282bcd196258fa_w48_h48.png'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='8']{ background-image: url('https://emos.plurk.com/406b015b6f2f90c2c9e2ca224275c26b_w48_h48.png'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='9']{ background-image: url('https://emos.plurk.com/a751f26bc50db7c25bfa9bee7a13fde6_w48_h48.png'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='10']{ background-image: url('https://emos.plurk.com/590c468d90b6ebfdebd04be7481ca546_w48_h48.png'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='11']{ background-image: url('https://emos.plurk.com/4fb1a1092603b45d680079ec22bb4c8b_w48_h48.png'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='12']{ background-image: url('https://emos.plurk.com/021bc8a0e02f898ac8ed5a47a5ce70b1_w48_h48.jpg'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='13']{ background-image: url('https://emos.plurk.com/42143581c1b11e8f4d87d32601a26614_w48_h48.jpg'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='14']{ background-image: url('https://emos.plurk.com/28c7fdab5757b7e9bd7d8022b5bc5d58_w48_h48.jpg'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='15']{ background-image: url('https://emos.plurk.com/51a1382ca7bc8216532d57c658655956_w48_h48.jpg'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='16']{ background-image: url('https://emos.plurk.com/e33efce13cb98c5728c8ac1afa9dea7b_w48_h48.jpg'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='17']{ background-image: url('https://emos.plurk.com/99904d4351d16bcf5c13e3f42c32a638_w48_h48.jpg'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='18']{ background-image: url('https://emos.plurk.com/3303fdac4a8ca32fbd6499ccf0920fd5_w48_h48.jpg'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='19']{ background-image: url('https://emos.plurk.com/6b8816ae779613be937539f70760e3a3_w48_h48.jpg'); } .plurk .text_holder img[src*='6164e9f54bd3a61c012883e41f83dfd4'] ~ img.emoticon[alt='(dice20)'][rndnum='20']{ background-image: url('https://emos.plurk.com/2e5bc5999364175ffaef19d1ebda94ef_w48_h48.jpg'); } |
Direct link: https://paste.plurk.com/show/AsYlrmhXvVeFautCjjwl