`
文章列表
控制横向和纵向滚动条的显隐? <body style="overflow-y:hidden"> 去掉x轴 <body style="overflow-x:hidden"> 去掉y轴 <body scroll="no">不显 -------------------------------------------------------------------------------- 表格变色 <TD onmouseover="this.style.backgr ...
<script language="JavaScript"> <!-- //图片按比例缩放 var flag=false; function DrawImage(ImgD,iwidth,iheight){ //参数(图片,允许的宽度,允许的高度) var image=new Image(); image.src=ImgD.src; if(image.width>0 && image.height>0){ flag=true; if(image.width/image.height>= iwidth/i ...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META NAME="Author" CONTENT="goaler" /> <META NAME="Keywords" CONTENT="特殊字符、常规符号及其代码对照表" /> <META NAME="Descript ...
<html> <head> <title>JavaScript TO HTML 转换</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> ...
<html> <head> <title>HTML TO JavaScript 转换</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> simulate combox control - http://www.never-online.net </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONT ...
<script> function toScript(val) { var value = val.value value = value.replace(/\\/gi,"\\\\").replace(/"/gi,"\\\"").replace(/'/gi,"\\\'") valArr = value.split("\r\n") value="" for (i=0; i<valArr.length; i++) { value += ( ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; chars ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; chars ...
<style> /* 先把这个 xmenu 的样式放到css里 */ .xmenu td{font-size:12px;font-family:verdana,arial;font-weight:bolder;color:#ffffff;border:1px solid #336699;background:#336699;filter:blendtrans(duration=0.5);cursor:hand;text-align:center;} </style> <script> /* http://lexrus.blueidea.c ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME=&qu ...
<script language=JavaScript> <!-- var imgUrl=new Array(); var imgLink=new Array(); var adNum=0; var jumpUrl="http://sports.tom.com/"; imgLink[1]="http://sports.tom.com/gnzt/2005yg/"; imgLink[2]="http://sports.tom.com/zhty/"; imgUrl[1]="http: ...
传统的HTML页面中连动下拉框采用了两种方法: 1)直接将下拉框中的内容hardcode于html的javascript中,调用javascript函数循环写入下拉框中。这种方法不适用于下拉框内容经常改变的情况。因为数据源和javascript程序写死在同一页面 ...
1、用鼠标拖动来改变大小 <SCRIPT LANGUAGE="JavaScript"> function resizeImage(evt,obj){ newX=evt.x newY=evt.y obj.width=newX obj.height=newY } </script> <img src="7say.gif" ondrag="resizeImage(event,this)"> 2、用鼠标滚动控制图片大小 <img src="7say.gif&quo ...

文本加密解密

<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function Encrypt(theText) { output = new String; Temp = new Array(); Temp2 = new Array(); TextSize = theText.length; for (i = 0; i < TextSize; i++) { rnd = Math.round(Math.random() * 122) + 68; Temp[i] = theText.charCodeAt ...
Global site tag (gtag.js) - Google Analytics