Ajax弹出示例 可控制时间自由切换和关闭
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ajax弹出示例-可控制时间自由切换和关闭</title>
<script type="text/javascript">
var NowImg = 1;
var bStart = 0;
var bStop =0;
function fnToggle()
{
var next = NowImg + 1;
if(next == 6)
{
NowImg = 6;
next = 1;
}
if(bStop!=1)
{
if(bStart == 0)
{
bStart = 1;
setTimeout('fnToggle()', 20000);
return;
}
else
{
document.getElementById("oDIV1").style.display="none"
document.getElementById("oDIV2").style.display="none"
document.getElementById("oDIV3").style.display="none"
document.getElementById("oDIV4").style.display="none"
document.getElementById("oDIV5").style.display="none"
document.getElementById("oDIV6").style.display="none"
document.getElementById('oDIV'+next).style.display="block"
if(NowImg == 6)
NowImg = 1;
else
NowImg++;
}
setTimeout('fnToggle()', 20000);
}
}
function toggleTo(img)
{
bStop=1;
if(img==1)
{
 
相关文档:
Dynatrace AJAX Edition是我认为最为强大的Web Performance Profile工具。废话不说了,直接上图介绍其主要功能。
先用IE访问你需要profile的网站,例如google,可以点击dynatrace工具栏来启动。这时候dynatrace就开始记录这个网站触发的一切事件。
我简单测试一下,点击google map,并且搜索shanghai,然后回去看看dyn ......
3 mistakes to avoid when using jQuery with ASP.NET AJAX
AJAX, ASP.NET, JavaScript, jQuery By Dave Ward on June 5th, 2008
Over the past few weeks, I think I have definitely embodied Jeff Atwood’s claim that we’re all amateurs, learning together. Despite my best efforts to thoroughly tes ......
function ajaxFunction()
{
var xmlHttp;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
......
在web.config中修改修改属性
1:<configSections><configSections>中加下面代码
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral ......