关于列的字体大小和声音提示

我想改变列表中的小字体,和在AJAX刷新出新记录的时候有声音提示

我试着在ACTION中
row.put("userName",""+user.getUserName()+"");
但这样子,列表看是字体变大了,而表格没变,字就看不全了。
还有就是想在有新记录的时候播放一个短的声音提示。

还有,想在页面上加一个1分钟倒计时有哪位做过吗?时间到以后触发一个事件。

谢谢!
[b]问题补充:[/b]
能具体点么 - -
[b]问题补充:[/b]
还有就是
在Struts2中可以用
pw.write(jsonString);
然后renturn null;
就能把数据传下去

但在struts1.1中,怎么做?
request.setAttribute("jsonString", jsonString);吗?
不太懂了。。
[b]问题补充:[/b]
但问题是换了struts1
pw.write(jsonString); 就不出数据了
[b]问题补充:[/b]
我还没试,问下,这个倒计时可以在页面上显示出来吗?
[b]问题补充:[/b]
还有

To change the font.
.x-grid3-hd-row td, .x-grid3-row td, .x-grid3-summary-row td {
font-size: 16px;
}
这个是要自己定义css码?加在哪呢?
[b]问题补充:[/b]
我的意思是
.x-grid3-hd-row td, .x-grid3-row td, .x-grid3-summary-row td
这个写在哪...
[b]问题补充:[/b]
那声音呢 。。。。
[b]问题补充:[/b]
GridPanel的title后面能显示时间吗?
[b]问题补充:[/b]
$#%%$&$%#

我的意思是定义的css在哪里用- -
[b]问题补充:[/b]
自动的 ?
[b]问题补充:[/b]
内部哪里呢- -
有例子没有哇

gridPanel里的title是
title:'用户列表',
这样子的,怎么改呢?

就不舍得花个时间看下api?

setTitle( String title, [String iconCls] ) : void

Sets the title text for the panel and optionally the icon class.
In order to be able to set the title, a header element must have been created for the Panel. This is triggered either by configuring the Panel with a non-blank title, or configuring it with header: true.

[quote]内部哪里呢- -
有例子没有哇[/quote]

有兴趣可以用firebug看grid生成的html dom+css
或者看GridView+GridPanel源码

[quote]列表看是字体变大了,而表格没变,字就看不全了。 [/quote]

用模板XTemplate

[quote]还有,想在页面上加一个1分钟倒计时有哪位做过吗?时间到以后触发一个事件[/quote]

这个可以做的啊。
[url]http://www.google.cn/search?hl=zh-CN&newwindow=1&q=js+%E6%8C%87%E5%AE%9A%E6%97%B6%E9%97%B4&btnG=Google+%E6%90%9C%E7%B4%A2&aq=f&oq=[/url]

[quote]pw.write(jsonString); [/quote]

这个和struts是没有关系的。这个是servlet里面的方法啊。

一般都是用第三方框架来生成json串的。除非简单返回就用这种方式。

1.你是想改变grid的文字大小么? 看[url]http://extjs.com/learn/Ext_FAQ_Grid#To_modify_text[/url]

2.倒计时
[code="java"]
// Start a simple clock task that updates a div once per second
var updateClock = function(){
Ext.fly('clock').update(new Date().format('g:i:s A'));
}
var task = {
run: updateClock,
interval: 1000 //1 second
}
var runner = new Ext.util.TaskRunner();
runner.start(task);

// equivalent using TaskMgr
Ext.TaskMgr.start({
run: updateClock,
interval: 1000
});[/code]

[url]问题补充:
我还没试,问下,这个倒计时可以在页面上显示出来吗?
问题补充:
还有

To change the font.
.x-grid3-hd-row td, .x-grid3-row td, .x-grid3-summary-row td {
font-size: 16px;
}
这个是要自己定义css码?加在哪呢? [/url]

1.有了时间了,你还不会显示么? 刚才给的代码就是了,Ext.fly('clock')的clock即为div id

2.css没写过么?.......................当然是写在你的html/php/jsp啦

[size=xx-large][b]当然是写在你的html/php/jsp啦[/b][/size]

[code="java"][/code]

.x-grid3-hd-row td, .x-grid3-row td, .x-grid3-summary-row td

是grid内部用到的.

[quote]GridPanel的title后面能显示时间吗?[/quote]

grid继承于panel啊,你修改title不就ok了.