Recommended: ASP realizes the rotary display of js images In the afternoon, I made an asp+js to achieve the effect of the image rotation. The effect picture is as follows: The image rotation on the left is, I used js, and then I changed it to use asp to achieve the effect. pic.asp source code: % 'Connect database code saves sql=(select * from Pic order by picorder asc,id desc) Set rs=server.CreateObject(
Most of the verification codes on the website are picture verification codes.
Users may stay on the page for a long time, and the verification code may expire when the last submission is finally submitted. So you need to add a refresh function.
- Verification code: <inputname='checkimg'type='text'class='input'id='checkimg'style='width:50px;'maxlength='6'/><ahref='javascript: refreshimg()'title='can't see clearly, change the picture'><imgid='checkcode'src=/Include/check code.aspalign=absmiddleborder=0style='border:1pxsolid#ffffff'///</a><spanclass=FontRed>*</span><ahref='javascript: refreshimg()'title='can't see clearly, change the picture'><fontcolor='blue'>can't see clearly, change the picture</font></a>
- <scripttype=text/javascript>
- functionrefreshimg(){document.all.checkcode.src='/include/checkcode.asp';}
- </script>
The above is manually refreshed. The method below is to add an onFocus to the input, so that it will automatically refresh every time you click the input to enter the verification code.
- Verification code: <inputname='checkimg'type='text'class='input'id='checkimg'style='width:50px;'maxlength='6'onFocus='refreshimg();'/><ahref='javascript:refreshimg()'title='can't see clearly, change the picture'><imgid='checkcode'src='/include/checkcode.asp'border='0'align='absmiddle'//a>
- <scripttype=text/javascript>
- functionrefreshimg(){document.all.checkcode.src='/include/checkcode.asp';}
- </script>
The principles of refreshing verification codes are basically the same.
Author: Wuqing
Share: ASP code directly adds and deletes ACCESS tables and fields This example mainly tells how to use Create, Drop and Alter statements to add and delete ACCESS tables and fields. The code is as follows: % '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''