用法:
const textscript = 'console.log("test")';
loadScriptFromText(textscript);
类别:PHP 查看:350
更新:2014-06-29
调用实例:
window.onload = function(){
example1 = new EasyWindow("测试窗口2" ,"这里是自定义:
<input type='text' />输入文字" ,"common")
example2 = new EasyWindow("测试窗口1" ,"http://www.baidu.com" ,"url" ,{
left:"300px" ,top:"100px" ,width:"750px" ,height:"600px" ,background:"images/gray.gif"
});
example3 = new EasyWindow("测试窗口3" ,"http://www.google.cn" ,"url" ,{
left:"400px" ,top:"200px" ,width:"750px"...
Style-able and semantic XHTML
I have tried to make Calendar as semantic as possible–with proper usage of CAPTION, THEAD, TBODY, TH and TD elements–and lots of CSS styling hooks. View the Calendar stylesheet for examples of the CSS; see the Styling Your Calendar section in the Manual for references to the XHTML.
myCal1 = new Calendar({ date1: 'd/m/Y' }, { direction: 1, tweak: { x: 6, y: 0 }});
myCal2 = new Calendar({ date2: 'd/m/Y' }, { classes: ['dashboard'], direction: 1 });
myCal3 = new Calendar({ date3: 'd/m/Y' }, { ...
调用实例:
window.onload = function(){
example1 = new EasyWindow("测试窗口2" ,"这里是自定义:
<input type='text' />输入文字" ,"common")
example2 = new EasyWindow("测试窗口1" ,"http://www.baidu.com" ,"url" ,{
left:"300px" ,top:"100px" ,width:"750px" ,height:"600px" ,background:"images/gray.gif"
});
example3 = new EasyWindow("测试窗口3" ,"http://www.google.cn" ,"url" ,{
left:"400px" ,top:"200px" ,width:"750px"...
使用方法:
1、点击多选的多选框加上一个属性 rel=”M”
2、点击多选的多选框id属性 和 被选择的多选框 name属性相同
例:
<input id="xiedaima" type="checkbox" rel="M" />全选
<input type="checkbox" name="xiedaima" />选项1
<input type="checkbox" name="xiedaima" />选项2
<input type="checkbox" name="xiedaima" />选项3...
类别:CSS 查看:159
更新:2014-04-19
类别:CSS 查看:134
更新:2014-04-19