请问这种JS如何写?
if(tidex("XXXX")!=-1&&$('#smilieslist').length!=0){if($('textarea').length>0&&lodex("...
if(tidex("XXXX")!=-1 && $('#smilieslist').length!=0){
if ($('textarea').length > 0 && lodex("action=profile") == -1) {
if($('textarea').val().indexOf("[size=4][color=Blue]")==-1){
$('textarea').val(function(){return this.value+="[size=4][color=Blue] [/color][/size]"})
}
}
if(lodex("post.php")!=-1){
var smLogo=$('<img>',{id:"smLogo",src:gifUrl,alt:"插入自定义表情",click:fillit,style:"cursor:pointer"}).css({"height":"40px","margin":"-30px 0px 5px 50px"}).insertAfter($('#posteditor_morebuttons0').css({"display":"inline"}));
}else{
var smLogo=$('<img>',{id:"smLogo",src:gifUrl,alt:"插入自定义表情",click:fillit,style:"cursor:pointer"}).css({"height":"28px","margin":"0px 0px -7px 20px"}).appendTo($('label:has([name="subject"]),td:has([name="subject"])'));
}
}
XXX代表某个论坛 如何改动能让上面代码支持我想改的论坛? 展开
if ($('textarea').length > 0 && lodex("action=profile") == -1) {
if($('textarea').val().indexOf("[size=4][color=Blue]")==-1){
$('textarea').val(function(){return this.value+="[size=4][color=Blue] [/color][/size]"})
}
}
if(lodex("post.php")!=-1){
var smLogo=$('<img>',{id:"smLogo",src:gifUrl,alt:"插入自定义表情",click:fillit,style:"cursor:pointer"}).css({"height":"40px","margin":"-30px 0px 5px 50px"}).insertAfter($('#posteditor_morebuttons0').css({"display":"inline"}));
}else{
var smLogo=$('<img>',{id:"smLogo",src:gifUrl,alt:"插入自定义表情",click:fillit,style:"cursor:pointer"}).css({"height":"28px","margin":"0px 0px -7px 20px"}).appendTo($('label:has([name="subject"]),td:has([name="subject"])'));
}
}
XXX代表某个论坛 如何改动能让上面代码支持我想改的论坛? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询