CSDN博客

img satans18

代码

发表于2004/9/29 14:15:00  639人阅读

分类: ASP

onclick="alert(event.srcElement.innerText)"                           //////////////////神奇



<script language="Javascript">
function closeinfo(){window.close();}
setTimeout("closeinfo()", 1000);
</script>
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=a.asp">


<marquee scrollamount="1" scrolldelay="30" direction= "up" width="220" id="helpor_net" height="60" onMouseOver="helpor_net.stop()" onMouseOut="helpor_net.start()" Author:redriver; >
</marquee>

 <iframe width="100%" height="100%" src="jihui.asp" frameborder=0 name="right"></iframe>

response.write"<script>alert('未提供,技术支持:022-27310823');history.go(-1);</script>"

//获取当前Select列表项目的值:
function GetSelectValue(obj){
 for(var i=0; i<obj.options.length; i++){
  if(obj.options[i].selected==true){
   return obj.options[i].value;
   break;
  }
 }
}

 

<script language="JavaScript" type="text/JavaScript">
function getSelectName(){
alert("你选择的是:"+document.form1.select1.options[document.form1.select1.selectedIndex].text+"++++");}
</script>

=/=========================================================
<marquee id="test">
</marquee>
<script language=javascript>
var a=new Array("<table><tr><td>第一页</td></tr><tr><td>第一页</td></tr><tr><td>第一页</td></tr></table>","<table><tr><td>第二页</td></tr><tr><td>第二页</td></tr><tr><td>第二页</td></tr></table>","<table><tr><td>第三页</td></tr><tr><td>第三页</td></tr><tr><td>第三页</td></tr></table>");
var i=0;
change();
function change()
{
 eval('test').innerHTML=a[i++];
 if (i<3){
 setTimeout("change();",1000);}
}
</script>
===========================================














<SCRIPT LANGUAGE=&#106avascript>
<!--
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no')
//写成一行
-->
</SCRIPT>

参数解释:

<SCRIPT LANGUAGE=&#106avascript> js脚本开始;
window.open 弹出新窗口的命令;
'page.html' 弹出窗口的文件名;
'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;
height=100 窗口高度;
width=400 窗口宽度;
top=0 窗口距离屏幕上方的象素值;
left=0 窗口距离屏幕左侧的象素值;
toolbar=no 是否显示工具栏,yes为显示;
menubar,scrollbars 表示菜单栏和滚动栏。
resizable=no 是否允许改变窗口大小,yes为允许;
location=no 是否显示地址栏,yes为允许;
status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;
</SCRIPT> js脚本结束

window.parent.opener.document.formName.textname.value="这里写你要返回的值";


==========================================================
<marquee id="test">
</marquee>
<script language=javascript>
var a=new Array("<table><tr><td>第一页</td></tr><tr><td>第一页</td></tr><tr><td>第一页</td></tr></table>","<table><tr><td>第二页</td></tr><tr><td>第二页</td></tr><tr><td>第二页</td></tr></table>","<table><tr><td>第三页</td></tr><tr><td>第三页</td></tr><tr><td>第三页</td></tr></table>");
var i=0;
change();
function change()
{
 eval('test').innerHTML=a[i++];
 if (i<3){
 setTimeout("change();",1000);}
}
</script>
=========================================================

onclick=document.execCommand("saveAs")   另存为

===============================================
oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()"

<noscript><iframe src=*></iframe></noscript>
=====================================================
<script language="JavaScript" type="text/JavaScript">
//改变图片大小
function resizepic(thispic)
{
if(thispic.width>700) thispic.width=700;
}
//无级缩放图片大小
function bbimg(o)
{
  var zoom=parseInt(o.style.zoom, 10)||100;
  zoom+=event.wheelDelta/12;
  if (zoom>0) o.style.zoom=zoom+'%';
}
//双击鼠标滚动屏幕的代码
var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",30);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos !=document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize

//更改字体大小
var status0='';
var curfontsize=10;
var curlineheight=18;
function fontZoomA(){
  if(curfontsize>8){
    document.getElementById('fontzoom').style.fontSize=(--curfontsize)+'pt';
 document.getElementById('fontzoom').style.lineHeight=(--curlineheight)+'pt';
  }
}
function fontZoomB(){
  if(curfontsize<64){
    document.getElementById('fontzoom').style.fontSize=(++curfontsize)+'pt';
 document.getElementById('fontzoom').style.lineHeight=(++curlineheight)+'pt';
  }
}
</script>
======================================================
style="border-collapse:collapse; border-style: dotted; border-width: 1" bordercolor="#FF0000"

 runtime2=formatnumber((t2-t1)*1000,2)

<%function encodestr(str)
 dim i
 str=trim(str)
 str=replace(str,"<","&lt;")
 str=replace(str,">","&gt;")
 str=replace(str,"'","""")
 str=replace(str,vbCrLf&vbCrlf,"</p><p>")
 str=replace(str,vbCrLf,"<br>")
 encodestr=replace(str,"  "," ")
end function%>


www.why100000.com

阅读全文
0 0

相关文章推荐

img
取 消
img