203
个编辑
小 (经过同意帮忙删除) 标签:替换 2017年版源代码编辑 |
小无编辑摘要 标签:2017年版源代码编辑 |
||
第1行: | 第1行: | ||
[[File:你看看你多变态.jpeg|缩略图]] | [[File:你看看你多变态.jpeg|缩略图]] | ||
//创建输入框 | |||
var oon = $("#message> div.room-submit-wrap> input") | |||
$("<button type='button' onclick='sc();'>POSTT!</button>").insertAfter(oon); | |||
$("<p>'文本'<Textarea id = 'srk' cols = '4' rows = '1' value = '文本' > </Textarea></p>").insertAfter(oon); | |||
$("<p>'运行速度 单位:毫秒'<Textarea id = 'speed' cols = '4' rows = '1' value = '运行速度' > </Textarea></p>").insertAfter(oon); | |||
yi = 0 | |||
function hhh3(){ | |||
//核心部分 | |||
hhh = $("#srk").val().split("。"); | |||
HHH = hhh.length; | |||
if(yi == HHH-1){ | |||
clearInterval(myshhh2); | |||
$.post("#",{message: "/me结束"}); | |||
yi = 0; | |||
} | |||
else{ | |||
$.post("#",{message: "/me"+hhh[yi]+"。"}); | |||
yi = yi+1; | |||
} | |||
} | |||
function sc(){ | |||
//循环部分 | |||
speed2 = $("#speed").val(); | |||
myshhh2 = setInterval(hhh3,speed2); | |||
} |
个编辑