$(function() { formatStyle(); }); function formatStyle() { var tearcherList = $(".zmstj").html(); var mtop = 0; if(tearcherList != null && typeof(tearcherList) != "undefined") { mtop = 40; } var outcontent = ""; var dzlen = $(".dzcloum").length; $(".dzcloum").each(function(index) { var $obj = $(this); var $childDiv = $obj.children("div"); if(index == 0 && !$childDiv.hasClass("rangeWin1000")) { $childDiv.css("borderRight","1px dotted #999"); }else{ if(!$childDiv.hasClass("rangeWin1000")) { $childDiv.css("marginLeft","18px"); if(index != 2) { $childDiv.css("borderRight","1px dotted #999"); } } } outcontent += $obj.html(); if((index + 1) % 3 == 0 || dzlen == (index + 1)) { $("#dzcontent").append("
" + outcontent + "
"); outcontent = ""; } $obj.remove(); }); if(dzlen == 0) { $("#dzcontent").append("
"); } var tztext = $(".dzcloumsuper").html(); if(tztext != null && typeof(tztext) != "undefined") { $(".wrap1000 .courseList").eq(0).parent().append(tztext); $(".dzcloumsuper").remove(); } var groupCon = $("#LiChagneGroupCon").html() || ""; if(groupCon != "") { var liOne = $("#LiChagneGroupCon #liColumn").text(); var liTwo = $("#dzcontent .range").eq(0).find("h3").text()||""; var UlCom = "
"; $("#dzcontent .range").eq(0).find("h3").html(UlCom); var con1 = $("#LiChagneGroupCon #LiContent").html(); var con2 = $("#dzcontent .range").eq(0).find(".contentboxTwo").html(); con2 = "
" + con2 + "
"; $("#dzcontent .range").eq(0).find(".contentboxTwo").html(con1 + con2); $("#LiChagneGroupCon").remove(); } }