แม้ว่ามันจะเป็นเอฟเฟกต์ที่เรียบง่าย แต่ก็ยังต้องสะสมและบันทึก
ซอร์สโค้ดมีดังนี้:
<select id = "mySelect1"> <opovie value = ""> - - </potion> <ตัวเลือกค่า = "2015"> 2015 </potion> <ตัวเลือกค่า = "2014"> 2014 </opovie> <ตัวเลือกค่า = "2013"> 2013 </potion> - </ตัวเลือก> <ตัวเลือกค่า = "2015"> 2015 </potion> <ตัวเลือกค่า = "2014"> 2014 </optup> <ตัวเลือกค่า = "2014"> 2014 </optupt> <ตัวเลือกค่า = "2014"> 2014 </petion> <ตัวเลือกค่า = "2013"> 2013 var month = time.getMonth ()+1; var day = time.getday (); if (เดือน> 5 && วัน> 1) {var objselect = document.getElementById ("mySelect2"); objselect.options.add (ตัวเลือกใหม่ ("2016", "2016"), 1); objselect.options.remove (5); } if (เดือน> 7 && วัน> 1) {var objselect = document.getElementById ("mySelect1"); objselect.options.add (ตัวเลือกใหม่ ("ระดับ 2016", "2016 ระดับ"), 1); objselect.options.remove (5); -