|
|
第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);
| |
| }
| |