123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- $(function () {
- //模拟下拉框
- $('.input_in .icon').on('click', function () {
- $('.input_in .icon >img').attr('src', 'image/image10.png');
- if ($('.input_in .class-list').is('.hide')) {
- $('.input_in .class-list').removeClass('hide');
- } else {
- $('.input_in .class-list').addClass('hide');
- $('.input_in .icon >img').attr('src', 'image/image6.png');
- }
- })
- $('.class-list ul li').on('click', function () {
- $('.input_in .icon >img').attr('src', 'image/image6.png');
- $('.input_in input').val($(this).html());
- $('.input_in .class-list').addClass('hide');
- })
- $('.class-list ul li').hover(
- function () {
- $(this).css({'backgroundColor': '#AAA9FB',});
- }, function () {
- $(this).css({'backgroundColor': '#CFB7FD',});
- }
- )
-
- })
- // $(document).ready(function () {
- // $(function () {
- // var time = 5;//倒计时总秒数量
- // (function () {
- // var intDiff = parseInt(time);//倒计时总秒数量
- // function timer(intDiff) {
- // window.setInterval(function () {
- // var day = 0, hour = 0, minute = 0, second = 0;//时间默认值
- // if (intDiff > 0) {
- // day = Math.floor(intDiff / (60 * 60 * 24));
- // hour = Math.floor(intDiff / (60 * 60)) - (day * 24);
- // minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
- // second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
- //
- // }
- // if (minute <= 9) minute = '0' + minute;
- // if (second <= 9) second = '0' + second;
- // if(intDiff==0){
- // $('.mark').addClass('hide')
- // console.log(55);
- // }
- // $('#day_show').html(day);
- // $('#hour_show').html(hour);
- // $('#minute_show').html(minute);
- // $('#second_show').html(second);
- // intDiff--;
- //
- //
- // }, 1000);
- //
- //
- //
- // };
- //
- // $(function () {
- // timer(intDiff);
- //
- // });
- // })(time)
- //
- // })
- // })
|