广告文档: |
-
+
- - 代码
+ - 代码
- 文字
- 图片
- Flash
@@ -177,7 +176,23 @@
return false;
}
}
+ function showcode(idName) {
+ $("#advert").html("").html($("#formtxt>#" + idName).html());
+ $("#adstyle").val(idName);
+ }
+ showcode('code');
$(document).ready(function() {
+ $("#changeTab>li").click(function() {
+ var tabLi = $(this);
+ var thistab = tabLi[0].id;
+ $(".content").each(function() {
+ if ("t_" + $(this)[0].id == thistab) {
+ $("#changeTab>li").removeClass("active");
+ $("#t_" + $(this)[0].id).addClass("active");
+ showcode($(this)[0].id);
+ }
+ })
+ });
$('.datepicker').daterangepicker({
"singleDatePicker": true,
"autoApply": true,
@@ -203,27 +218,7 @@
}, function(start) {
$(this).val(start.format("YYYY-MM-DD HH:mm"));
});
- })
-
-
|