百度空间弹出提示效果的JS特效代码
<!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=gb2312" />
<title>无标题文档</title>
<script language="javascript" src="http://hi.baidu.com/js/popup.js"></script>
</head>
<body>
<p>
<script language="javascript">
//***********保存修改***************
function cancelcss()
{
g_pop=new Popup({ contentType:1,isReloadOnClose:false,width:340,height:80});
g_pop.setContent("title","保存修改");
g_pop.setContent("contentUrl","");
g_pop.build();
g_pop.show();
G("popFormSubmit").target=g_pop.iframeIdName;
}
//***********删除确认***************
function cmtdel(str)
{
var pop=new Popup({ contentType:3,isReloadOnClose:false,width:340,height:80});
pop.setContent("title","删除评论");
pop.setContent("confirmCon","您确定要彻底删除这条评论吗?");
pop.setContent("callBack","");//第二个参数是处理确认的函数
pop.setContent("parameter",{fid:str,popup:pop});
pop.build();
pop.show();
return false;
}
//***********添加新分类***************
function openaddcat(url){
var catnum=8;
if(catnum<100)
{
g_pop=new Popup({ contentType:1, isReloadOnClose:false, width:410, height:150 });
g_pop.setContent("title","添加新分类");
g_pop.setContent("contentUrl",url);
g_pop.build();
g_pop.show();
}
else
{
showErr3("分类数目最多为100个");
}
return false;
}
//***********模板设置***************
function mod_editFriblog(url)
{
g_pop=new Popup({ contentType:1, isReloadOnClose:false, width:400, height:450 });
g_pop.setContent("title","模块设置");
g_pop.setContent("contentUrl",url);
g_pop.build();
g_pop.show();
return false;
}
//***********编辑相册***************
function editPhotoCat(url)
{
var pop=new Popup({ contentType:1, isReloadOnClose:false, width:530, height:230 });
pop.setContent("title","编辑相册");
pop.setContent("contentUrl",url);
pop.build();
pop.show();
return false;
}
//***********创建相册***************
function addPhotoCat(url)
{
if(6>=80)
{
alertPop("创建新相册","相册数目最多为80个");
}
else
{
var pop=new Popup({ contentType:1, isReloadOnClose:false, width:530, height:230 });
pop.setContent("title","创建新相册");
pop.setContent("contentUrl",url);
pop.build();
pop.show();
}
return false;
}
function alert2(str)
{
var pop=new Popup({ contentType:4,isReloadOnClose:false,width:340,height:80});
pop.setContent("title","提示");
pop.setContent("alertCon",str);
pop.build();
pop.show();
return false;
}
</script>
<input type="button" name="cancel" value="取消" onClick="cancelcss()" />
<br />
<br />
<input type="button" name="del" value="删除" onClick="cmtdel('确认删除吗?')" id="del" />
<br />
<br />
<a href="/ylf575/creat/category/0" target="_blank" onclick="openaddcat('http://www.94vip.cn');return false;" tabindex="-1">增加新分类</a>
<br />
<br />
<a href="#" onclick="mod_editFriblog('http://www.94vip.cn');return false;" target="_blank" ><img src="http://img.baidu.com/hi/img/ico_edit.gif" border="0" align="absmiddle">设置</a>
<br />
<br />
<a href="#" onClick="editPhotoCat('http://www.94vip.cn');return false;">编辑</a>
<br />
<br />
<a href="#" class="modact" onClick="addPhotoCat('http://www.94vip.cn');return false;"><img src="http://img.baidu.com/hi/img/ico_creatset.gif" border="0" align="absmiddle">创建新相册</a>
</p>
<p>
<input type="button" name="del2" value="提示" onclick="alert2('aaa')" id="del2" />
</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>ssss<br />
<br />
<br />
<br />
<br />
</p>
</body>
</html></div>
<a href="http://js.alixixi.com/">欢迎访问阿里西西网页特效代码站,js.alixixi.com</a>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript" src="http://hi.baidu.com/js/popup.js"></script>
</head>
<body>
<p>
<script language="javascript">
//***********保存修改***************
function cancelcss()
{
g_pop=new Popup({ contentType:1,isReloadOnClose:false,width:340,height:80});
g_pop.setContent("title","保存修改");
g_pop.setContent("contentUrl","");
g_pop.build();
g_pop.show();
G("popFormSubmit").target=g_pop.iframeIdName;
}
//***********删除确认***************
function cmtdel(str)
{
var pop=new Popup({ contentType:3,isReloadOnClose:false,width:340,height:80});
pop.setContent("title","删除评论");
pop.setContent("confirmCon","您确定要彻底删除这条评论吗?");
pop.setContent("callBack","");//第二个参数是处理确认的函数
pop.setContent("parameter",{fid:str,popup:pop});
pop.build();
pop.show();
return false;
}
//***********添加新分类***************
function openaddcat(url){
var catnum=8;
if(catnum<100)
{
g_pop=new Popup({ contentType:1, isReloadOnClose:false, width:410, height:150 });
g_pop.setContent("title","添加新分类");
g_pop.setContent("contentUrl",url);
g_pop.build();
g_pop.show();
}
else
{
showErr3("分类数目最多为100个");
}
return false;
}
//***********模板设置***************
function mod_editFriblog(url)
{
g_pop=new Popup({ contentType:1, isReloadOnClose:false, width:400, height:450 });
g_pop.setContent("title","模块设置");
g_pop.setContent("contentUrl",url);
g_pop.build();
g_pop.show();
return false;
}
//***********编辑相册***************
function editPhotoCat(url)
{
var pop=new Popup({ contentType:1, isReloadOnClose:false, width:530, height:230 });
pop.setContent("title","编辑相册");
pop.setContent("contentUrl",url);
pop.build();
pop.show();
return false;
}
//***********创建相册***************
function addPhotoCat(url)
{
if(6>=80)
{
alertPop("创建新相册","相册数目最多为80个");
}
else
{
var pop=new Popup({ contentType:1, isReloadOnClose:false, width:530, height:230 });
pop.setContent("title","创建新相册");
pop.setContent("contentUrl",url);
pop.build();
pop.show();
}
return false;
}
function alert2(str)
{
var pop=new Popup({ contentType:4,isReloadOnClose:false,width:340,height:80});
pop.setContent("title","提示");
pop.setContent("alertCon",str);
pop.build();
pop.show();
return false;
}
</script>
<input type="button" name="cancel" value="取消" onClick="cancelcss()" />
<br />
<br />
<input type="button" name="del" value="删除" onClick="cmtdel('确认删除吗?')" id="del" />
<br />
<br />
<a href="/ylf575/creat/category/0" target="_blank" onclick="openaddcat('http://www.94vip.cn');return false;" tabindex="-1">增加新分类</a>
<br />
<br />
<a href="#" onclick="mod_editFriblog('http://www.94vip.cn');return false;" target="_blank" ><img src="http://img.baidu.com/hi/img/ico_edit.gif" border="0" align="absmiddle">设置</a>
<br />
<br />
<a href="#" onClick="editPhotoCat('http://www.94vip.cn');return false;">编辑</a>
<br />
<br />
<a href="#" class="modact" onClick="addPhotoCat('http://www.94vip.cn');return false;"><img src="http://img.baidu.com/hi/img/ico_creatset.gif" border="0" align="absmiddle">创建新相册</a>
</p>
<p>
<input type="button" name="del2" value="提示" onclick="alert2('aaa')" id="del2" />
</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>ssss<br />
<br />
<br />
<br />
<br />
</p>
</body>
</html></div>
<a href="http://js.alixixi.com/">欢迎访问阿里西西网页特效代码站,js.alixixi.com</a>
顶(1)
踩(0)
下一篇:PHP+JS实现无限级树形菜单
- 最新评论