<div id="open" style="display:none;">
<div id="unopen" style="display:none;">
$(function(){
if(getVar("参数")== 1){
$("#open").show();
var url = "baidu.com";
$.ajax(){
type : "POST",
dataType : "json",
url :url,
success : function(result){
if(){
xxx
}else{
$("unopen").show();
}
}