zoukankan      html  css  js  c++  java
  • php 验证码代码

    1.js代码

    function fleshVerify(type){ 
    //重载验证码
    var timenow = new Date().getTime();
    if (type)
    {
    $('verifyImg').src= '/os/index.php/Admin/Public/verify/adv/1/'+timenow;
    }else{
    $('verifyImg').src= '/os/index.php/Admin/Public/verify/'+timenow;
    }
    
    }
    View Code
    <script language="JavaScript">
    <!--
        if(top!=self)
        if(self!=top) top.location=self.location;
    //-->
    </script>
    View Code
    //获取username 焦点
    <body onload="javascript:document.myform.username.focus();">
    
    <form action="#" method="post" name="myform">
    <input name="username" type="text" class="ipt" value="" />
    View Code
    <?php 
    $n=1;
    if(is_array($info))
    foreach($info AS $v){
        echo $v['url'];
        echo title_style($v[style]);
        echo str_cut($v['title'],40);
    }
    $n++;
    unset($n);
    ?>
    View Code
  • 相关阅读:
    JVM 体系结构
    字符集和编码
    Thinking in Java 笔记
    HSDB
    jdb
    JVM-Class文件
    JVM-操作码助记符
    表、栈和队列
    算法分析
    Shell 编程
  • 原文地址:https://www.cnblogs.com/suihui/p/4281374.html
Copyright © 2011-2022 走看看