随笔分类 -  HTML

摘要:Js 1 // 图表转换方法:用于切换图与表。 2 var init = false; 3 function toggle(){ 4 if ($("#container").is(":hidden")) { 5 $("#contain... 阅读全文
posted @ 2014-09-18 10:57 左手心_疼 阅读(424) 评论(0) 推荐(0)
摘要:plotOptions: { line: { /* dataLabels: { enabled: true, ... 阅读全文
posted @ 2014-09-18 10:53 左手心_疼 阅读(6715) 评论(0) 推荐(0)
摘要:public String export() { HttpServletResponse response = ServletActionContext.getResponse(); filename = filename==null?"chart":filename; ... 阅读全文
posted @ 2014-09-18 10:47 左手心_疼 阅读(302) 评论(0) 推荐(0)
摘要:1.普通的url传值 -----------------------------Js代码: 1 //页面加载自动分页 2 $(function(){ 3 //var url = "${pageContext.request.cont... 阅读全文
posted @ 2014-09-17 10:40 左手心_疼 阅读(3297) 评论(0) 推荐(0)
摘要:1 //对Iframe和图表设置高度 2 function f() { 3 parent.window.setWinHeight(parent.window.document.getElementById("frame_${queryCategory}")); 4 ... 阅读全文
posted @ 2014-07-31 15:31 左手心_疼 阅读(223) 评论(0) 推荐(0)
摘要:一、父窗口调用iframe子窗口方法 1、HTML语法: 2、父窗口调用子窗口:myFrame.window.functionName(); 3、子窗品调用父窗口:parent.functionName(); 简单地说,也就是在子窗口中调用的变量或函数前加个parent.就行 parent.wind... 阅读全文
posted @ 2014-07-31 15:27 左手心_疼 阅读(171) 评论(0) 推荐(0)
摘要:第一种方法:代码简单,兼容性还可以,大家可以先测试下。 1 function SetWinHeight(obj) 2 { 3 var win=obj; 4 if (document.getElementById) 5 { 6 if (win && !window.opera) 7 { ... 阅读全文
posted @ 2014-07-31 15:21 左手心_疼 阅读(199) 评论(0) 推荐(0)