]."/> ].">

Home  >  Article  >  Backend Development  >  How to modify avatar in php?

How to modify avatar in php?

coldplay.xixi
coldplay.xixiOriginal
2020-07-23 09:10:223349browse

How to modify the avatar in php: first click on the avatar picture; then in the pop-up selection window, select one of them and the window will launch the avatar change. The code is [a4fb0b998719bdb27f65b5895ac8d08e2cacc6d41bbb37262a98f745aa00fbf0].

How to modify avatar in php?

php method to modify the avatar:

First click on the avatar picture, a selection window will pop up, select one of them and the window Introducing avatar replacement.

Effect:

Main page code:


    头像:
    
    
    头像

Sub-page code (pop-up form page):

    
    
    

请选择头像:

"; }?>

JS code used:

Quote:

    
    

Code:

window.onload =  function() {
    //获取face.php页面中的头像对象
    var img = document.getElementsByTagName('img');
    //进行循环
    for(i=0;i

Related learning recommendations: PHP programming from entry to proficiency

The above is the detailed content of How to modify avatar in php?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn