网上抓的一个特效_javascript技巧
特效在窗口左边,可否改在窗口右边???
效果页面代码:
<script> <BR> ad_p1_sp15_n6 = ''; <BR> ad_p1_sp15_n7 = ''; <BR> ad_p1_sp15_n8 = ''; <BR> </script>
<script>document.write(ad_p1_sp15_n6);</script> |
<script> <BR><!-- <BR> document.getElementById("divTopAd").innerHTML = document.getElementById("divTopAdTmp").innerHTML; <BR> document.getElementById("divTopAdTmp").innerHTML = ""; <BR>//--> <BR></script>
<script>document.write(ad_p1_sp15_n7);</script>
<script>document.write(ad_p1_sp15_n8);</script>
<script> <BR><!-- <BR> document.getElementById("divBottomAd").innerHTML = document.getElementById("divBottomAdTmp").innerHTML; <BR> document.getElementById("divBottomAdTmp").innerHTML = ""; <BR>//--> <BR></script>
<script>src="menu.js"></script>
menu.js 文件代码:
[Copy to clipboard] [ - ]CODE:
//----begin-----共用函数-----
function buildBar()
{
if(barText.indexOf('

{
tempBar=barText;
}
else
{
for (b=0;b
tempBar+=barText.charAt(b)+"
";
}
}
document.write('

}
//----end-----共用函数-----
//----begin-----IE浏览器部分-----
function moveIEOut()
{
if (ssm.pixelLeft {
clearTimeout(moving);moving = setTimeout('moveIEOut()', slideSpeed);slideIEMenu(10)
}
else
{
clearTimeout(moving);moving=setTimeout('null',1)
}
}
function moveIEBack()
{
clearTimeout(moving);moving = setTimeout('moveIEBack1()', waitTime)
}
function moveIEBack1()
{
if (ssm.pixelLeft>(-menuWidth))
{
clearTimeout(moving);moving = setTimeout('moveIEBack1()', slideSpeed);slideIEMenu(-10)
}
else
{
clearTimeout(moving);moving=setTimeout('null',1)
}
}
function slideIEMenu(num)
{
ssm.pixelLeft += num;
}
function makeIEStatic()
{
winY = document.body.scrollTop;
if (winY!=lastY&&winY>YOffset-staticYOffset)
{
smooth = .2 * (winY - lastY - YOffset + staticYOffset);
}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset)
{
smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));
}
else
{
smooth=0;
}
if(smooth > 0)
{
smooth = Math.ceil(smooth);
}
else
{
smooth = Math.floor(smooth);
}
bssm.pixelTop+=smooth;
lastY = lastY+smooth;
setTimeout('makeIEStatic()', 1)
}
function initIESlide()
{
ssm=document.all("thessm").style;
bssm=document.all("basessm").style;
bssm.clip="rect(0 "+thessm.offsetWidth+" "+thessm.offsetHeight+" 0)";
bssm.visibility = "visible";
if (menuIsStatic=="yes")
{
makeIEStatic();
}
}
function buildIEMenu()
{
document.write('
document.write('
'+ssmItems[i][0]+' | ')
document.write('
theleft=-menuWidth;lastY=0;setTimeout('initIESlide();', 1)
}
//----end-----IE浏览器部分-----
//----begin-----NS部分-----
function moveNSOut()
{
if (parseInt(ssm.left) {
clearTimeout(moving);moving = setTimeout('moveNSOut()', slideSpeed);slideNSMenu(10)
}
else
{
clearTimeout(moving);moving=setTimeout('null',1)
}
}
function moveNSBack()
{
clearTimeout(moving);moving = setTimeout('moveNSBack1()', waitTime)
}
function moveNSBack1()
{
if (parseInt(ssm.left)>(-menuWidth))
{
clearTimeout(moving);moving = setTimeout('moveNSBack1()', slideSpeed);slideNSMenu(-10)
}
else
{
clearTimeout(moving);moving=setTimeout('null',1)
}
}
function slideNSMenu(num)
{
ssm.left = parseInt(ssm.left)+num;
bssm.clip.right+=num;bssm2.clip.right+=num;
}
function makeNSStatic()
{
winY = window.pageYOffset;
if (winY!=lastY&&winY>YOffset-staticYOffset)
{
smooth = .2 * (winY - lastY - YOffset + staticYOffset);
}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset)
{
smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));
}
else
{
smooth=0;
}
if(smooth > 0)
{
smooth = Math.ceil(smooth);
}
else
{
smooth = Math.floor(smooth);
}
bssm.top=parseInt(bssm.top)+smooth
lastY = lastY+smooth;
setTimeout('makeNSStatic()', 1)
}
function initNSSlide()
{
bssm=document.layers["basessm1"];
bssm2=bssm.document.layers["basessm2"];ssm=bssm2.document.layers["thessm"];
bssm2.clip.left=0;ssm.visibility = "show";
if (menuIsStatic=="yes")
{
makeNSStatic();
}
}
function buildNSMenu()
{
document.write('
document.write('
'+ssmItems[i][0]+' | ')
document.write('
theleft=-menuWidth;lastY=0;setTimeout('initNSSlide();', 1)
}
//-----end------NS部分-----
//-----begin------NS6部分-----
function moveNS6Out()
{
if (parseInt(ssm.left) {
clearTimeout(moving);moving = setTimeout('moveNS6Out()', slideSpeed);slideNS6Menu(10)
}
else
{
clearTimeout(moving);moving=setTimeout('null',1)
}
}
function moveNS6Back()
{
clearTimeout(moving);moving = setTimeout('moveNS6Back1()', waitTime)
}
function moveNS6Back1()
{
if (parseInt(ssm.left)>(-menuWidth))
{
clearTimeout(moving);moving = setTimeout('moveNS6Back1()', slideSpeed);slideNS6Menu(-10)
}
else
{
clearTimeout(moving);moving=setTimeout('null',1)
}
}
function slideNS6Menu(num)
{
ssm.left = parseInt(ssm.left)+num;
}
function makeNS6Static()
{
winY = window.pageYOffset;
if (winY!=lastY&&winY>YOffset-staticYOffset)
{
smooth = .2 * (winY - lastY - YOffset + staticYOffset);
}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset)
{
smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));
}
else
{
smooth=0;
}
if(smooth > 0)
{
smooth = Math.ceil(smooth);
}
else
{
smooth = Math.floor(smooth);
}
bssm.top=parseInt(bssm.top)+smooth
lastY = lastY+smooth;
setTimeout('makeNS6Static()', 1)
}
function initNS6Slide()
{
ssm=document.getElementById("thessm").style;bssm=document.getElementById("basessm").style;
bssm.clip="rect(0 "+document.getElementById("thessm").offsetWidth+" "+document.getElementById("thessm").offsetHeight+" 0)";
ssm.visibility="visible";
if (menuIsStatic=="yes")
{
makeNS6Static();
}
}
function buildNS6Menu()
{
document.write('
document.write('
') document.write('
document.write(' |
document.write('
theleft=-menuWidth;lastY=0;setTimeout('initNS6Slide();', 1)
}
//-----end------NS6部分-----
NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
tempBar='';barBuilt=0;ssmItems=new Array();
moving=setTimeout('null',1)
YOffset=150;
XOffset=0;
staticYOffset=30;
slideSpeed=20
waitTime=50;
menuBGColor="";
menuIsStatic="yes";
menuWidth=100;
menuCols=2;
hdrFontFamily="verdana";
hdrFontSize="2";
hdrFontColor="#000000";
hdrBGColor="#ffffff";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="15";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="white";
linkOverBGColor="#FFFF99";
linkTarget="_top";
linkAlign="Left";
barBGColor="";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="#ff3333";
barVAlign="center";
barWidth=20;
barText="※乐趣 个人事务所※";
ssmItems[0]=["我要注册", "/eden/ctl_eden_login.php?ctlObj=login_protocol", "_blank"]
ssmItems[1]=["我的首页", "/eden/ctl_eden.php", "_blank"]
ssmItems[2]=["我的收藏夹", "/eden/ctl_eden.php?ctlOprType=get&ctlObj=favorites", "_blank"]
ssmItems[3]=["我的好友", "/eden/ctl_eden.php?ctlOprType=get&ctlObj=friends", "_blank"]
ssmItems[4]=["我的留言", "/eden/ctl_eden.php?ctlOprType=get&ctlObj=msgs", "_blank"]
ssmItems[5]=["我的论坛", "/eden/forum/ctl_eden_forum.php", "_blank"]
ssmItems[6]=["我的博客", "/eden/blog/", "_blank"]
ssmItems[7]=["我的相册", "/eden/album/", "_blank"]
ssmItems[8]=["图片管理", "/eden/upload/ctl_upload.php", "_blank"]
ssmItems[9]=["高级搜索", "/eden/search_menu.html", "_blank"]
ssmItems[10]=["热线帮助", "http://hk.netsh.com/eden/bbs/154/", "_blank"]
ssmItems[11]=["退出登录", "/eden/ctl_eden_login.php?ctlOprType=put&ctlObj=login_out", ""]
if(IE)
{
buildIEMenu();
}
else if(NS)
{
buildNSMEnu();
}
else if(NS6)
{
buildNS6MEnu();
}
else
{
alert("不能运行!");
}

ホット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/)と同様の達成方法について説明します。

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

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

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