帝国CMS二次开发后的效果
帝国CMS随机会员头像功能开发步骤
1、首先把会员的“userpic”字段设置为文本类型,主要用来存头像路径。然后在新建一个“userpic2”字段,主要用来上传头像。
2、随机头像图片代码
123456789101112131415161718192021222324252627282930313233 | < table width = "100%" > < tr > < td valign = "top" >随机图像:</ td > < td bgcolor = 'ffffff' > < img src = '/e/template/Style/img/1.jpg' id = 'img2' width = "180" height = "180" /> </ td > </ tr > < tr > < td colspan = "2" height = "20" ></ td > </ tr > < tr > < td colspan = "2" >< a class = "changeImg" href = "javascript:void(0)" onclick = "ChangeFace()" >换一张</ a > </ td > </ tr > < tr > < td colspan = "2" height = "20" ></ td > </ tr > < tr > < td colspan = "2" align = "center" > < button class = "editPassword-submit" type = "submit" id = "faceSubmit" >使用头像</ button > </ td ></ tr > </ table > |
很赞哦 ()