个非常漂亮的下拉列表框
LANGUAGE=javascript
>
下拉列表框演示程序:
鼠标右键绝对禁止法
softet
Dreamweaver定制网页过渡功能:
首先用Dreamweaver打开页面,然后单击菜单中的InsertHeadMeta(插入/文件头标签/Meta).
在对话框中的Attribute选项的下拉列表中选HTTP-equivalent选项,在Value:中键入Page-Enter,表示进入网页时有网页过渡效果。在Content:中键入Revealtrans(Duration=6,Transition=2),Duration=6表示网页过渡效果的延续时间为6秒,Transition表示过渡效果方式,值为2时表示圆形收缩。
输入完后单击确定,存盘。这样当我们点击一个超链接进入这个页面时就可以看到效果了。另外还有二十多种效供你选择,只要将Transition的值改为相应的效果的代号即可,具体效果和设置如下表所示:
效果 Content Transitionv
盒状收缩 RevealTrans 0
盒状展开 RevealTrans 1
圆形收缩 RevealTrans 2
圆形展开 RevealTrans 3
向上擦除 RevealTrans 4
向下擦除 RevealTrans 5
向左擦除 RevealTrans 6
向右擦除 RevealTrans 7
垂直百页窗 RevealTrans 8
水平百页窗 RevealTrans 9
横向棋盘式 RevealTrans 10
纵向棋盘式 RevealTrans 11
溶解 RevealTrans 12
左右向中部收缩 RevealTrans 13
中部向左右展开 RevealTrans 14
上下向中部收缩 RevealTrans 15
中部向上下展开 RevealTrans 16 阶梯状向左下展开 RevealTrans 17 阶梯状向左上展开 RevealTrans 18
阶梯状向右下展开 RevealTrans 19
阶梯状向右上展开 RevealTrans 20
随机水平线 RevealTrans 21
随机垂直线 RevealTrans 22 随机 RevealTrans 23
加到文字中间,以显示倒计时。
然后把
又一个一个非常漂亮的下拉列表框
LANGUAGE=javascript
>
下拉列表框演示程序:
<script><!-- <BR>function ReloadButton(){location.href="allbutton.htm";} <BR>// --></script><script><!-- <BR>function HomeButton(){location.href="http://vinterest.568idc.com";}/ // --></script> <script><!-- <BR>function AlertButton(){window.alert("要多多光临呀!");} <BR>// --></script><script><!-- <BR>function StatusButton(){window.status="要多多光临呀!";} <BR>// --></script> <script>function BgButton(){ <BR>if (document.bgColor=='#00ffff') <BR> {document.bgColor='#ffffff';} <BR>else{document.bgColor='#00ffff';} <BR>} </script><script><!-- <BR>function NewWindow(){window.open("test.htm","","height=240,width=340,status=no,location=no,toolbar=no,directories=no,menubar=no");} <BR>// --></script><script> <BR>function getSelected() <BR>{ return hDDL.innerText <BR>} function hDDL_onmousemove() <BR>{ window.event.cancelBubble = true <BR>} <br><br>function DDLI_onmousemove() <BR>{ window.event.cancelBubble = true <BR>} <br><br>function DDLI_onmouseover(item) <BR>{ item.style.color = DDL_HFC <BR>item.style.backgroundColor = DDL_HBC <BR>} <br><br>function DDLI_onmouseout(item) <BR>{ item.style.color = DDL_FGC <BR>item.style.backgroundColor = DDL_BGC <BR>} <br><br>function DDLI_onclick(item) <BR>{ hDDL.innerText = item.innerText <BR>DDL.style.display = "none" <BR>alert("You click " + item.innerText + "!") <BR>} <br><br>function document_onmousemove() <BR>{ DDL.style.display = "none" <BR>} <br><br>function DDL_onmousemove() <BR>{ window.event.cancelBubble = true <BR>} <br><br>function hDDL_onclick() <BR>{ DDL.style.posLeft = hDDL.offsetLeft <BR>DDL.style.posTop = hDDL.offsetTop + hDDL.offsetHeight <BR>DDL.style.display = "block" <BR>} <br><br>function writeDropdownList() <BR>{ <br><br>document.write("<SPAN id=hDDL") <BR>document.write(" style="BACKGROUND-COLOR: " + DDL_BGC + ";") <BR>document.write(" BORDER-BOTTOM: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-LEFT: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-RIGHT: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-TOP: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" PADDING-LEFT: 10px; COLOR: " + DDL_FGC + ";") <BR>document.write(" CURSOR: hand; POSITION: absolute;") <BR>document.write(" LEFT: " + DDL_Left + "; TOP: " + DDL_Top + "; WIDTH: " + DDL_Width + """)document.write(" LANGUAGE="javascript"") <BR>document.write(" ") <BR>document.write(" >") <br><br>document.write(DropdownListData[0] + "") <br><br>document.write("<SPAN style="BACKGROUND-COLOR: " + DDL_BGC + ";") <BR>document.write(" BACKGROUND-IMAGE: url(imageDDLpic.gif); CURSOR: hand;")document.write(" POSITION: absolute; TOP: " + (DDL_Top + DDL_BW) + ";")document.write(" LEFT: " + (DDL_Left + DDL_Width - DDL_BW - DDL_picW) + ";")document.write(" WIDTH: " + DDL_picW + ";") <br><br>document.write(" BACKGROUND-REPEAT: no-repeat"") <BR>document.write(" LANGUAGE="javascript"") <BR>document.write(" ") <BR>document.write(" >") <BR>document.write("") <br><br>document.write("<DIV id=DDL") <BR>document.write(" style ="BACKGROUND-COLOR: " + DDL_BGC + ";") <BR>document.write(" BORDER-BOTTOM: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-LEFT: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-RIGHT: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-TOP: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" DISPLAY: none; POSITION: absolute;") <BR>document.write(" LEFT: 10px; HEIGHT: 99px; TOP: 124px; WIDTH: " + DDL_Width + """)document.write(" LANGUAGE="javascript"") <BR>document.write(" >") <BR>var i <BR>for(i=0; i<DropdownListData.length; i++) <BR>{ document.write("<SPAN id=DDLI" + i) <BR>document.write(" style="BACKGROUND-COLOR: " + DDL_BGC + "; CURSOR: hand;")document.write(" COLOR: " + DDL_FGC + "; PADDING-LEFT: 10px; WIDTH: " + (DDL_Width - 2 * DDL_BW) + """)document.write(" LANGUAGE="javascript"") <BR>document.write(" + i + ")"")document.write(" + i + ")"") <BR>document.write(" + i + ")"") <BR>document.write(" >") <BR>document.write(DropdownListData + "<BR>") <BR>} document.write("") <br><br>} <br><br>document.onmousemove = document_onmousemove <br><br>var DropdownListData = new Array() <br><br>var DDL_BGC = "papayawhip" <BR>var DDL_FGC = "green" <BR>var DDL_HBC = "orange" <BR>var DDL_HFC = "red" <BR>var DDL_BC = "red" <BR>var DDL_BW = 1 <BR>var DDL_Width = 90 <BR>var DDL_Top = 100 <BR>var DDL_Left = 80 <BR>var DDL_picW = 15 <br><br>DropdownListData[0] = "Item0" <BR>DropdownListData[1] = "Item1" <BR>DropdownListData[2] = "Item2" <BR>DropdownListData[3] = "Item3" <BR>DropdownListData[4] = "Item4" <br><br>writeDropdownList() <br><br></script> <script> <BR><!-- <br><br>if (window.Event) <BR> document.captureEvents(Event.MOUSEUP); <br><br>function nocontextmenu() <BR>{ event.cancelBubble = true <BR>event.returnValue = false; <br><br>return false; <BR>} <br><br>function norightclick(e) <BR>{ if (window.Event) <BR>{ if (e.which == 2 || e.which == 3) <BR> return false; <BR>} else <BR> if (event.button == 2 || event.button == 3) <BR> { <BR> event.cancelBubble = true <BR> event.returnValue = false; <BR> return false; <BR> } <br><br>} <br><br>document.oncontextmenu = nocontextmenu; // for IE5+ <BR>document.onmousedown = norightclick; // for all others <BR>//--> <BR></script><script> <BR>var url = "html/index.html"; {'html/index.html'为转到页面} <BR>var loctime = 9; {9=9秒} <BR>timedown.innerhtml = loctime; <br><br>var gourl = setInterval("downtimes()",1000); <BR>function downtimes(){ <BR>loctime--; <BR>timedown.innerHTML= loctime; <BR>if(loctime <= 0){ <BR> clearInterval(gourl); <BR> window.location = url; <BR>} <BR>} <BR></script> <script> <BR>function getSelected() <BR>{ return hDDL.innerText <BR>} function hDDL_onmousemove() <BR>{ window.event.cancelBubble = true <BR>} <br><br>function DDLI_onmousemove() <BR>{ window.event.cancelBubble = true <BR>} <br><br>function DDLI_onmouseover(item) <BR>{ item.style.color = DDL_HFC <BR>item.style.backgroundColor = DDL_HBC <BR>} <br><br>function DDLI_onmouseout(item) <BR>{ item.style.color = DDL_FGC <BR>item.style.backgroundColor = DDL_BGC <BR>} <br><br>function DDLI_onclick(item) <BR>{ hDDL.innerText = item.innerText <BR>DDL.style.display = "none" <BR>alert("You click " + item.innerText + "!") <BR>} <br><br>function document_onmousemove() <BR>{ DDL.style.display = "none" <BR>} <br><br>function DDL_onmousemove() <BR>{ window.event.cancelBubble = true <BR>} <br><br>function hDDL_onclick() <BR>{ DDL.style.posLeft = hDDL.offsetLeft <BR>DDL.style.posTop = hDDL.offsetTop + hDDL.offsetHeight <BR>DDL.style.display = "block" <BR>} <br><br>function writeDropdownList() <BR>{ <br><br>document.write("<SPAN id=hDDL") <BR>document.write(" style="BACKGROUND-COLOR: " + DDL_BGC + ";") <BR>document.write(" BORDER-BOTTOM: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-LEFT: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-RIGHT: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-TOP: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" PADDING-LEFT: 10px; COLOR: " + DDL_FGC + ";") <BR>document.write(" CURSOR: hand; POSITION: absolute;") <BR>document.write(" LEFT: " + DDL_Left + "; TOP: " + DDL_Top + "; WIDTH: " + DDL_Width + """)document.write(" LANGUAGE="javascript"") <BR>document.write(" ") <BR>document.write(" >") <br><br>document.write(DropdownListData[0] + "") <br><br>document.write("<SPAN style="BACKGROUND-COLOR: " + DDL_BGC + ";") <BR>document.write(" BACKGROUND-IMAGE: url(imageDDLpic.gif); CURSOR: hand;")document.write(" POSITION: absolute; TOP: " + (DDL_Top + DDL_BW) + ";")document.write(" LEFT: " + (DDL_Left + DDL_Width - DDL_BW - DDL_picW) + ";")document.write(" WIDTH: " + DDL_picW + ";") <br><br>document.write(" BACKGROUND-REPEAT: no-repeat"") <BR>document.write(" LANGUAGE="javascript"") <BR>document.write(" ") <BR>document.write(" >") <BR>document.write("") <br><br>document.write("<DIV id=DDL") <BR>document.write(" style ="BACKGROUND-COLOR: " + DDL_BGC + ";") <BR>document.write(" BORDER-BOTTOM: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-LEFT: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-RIGHT: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" BORDER-TOP: " + DDL_BC + " " + DDL_BW + " solid;") <BR>document.write(" DISPLAY: none; POSITION: absolute;") <BR>document.write(" LEFT: 10px; HEIGHT: 99px; TOP: 124px; WIDTH: " + DDL_Width + """)document.write(" LANGUAGE="javascript"") <BR>document.write(" >") <BR>var i <BR>for(i=0; i<DropdownListData.length; i++) <BR>{ document.write("<SPAN id=DDLI" + i) <BR>document.write(" style="BACKGROUND-COLOR: " + DDL_BGC + "; CURSOR: hand;")document.write(" COLOR: " + DDL_FGC + "; PADDING-LEFT: 10px; WIDTH: " + (DDL_Width - 2 * DDL_BW) + """)document.write(" LANGUAGE="javascript"") <BR>document.write(" + i + ")"")document.write(" + i + ")"") <BR>document.write(" + i + ")"") <BR>document.write(" >") <BR>document.write(DropdownListData + "<BR>") <BR>} document.write("") <br><br>} <br><br>document.onmousemove = document_onmousemove <br><br>var DropdownListData = new Array() <br><br>var DDL_BGC = "papayawhip" <BR>var DDL_FGC = "green" <BR>var DDL_HBC = "orange" <BR>var DDL_HFC = "red" <BR>var DDL_BC = "red" <BR>var DDL_BW = 1 <BR>var DDL_Width = 90 <BR>var DDL_Top = 100 <BR>var DDL_Left = 80 <BR>var DDL_picW = 15 <br><br>DropdownListData[0] = "Item0" <BR>DropdownListData[1] = "Item1" <BR>DropdownListData[2] = "Item2" <BR>DropdownListData[3] = "Item3" <BR>DropdownListData[4] = "Item4" <br><br>writeDropdownList() <br><br></script>

JavaScript字符串替换方法详解及常见问题解答 本文将探讨两种在JavaScript中替换字符串字符的方法:在JavaScript代码内部替换和在网页HTML内部替换。 在JavaScript代码内部替换字符串 最直接的方法是使用replace()方法: str = str.replace("find","replace"); 该方法仅替换第一个匹配项。要替换所有匹配项,需使用正则表达式并添加全局标志g: str = str.replace(/fi

因此,在这里,您准备好了解所有称为Ajax的东西。但是,到底是什么? AJAX一词是指用于创建动态,交互式Web内容的一系列宽松的技术。 Ajax一词,最初由Jesse J创造

10款趣味横生的jQuery游戏插件,让您的网站更具吸引力,提升用户粘性!虽然Flash仍然是开发休闲网页游戏的最佳软件,但jQuery也能创造出令人惊喜的效果,虽然无法与纯动作Flash游戏媲美,但在某些情况下,您也能在浏览器中获得意想不到的乐趣。 jQuery井字棋游戏 游戏编程的“Hello world”,现在有了jQuery版本。 源码 jQuery疯狂填词游戏 这是一个填空游戏,由于不知道单词的上下文,可能会产生一些古怪的结果。 源码 jQuery扫雷游戏

本教程演示了如何使用jQuery创建迷人的视差背景效果。 我们将构建一个带有分层图像的标题横幅,从而创造出令人惊叹的视觉深度。 更新的插件可与JQuery 1.6.4及更高版本一起使用。 下载

本文讨论了在浏览器中优化JavaScript性能的策略,重点是减少执行时间并最大程度地减少对页面负载速度的影响。

本文演示了如何使用jQuery和ajax自动每5秒自动刷新DIV的内容。 该示例从RSS提要中获取并显示了最新的博客文章以及最后的刷新时间戳。 加载图像是选择

Matter.js是一个用JavaScript编写的2D刚体物理引擎。此库可以帮助您轻松地在浏览器中模拟2D物理。它提供了许多功能,例如创建刚体并为其分配质量、面积或密度等物理属性的能力。您还可以模拟不同类型的碰撞和力,例如重力摩擦力。 Matter.js支持所有主流浏览器。此外,它也适用于移动设备,因为它可以检测触摸并具有响应能力。所有这些功能都使其值得您投入时间学习如何使用该引擎,因为这样您就可以轻松创建基于物理的2D游戏或模拟。在本教程中,我将介绍此库的基础知识,包括其安装和用法,并提供一


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

Atom编辑器mac版下载
最流行的的开源编辑器

记事本++7.3.1
好用且免费的代码编辑器

适用于 Eclipse 的 SAP NetWeaver 服务器适配器
将Eclipse与SAP NetWeaver应用服务器集成。

VSCode Windows 64位 下载
微软推出的免费、功能强大的一款IDE编辑器

安全考试浏览器
Safe Exam Browser是一个安全的浏览器环境,用于安全地进行在线考试。该软件将任何计算机变成一个安全的工作站。它控制对任何实用工具的访问,并防止学生使用未经授权的资源。