⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 about.htm

📁 很好用的ftp源码
💻 HTM
📖 第 1 页 / 共 2 页
字号:
	nextButton.style.color="";
	nextButton.disabled=1;
	}
else {
      nextButton.disabled=0;
      if(curDiv==0) {
	backButton.style.color="";
	backButton.disabled=1;
	}
      else backButton.disabled=0;
     }
}

//Respond to ESC key

function bodyOnKeyDown() {
if (window.event.keyCode==27) window.close();
}

//General function for turning the buttons text blue when mouseover

function buttonOnMouseOver(){
var srcElement=window.event.srcElement;
if (((srcElement.id!="backButton")|| (backButton.disabled==0))&&((srcElement.id!="nextButton")||(nextButton.disabled==0))) window.event.srcElement.style.color="blue";
}

//General function for restoring the buttons text when mouse out

function buttonOnMouseOut(){
var srcElement=window.event.srcElement;
if (((srcElement.id!="backButton")|| (backButton.disabled==0))&&((srcElement.id!="nextButton")||(nextButton.disabled==0))) window.event.srcElement.style.color="";
}

//launch IE tour in new window

function gettingStartedClick() {
var foo="gettingstarted";
window.open("res://ie4tour.dll/tour.htm#MinimalTour=1",foo,"");
window.event.returnValue=false;
return false;
}

//Event is called when a transition is complete
//Used to go from fade of one paragraph to show of the next
//This event is called manually when MM is not enabled

function onfilterchangeHandler() {
if(fade==1) window.setTimeout("DoShow()",100);
else noReEntry=0;
backwards=0;
fade=0;
}

//Separate event for the links, since they act differently
//This is also called manually when MM is not enabled

function onfilterchangeHandlerLinks() {
if(backwards!=1) { //going forwards
	if(curDiv<totaldivCount) 
		{
		curDiv=curDiv+1;
		window.setTimeout("DoShow()",100);
		}
	else 	noReEntry=0;
	}		
else { //going backwards
	if(curDiv>beforeLinksDivCount) { //still have links to fade
		curDiv=curDiv-1;
		window.setTimeout("DoFade(" +parseInt(curDiv+1) +")",100);
		}
	else {    //show div the comes before the links
		curDiv=beforeLinksDivCount;
		window.setTimeout("DoShow()",100);
		}
	}  		
fade=0;
}


// BUGBUG: This is a hack to work around MSHTML crashing on document.onselectstart events
// being canceled (false being returned).
var g_fWasMouseDown;

function MyOnMouseDown()
{
    g_fWasMouseDown = window.event.button;
}

document.onmousedown = MyOnMouseDown;


function CancelEvent()
{
    if (2 == g_fWasMouseDown)
    {
        return true;        // Trident crashes when Right-Click events are canceled.
    }

    return false;   // Cancel event.
}

// Disable text and object selecting.
document.onselectstart = CancelEvent;
document.ondragstart = CancelEvent;

function OpenEEGG()
{
    // Do the navigation
    window.open("wcee.htm", "TheWCEE", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=414,height=352");
    window.close();
    return false;
}


function GetIndex(nStep, nDelta)
{
	nReturn = nStep + nDelta;

	if (nReturn < 0)
		nReturn += g_nMaxStepHistory;

	if (g_nMaxStepHistory <= nReturn)
		nReturn -= g_nMaxStepHistory;

	return nReturn;
}

function StartFlinging()
{
	nStop = 1;

	for (j in FlingingItems)
	{
        obj = FlingingItems[j];

		if(obj.xDelta != 0) obj.style.pixelLeft += obj.xDelta;
		if(obj.yDelta != 0) obj.style.pixelTop += obj.yDelta;

		if ((obj.style.pixelLeft > -1000) && (obj.style.pixelLeft < 2000) &&
			(obj.style.pixelTop > -1000) && (obj.style.pixelTop < 2000))
			nStop = 0;
	}

	// Stop looping when object is fully off the screen.
	if (0 == nStop)
	{
		window.setTimeout("StartFlinging()", 10);
	}
}

function TrackStep(x, y, e, bkey)
{
	CursorHistoryX[g_nStep] = x;
	CursorHistoryY[g_nStep] = y;

	// Did we just bounce into a flingable object?
    if ((e.SuperClass != g_szPrevElement) && (e.SuperClass == "Flingable"))
	{
		fValidFling = 1;
		// Yes, so see if we can fling it.

		if (0 == e.reqDirX)
		{
			nIndex = 0;

			// It's necessary that all x movement remain within object width.
			while ((nIndex < (g_nMaxStepHistory - 1)) && (1 == fValidFling))
			{
				nPrevX = CursorHistoryX[GetIndex(g_nStep, -nIndex)];
				if ((nPrevX < e.style.pixelLeft) ||
					(nPrevX > e.style.pixelLeft + e.style.pixelWidth))
				{
					fValidFling = 0;
				}
				nIndex++;
			}
		}
		else
		{
			nIndex = 0;

			// It's necessary that all x movement stay constantly left or right.
			while ((nIndex < (g_nMaxStepHistory - 1)) && (1 == fValidFling))
			{
				if (0 < e.reqDirX)
				{
					if (CursorHistoryX[GetIndex(g_nStep, -nIndex)] < CursorHistoryX[GetIndex(g_nStep, -nIndex - 1)])
					{
						fValidFling = 0;
					}
				}
				else
				{
					if (CursorHistoryX[GetIndex(g_nStep, -nIndex)] > CursorHistoryX[GetIndex(g_nStep, -nIndex - 1)])
					{
						fValidFling = 0;
					}
				}
				nIndex++;
			}
		}

		if (1 == fValidFling)
		{
		    if (0 == e.reqDirY)
		    {
			    nIndex = 0;

			    // It's necessary that all y movement remain within object height.
			    while ((nIndex < (g_nMaxStepHistory - 1)) && (1 == fValidFling))
			    {
				    nPrevY = CursorHistoryY[GetIndex(g_nStep, -nIndex)];
				    if ((nPrevY < e.style.pixelTop) ||
					    (nPrevY > e.style.pixelTop + e.style.pixelHeight))
				    {
					    fValidFling = 0;
				    }
				    nIndex++;
			    }
		    }
		    else
		    {
			    nIndex = 0;

			    // It's necessary that all y movement stay constantly up or down.
			    while ((nIndex < (g_nMaxStepHistory - 1)) && (1 == fValidFling))
			    {
				    if (0 < e.reqDirY)
				    {
					    if (CursorHistoryY[GetIndex(g_nStep, -nIndex)] < CursorHistoryY[GetIndex(g_nStep, -nIndex - 1)])
					    {
						    fValidFling = 0;
					    }
				    }
				    else
				    {
					    if (CursorHistoryY[GetIndex(g_nStep, -nIndex)] > CursorHistoryY[GetIndex(g_nStep, -nIndex - 1)])
					    {
						    fValidFling = 0;
					    }
				    }
				    nIndex++;
			    }
		    }
		}

		if ((1 == fValidFling) && bkey)
		{
			nXDelta = CursorHistoryX[g_nStep] - CursorHistoryX[GetIndex(g_nStep, -g_nMaxStepHistory + 1)];
			nYDelta = CursorHistoryY[g_nStep] - CursorHistoryY[GetIndex(g_nStep, -g_nMaxStepHistory + 1)];

			if (0 != e.reqDirX)
				e.xDelta = Math.round(nXDelta / 2);
			else
				e.xDelta = 0;

			if (0 != e.reqDirY)
				e.yDelta = Math.round(nYDelta / 2);
			else
				e.yDelta = 0;

		    FlingingItems[FlingingItems.length] = e;
            g_cFlungObjects++;
			g_nScore += (g_cFlungObjects * e.nScore);
			StartFlinging();
		}

	}


	// Increment
	g_szPrevElement = e.SuperClass;
	g_nStep = GetIndex(g_nStep, 1);
}

function StartWorldGrow()
{
    if (ID_World.style.pixelWidth > 800)
	{
	    OpenEEGG();
	}
	else
    {
        ID_World.style.pixelWidth += 100;
        ID_World.style.pixelHeight += 100;
        ID_World.style.pixelLeft -= 30;
        ID_World.style.pixelTop -= 30;
    	window.setTimeout("StartWorldGrow()", 10);
    }
}

function UpdateMouse(x, y, shift, button)
{
    var e;

    e = event.srcElement;

    if ((0 == g_fInDrag) && (e.className == "Movable"))
	{
		g_fInDrag = 1;
		g_nDragOffsetX = event.x - document.all["ID_IE"].style.pixelLeft;
		g_nDragOffsetY = event.y - document.all["ID_IE"].style.pixelTop;
	}


	if ((1 == event.button) && (1 == g_fInDrag) && (true == event.ctrlKey))
	{
		document.all["ID_IE"].style.pixelLeft = event.x - g_nDragOffsetX;
		document.all["ID_IE"].style.pixelTop = event.y - g_nDragOffsetY;

		TrackStep(event.x, event.y, e, event.ctrlKey);
	}
	else
	{
		g_fInDrag = 0;

		// Check if IE Logo was dropped on the world.
		if ((document.all["ID_IE"].style.pixelLeft > document.all["ID_World"].style.pixelLeft) &&
			(document.all["ID_IE"].style.pixelLeft + document.all["ID_IE"].style.pixelWidth < document.all["ID_World"].style.pixelLeft + document.all["ID_World"].style.pixelWidth) &&
		    (document.all["ID_IE"].style.pixelTop > document.all["ID_World"].style.pixelTop) &&
			(document.all["ID_IE"].style.pixelTop + document.all["ID_IE"].style.pixelHeight < document.all["ID_World"].style.pixelTop + document.all["ID_World"].style.pixelHeight) &&
            g_nScore >= g_nScoreNeeded)
		{
            // Move the logo so we don't continue to navigate over and over again.
            document.all["ID_IE"].style.pixelLeft = parseInt(document.all["ID_IE"].FinalX);
            document.all["ID_IE"].style.pixelTop = parseInt(document.all["ID_IE"].FinalY);

            document.all["ID_IE"].style.visibility="hidden";

			// Make this cover everything else.
            document.all["ID_World"].style.zIndex = "1000";
			
			g_nScore = 0;
            StopWobble(ID_World);
    		window.setTimeout("StartWorldGrow()", 10);
		}
	}

	return 1;
}

document.onmousemove = UpdateMouse;

function WobbleControl(obj)
{
    if (0 != obj.wobbleTimer)
    {
        obj.style.posLeft = parseInt(obj.nOrigLeft) + Math.round(Math.random() * 2 * g_nWobbleAmount) - g_nWobbleAmount;
        obj.style.posTop = parseInt(obj.nOrigTop) + Math.round(Math.random() * 2 * g_nWobbleAmount) - g_nWobbleAmount;
    }
}

function StartWobble(obj)
{
    obj.wobbleTimer = setInterval("WobbleControl(ID_World)", 100);
}

function StopWobble(obj)
{
    if (0 != obj.wobbleTimer)
    {
        clearInterval(obj.wobbleTimer);
        obj.wobbleTimer = 0;
        document.all["ID_World"].posLeft = parseInt(document.all["ID_World"].nOrigLeft);
        document.all["ID_World"].posTop = parseInt(document.all["ID_World"].nOrigTop);
    }
}

function UnLock(obj)
{
    g_nScore += 1;
    obj.disabled = true;
    StartWobble(obj);
}
</SCRIPT>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -