您现在的位置是:首页 > 网站技术问题网站技术问题

进入网站的签名程序JS代码怎么写?

江湖快报网2022-11-06 05:09:50【网站技术问题】人已围观

简介  【实例描述】签名程序就是在用户登录网站时要求用户填写能够识别个人身份的登录名。【实例代码】html xmlns=。w3。org/1999/xhtml headtitle标题页-学无忧(www。xue51。

  【实例描述】签名程序就是在用户登录网站时要求用户填写能够识别个人身份的登录名。【实例代码】html xmlns=。w3。org/1999/xhtml headtitle标题页-学无忧(www。xue51。com)/title/headbodySCRIPT language=JavaScriptvar name=prompt(您是光临本站的VIP会员,请签名留念,让其他VIP认识你!,初级会员);document。
  write(h3center真诚欢迎您来访。google。comBRP + )document。write(font color=red+name +/font+ 先生(小姐)/h3);document。write()/SCRIPT/body/html

【难点剖析】本例的重点是JaVascript提供的“prompt”方法。
  其提供一个文本框,允许用户输入一些信息。本例用“name”变量获取用户输入的信息,然后显示在页面中。

JS实现FTP网站登录代码怎么写呢?

  html xmlns=。w3。org/1999/xhtml headtitle标题页-学无忧(www。xue51。com)/titlescript janguage=javascriptfunction goFtpSite() { //当前页面的导航,注意登录地址、用户名和密码document。
  location。href = ftp:// + document。ftp。login。value + : + document。ftp。password。value + @ + document。ftp。url。
  value;}/script/headbodyform name=ftptable border=0 cellpadding=1 cellspacing=1 bgcolor=#000000 align=centertrtdtable border=0 cellspacing=0 cellpadding=5 align=centertr bgcolor=#bbbbbbtd width=75 align=rightfont face=arial,helvetica size=-1Ftp:///font/tdtdfont face=arial,helvetica size=-1input type=text size=15 name=url/font/td/trtr bgcolor=#ddddddtd align=rightfont face=arial,helvetica size=-1Login:/font/tdtdfont face=arial,helvetica size=-1input type=text size=15 name=login maxlength=20/font/td/trtr bgcolor=#bbbbbbtd align=rightfont face=arial,helvetica size=-1Password:/font/tdtdfont face=arial,helvetica size=-1 input type=password size=15 name=password maxlength=20/font/td/trtr bgcolor=#fffffftd colspan=2 align=centerfont face=arial,helvetica size=-2input type=button onclick=goFtpSite(); value=登录input type=reset value=清空/font/td/tr/table/td/tr/table/form/body/html。

Tags:登录   代码   实现

很赞哦! ()

文章评论

    共有条评论来说两句吧...

    用户名:

    验证码:

本站推荐