User:Yasir72.multan/common.js

// Selection Monthly Colors var d = new Date; var ss = document.styleSheets[0]; var month = d.getMonth+1; if (month==1) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #ffa07a; color: black; }', 0); } } if (month==2) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #dcc7df; color: black; }', 0); } } if (month==3) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #98fb98; color: black; }', 0); } } if (month==4) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #b4cae3; color: black; }', 0); } } if (month==5) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #ff69b4; color: black; }', 0); } } if (month==6) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #50c878; color: black; }', 0); } } if (month==7) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #40e0d0; color: black; }', 0); } } if (month==8) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #dda0dd; color: black; }', 0); } } if (month==9) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #ff9900; color: black; }', 0); } } if (month==10) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #eef003; color: black; }', 0); } } if (month==11) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #db7093; color: black; }', 0); } } if (month==12) { if ("insertRule" in ss) { ss.insertRule('::selection { background: #00b3ff; color: black; }', 0); } }