已掉线,重新登录

首页 > 绿虎论坛 > 建站 > 主机 (发帖)

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

作者: @Ta

时间: 2015-07-11

点击: 5482

跟快乐是福的授权图片一样里面有时间运行

[隐藏样式|查看源码]


『回复列表(13|隐藏机器人聊天)』

1. 把带数字的图片拼接,或者用php中图形相关的函数,可以我还不会
(/@Ta/2015-07-11 07:11//)

2. <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 07:15//)

3. @小呆先生,我不会弄。俺是新手
(/@Ta/2015-07-11 07:15//)

4. 刚改帖子了?
(/@Ta/2015-07-11 07:15//)

5. @,没有啊
(/@Ta/2015-07-11 07:24//)

6. @,具体怎么设置阿
(/@Ta/2015-07-11 07:25//)

7. @欲与妄想,地址发来看看
(/@Ta/2015-07-11 07:49//)

8. @胜永http://92xgmz.booszan.com
(/@Ta/2015-07-11 08:23//)

9. @欲与妄想,妈的这背景音乐
(/@Ta/2015-07-11 08:32//)

10. @胜永,哈哈哈
(/@Ta/2015-07-11 08:35//)

11. @胜永,这背景音乐是不是很劲爆
(/@Ta/2015-07-11 08:40//)

12. @欲与妄想,毛,带我一哆嗦,代码都不看了
(/@Ta/2015-07-11 09:34//)

13. @胜永,你现在帮我看一下吧
(/@Ta/2015-07-11 11:48//)

回复需要登录

9月15日 05:40 星期一

本站由hu60wap6驱动

备案号: 京ICP备18041936号-1