网页设计常用的一些技巧_典型特效
<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>
LANGUAGE=javascript
>
下拉列表框演示程序:
鼠标右键绝对禁止法
softet
<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>
Dreamweaver定制网页过渡功能:
首先用Dreamweaver打开页面,然后单击菜单中的Insert\Head\Meta(插入/文件头标签/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
加到文字中间,以显示倒计时。
<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>
LANGUAGE=javascript
>
下拉列表框演示程序:

ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

Video Face Swap
完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

人気の記事

ホットツール

メモ帳++7.3.1
使いやすく無料のコードエディター

SublimeText3 中国語版
中国語版、とても使いやすい

ゼンドスタジオ 13.0.1
強力な PHP 統合開発環境

ドリームウィーバー CS6
ビジュアル Web 開発ツール

SublimeText3 Mac版
神レベルのコード編集ソフト(SublimeText3)

ホットトピック









フロントエンドのサーマルペーパーチケット印刷のためのよくある質問とソリューションフロントエンド開発におけるチケット印刷は、一般的な要件です。しかし、多くの開発者が実装しています...

スキルや業界のニーズに応じて、PythonおよびJavaScript開発者には絶対的な給与はありません。 1. Pythonは、データサイエンスと機械学習でさらに支払われる場合があります。 2。JavaScriptは、フロントエンドとフルスタックの開発に大きな需要があり、その給与もかなりです。 3。影響要因には、経験、地理的位置、会社の規模、特定のスキルが含まれます。

JavaScriptは現代のWeb開発の基礎であり、その主な機能には、イベント駆動型のプログラミング、動的コンテンツ生成、非同期プログラミングが含まれます。 1)イベント駆動型プログラミングにより、Webページはユーザー操作に応じて動的に変更できます。 2)動的コンテンツ生成により、条件に応じてページコンテンツを調整できます。 3)非同期プログラミングにより、ユーザーインターフェイスがブロックされないようにします。 JavaScriptは、Webインタラクション、シングルページアプリケーション、サーバー側の開発で広く使用されており、ユーザーエクスペリエンスとクロスプラットフォーム開発の柔軟性を大幅に改善しています。

同じIDを持つ配列要素をJavaScriptの1つのオブジェクトにマージする方法は?データを処理するとき、私たちはしばしば同じIDを持つ必要性に遭遇します...

この記事の視差スクロールと要素のアニメーション効果の実現に関する議論では、Shiseidoの公式ウェブサイト(https://www.shisido.co.co.jp/sb/wonderland/)と同様の達成方法について説明します。

Console.log出力の違いの根本原因に関する詳細な議論。この記事では、Console.log関数の出力結果の違いをコードの一部で分析し、その背後にある理由を説明します。 �...

JavaScriptを学ぶことは難しくありませんが、挑戦的です。 1)変数、データ型、関数などの基本概念を理解します。2)非同期プログラミングをマスターし、イベントループを通じて実装します。 3)DOM操作を使用し、非同期リクエストを処理することを約束します。 4)一般的な間違いを避け、デバッグテクニックを使用します。 5)パフォーマンスを最適化し、ベストプラクティスに従ってください。

フロントエンドのVSCodeと同様に、パネルドラッグアンドドロップ調整機能の実装を調べます。フロントエンド開発では、VSCODEと同様のVSCODEを実装する方法...
