<html> <head> <meta http-equit="Content-type" c charset="utf-8"> <title>动态选择头像logo</title> <script type="text/javascript"> <span>function</span><span> check(obj){ $(</span>"showImage").src = obj.<span>value; } </span><span>function</span><span> $(obj){ </span><span>return</span> document.<span>getElementById(obj); } </span></script> </head> <body> <?<span>php </span><span>echo</span> '<img src="'.<span>$_POST</span>['mylogo'].'">'<span>; </span>?> <img src="1.png"> <br> <form action="" method="post"> <select name="mylogo" name="submit" title=""/> </form> </body> </html>
以上就介紹了php使用post動態選擇頭像和js事件動態改變頭像,包括了方面的內容,希望對PHP教程有興趣的朋友有所幫助。