DEDECMS Member Center vertical landing and lateral landing modification method
Source: Internet
Author: User
KeywordsDedecms vertical landing lateral landing Member Center
DEDECMS Member Center vertical landing and lateral landing modification method, we can according to their own needs to modify! The following modified member login code, remove the Dedecms and comment on the function, so that the Member center more concise, but also more convenient for the user's use! Let's make some changes together.
The first step: the first is JS call
Whether horizontal or vertical, directly call the dream of the JS code, the code is as follows:
<script language= "javascript" type= "Text/javascript" src= "{dede:global.cfg_cmsurl/}/include/dedeajax2.js" > </script>&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; <script language= "javascript" type= "Text/javascript" > function Checklogin () { var taget_obj = document.getElementById (' _userlogin '); Myajax = new Dedeajax (Taget_obj,false,false, ', ', ', '); Myajax. SendGet2 ("{dede:global.cfg_cmspath/}/member/ajax_loginsta.php"); Dedexhttp = null; } </script> The direct copy is placed inside the head.
Step two: The partial modification of the landing box
If you want to vertical the landing box, copy the code
<div id= "_userlogin" ><!--dynamically displayed content block, the ID value must be the _ in the document.getElementById (' _userlogin ') above Userlogin remain consistent-->
<script language= "javascript" type= "Text/javascript" >checklogin ();</script><!--This function must be loaded, Used to get the function checklogin () functions above-->
The following is a CSS style, you can change according to their own needs to different styles
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.