图片里面怎么添加时间代码啊

跟快乐是福的授权图片一样里面有时间运行
回复列表(13|隐藏机器人聊天)
  • @Ta / 2015-07-11 / /
    把带数字的图片拼接,或者用php中图形相关的函数,可以我还不会
  • @Ta / 2015-07-11 / /
    <script language="JavaScript">
    <!-- Hide this script from old browsers --
    function modRange (value, min, max) {
        if (min == max) {
            return (min)
        }
        var low = Math.min (min, max)
        var high = Math.max (min, max)
        var range = high - low + 1
        var valOff = parseInt (value) - low
        var mod = range * Math.floor (valOff / range)
        result = low + valOff - mod
        if (result < low) {
            result += high
        }
        if (result > high) {
            result = low
        }
        return (result)
    }
    function array () {
        this[0] = null
    }
    function timerAppStart () {
        this.stop ()
        this.loop ()
    }
    function timerAppStop () {
        clearTimeout (this.timeout)
        this.timeout = null
    }
    function timerAppToggle () {
        if (this.timeout) {
            this.stop ()
        } else {
            this.start ()
        }
    }
    function timerAppLoop () {
        this.update ()
        command = this.name + '.loop()'
        for (var i = 0; i < this.syncCount; i++) {
            if (this.syncName != '') {
                if (--this.syncCountdown <= 0) {
                    this.syncCountdown = this.syncInterval
                    command += ';' + this.syncName + '.update()'
                }
            }
        }
        this.timeout = setTimeout (command, this.interval)
    }
    function timerAppSetOutput (output) {
        if (! this.output) {
            this.output = output
        }
    }
    function timerAppSetInterval (interval) {
        if (interval) {
            var newInterval = parseInt (interval)
            if (newInterval > 0) {
                this.interval = newInterval
            } else {
                alert ('Interval value must be a positive number: ' + interval)
            }
        }
    }
    function timerAppSync (name, interval) {
        if (interval == null) {
            interval = 1
        }
        if (interval <= 0) {
            eval (this.name + '.unsync("' + name + '")')
            return

        }

        var newIndex = this.syncCount

        for (var i = 0; i < this.syncCount; i++) {

            if (this.syncName == name) {

                newIndex = i

                break

            }

        }

        if (newIndex == this.syncCount) {

            this.syncCount++

        }

        this.syncInterval[newIndex] = interval

        this.syncCountdown[newIndex] = interval

        this.syncName[newIndex] = name

    }

    function timerAppUnsync (name) {

        for (var i = 0; i < this.syncCount; i++) {

            if (this.syncName == name) {

                this.syncName = ''

                if (i == (this.syncCount - 1)) {

                    this.syncCount--

                }

            }

        }

    }

    function timerAppSetIncrement (increment) {

        if (increment) {

            var newIncrement = parseInt (increment)

    //*Unix only*   if (! isNan (newIncrement)) {

            if (newIncrement != 0) {

                this.increment = newIncrement

            } else {

                alert ('Increment value must be a number: ' + increment)

            }

        }

    }

    function timerAppSetBounce (bounce) {

        if (bounce) {

            var newBounce = parseInt (bounce)

    //*Unix only*   if (! isNan (newBounce)) {

            if (newBounce != 0) {

                this.bounce = newBounce

            } else {

                alert ('Bounce value must be a number: ' + bounce)

            }

        }

    }

    function timerAppSetOffset (offset) {

        if (offset) {

            var newOffset = parseInt (offset)

            if ((newOffset > 0)

                 &&  (newOffset <= this.output.length)) {

                this.offset = newOffset

            } else {

                warnMessage = 'Value of offset must be a valid index (0 - '

                            + this.output.length + '): ' + offset

                alert (warnMessage)

            }

        }

    }

    function clock (name, output, interval) {

        // Initialize with default values

        this.name = name            // object name, needed for setTimeout

        this.output = null          // output area

        this.interval = 1000        // milliseconds

        this.timeout = null

        this.syncCount = 0

        this.syncName = new array ()

        this.syncInterval = new array ()

        this.syncCountdown = new array ()

       
  • @Ta / 2015-07-11 / /
    @小呆先生,我不会弄。俺是新手
  • @Ta / 2015-07-11 / /
    刚改帖子了?
  • @Ta / 2015-07-11 / /
    @,没有啊
  • @Ta / 2015-07-11 / /
    @,具体怎么设置阿
  • @Ta / 2015-07-11 / /
    @欲与妄想,地址发来看看
  • @Ta / 2015-07-11 / /
    @欲与妄想,妈的这背景音乐
  • @Ta / 2015-07-11 / /
    @胜永,哈哈哈
  • @Ta / 2015-07-11 / /
    @胜永,这背景音乐是不是很劲爆
  • @Ta / 2015-07-11 / /
    @欲与妄想,毛,带我一哆嗦,代码都不看了
  • @Ta / 2015-07-11 / /
    @胜永,你现在帮我看一下吧
添加新回复
回复需要登录