musicmad.htm

来自「javascript source code part2」· HTM 代码 · 共 63 行

HTM
63
字号
<HTML>
<HEAD>
<script language="JavaScript">
var cookiesEnabled = false;

// Retrieves particular cookie
function getCookie(cookieName)
{
	var cookieFoundAt;
	var cookieValue;

	// find start position in cookie string
	cookieFoundAt = document.cookie.indexOf(cookieName + "=");
	
	if (cookieFoundAt < 0)
		{
			cookieValue = "";
		}
	else
		{
			// move to actual start of cookie's data
			cookieFoundAt = document.cookie.indexOf("=",cookieFoundAt);
			cookieFoundAt++;
			
			// find end position of cookie's data
			cookieEnd = document.cookie.indexOf(";", cookieFoundAt);
			if (cookieEnd == -1)
			    cookieEnd = document.cookie.length - 1;
			  
  		     cookieValue = document.cookie.substring(cookieFoundAt, cookieEnd);
			}
		return cookieValue;
}

// Check whether cookies enabled
function frasetMain_onload()
{
	document.cookie = "Enabled=true";
	var cookieValid = document.cookie;
	
	// if retrieving the value we just set actually works 
	// then we know cookies enabled
	if (cookieValid.indexOf("Enabled=true") != -1)
	{
		cookiesEnabled = true;
	}
	else
	{
		cookiesEnabled = false;
		alert("You need to enable cookies on your browser to take advantage of our online ordering");
	}
}
</script>
<TITLE>Welcome to MusicMadness.Com</TITLE>
</HEAD>
<FRAMESET  BORDER=5 ROWS="62,*" NAME="frasetMain" onLoad="frasetMain_onload()">
   <!-- MenuBar Top Frame -->
   <FRAME SCROLLING="NO" SRC="top_menu.asp" NAME="fraTop" NORESIZE>
            <!-- Main area - where most of the displaying of information occurrs -->
   <FRAME SCROLLING="AUTO" SRC="home.asp" NAME="fraMain" NORESIZE>
</FRAMESET>
</HTML>

⌨️ 快捷键说明

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