【教程】最新贴吧动态头像设置方法 动态头像设置: 1. 登录贴吧,打开 httpwww.baidu.compsettingprofileportrait 2. 运行书签 javascriptvar i=document.createElement('input');i.type='file';document.getElementsByClassName('setting-profile-title')[0].appendChild(i); 3. 选择GIF动态图片 4. 运行书签 javascriptvar f=new FormData();f.append('ct',4);f.append('spIsBlogPicAdd',2);f.append('spAlbumName','abc');f.append('BrowserType',1);f.append('spRefURL','httpwww.baidu.compsettingprofileportrait');f.append('Filename','blob.png');f.append('cm',1);f.append('file',i.files[0]);f.append('upload','baidu sumit headportrait');var xhr=new XMLHttpRequest();xhr.open('POST','httphimg.baidu.comsysupload'+App.router.global.login_userInfo.portrait);xhr.withCredentials=true;xhr.send(f); 5. 打开一个帖子,Ctrl+F5刷新一下,看自己的头像是不是动了。
(注:运行书签方法——全选后拖到书签栏),IE好像不行。。贴吧动态头像演示:httppan.baidu.comsharelinkshareid=483407&uk=1966136055
(注:运行书签方法——全选后拖到书签栏),IE好像不行。。贴吧动态头像演示:httppan.baidu.comsharelinkshareid=483407&uk=1966136055