日期:2014-05-16  浏览次数:20486 次

新手求教!如何给输出文字更换颜色!
javascript:var content;var tieba;content=prompt("[试验]\n内容:","试验");tieba=rich_postor._getData();tieba.content="<a href=http://"+content+"/' target='_blank' >"+content+"</a>";PostHandler.post(rich_postor._option.url,tieba,function(I){rich_postor.showAddResult(I)},function(I){});void 0;

------解决方案--------------------
javascript:var content;var tieba;content=prompt("[试验]\n内容:","试验");tieba=rich_postor._getData();tieba.content="<a style="color:red;" href=http://"+content+"/' target='_blank' >"+content+"</a>";PostHandler.post(rich_postor._option.url,tieba,function(I){rich_postor.showAddResult(I)},function(I){});void 0;


试试