- 博客(12)
- 资源 (25)
- 收藏
- 关注
css + div + javascript 图片轮换
图片轮换
使用的时候 非常简单只需 一步调用即可
<script>new at_imgSwitch("at_imgSwitch",true);</script>
2011-07-13
Sqlserver2000 jdbc jar包
Sqlserver2000 jdbc jar包 驱动
三个jar包
msbase.jar
mssqlserver.jar
msutil.jar
2010-12-24
JavaScript 实现HTML业务流程图
1.确认订单信息
2.付款到财付通
3.确认收货
4.评价卖家
5.评价卖家
step=1;
function next(num)
{
step+=num;
document.getElementById('step_div').className='flow_step_no'+step;
}
2011-03-01
jxl.jar java 操作 excel
Workbook workbook = Workbook.getWorkbook(new File("myfile.xls"));
(NOTE: when creating a spreadsheet from a ServletInputStream you must remove the HTTP header information before creating the Workbook object.)
Once you have accessed the workbook, you can use this to access the individual sheets. These are zero indexed - the first sheet being 0, the second sheet being 1, and so on. (You can also use the API to retrieve a sheet by name).
Sheet sheet = workbook.getSheet(0);
Once you have a sheet, you can then start accessing the cells. You can retrieve the cell's contents as a string by using the convenience method getContents(). In the example code below, A1 is a text cell, B2 is numerical value and C2 is a date. The contents of these cells may be accessed as follows
Cell a1 = sheet.getCell(0,0);
Cell b2 = sheet.getCell(1,1);
Cell c2 = sheet.getCell(2,1);
String stringa1 = a1.getContents();
String stringb2 = b2.getContents();
String stringc2 = c2.getContents();
// Do stuff with the strings etc
...
The demo programs CSV.java and XML.java use the convenience method getContents() in order to output the spreadsheet contents.
2010-09-08
chrome 调用本地exe
1,chrome 浏览器本身不支持直接调用exe,但可以使用url protocol handler 调用exe
2,直接双击exe_chrome.reg 安装注册表
3,test.html 要在运行在容器里(tomcat,resin XXXX),本地直接打开是执行不了的,我折腾了好久才弄懂这个问题的
注,chrome 通过注册表注册表 只能调用本地的 exe 或者bat文件,不能调用 ppt word 这样的问题,所以我用VB 写了一个exe 可以接收调用参数,这样只许注册一次就可以通过传参打开所有课执行文件了
由于1.exe是后台直接打开windows 的exe 所以杀毒软件有可能会提示1,exe 是病毒程序。
2014-08-18
swing 播放 rtsp 视频
电脑上需要安装 vlc 播放器,然后用再运行此程序 就可以直接打开了
利用 vlcj 插件。
mediaPlayerComponent = new EmbeddedMediaPlayerComponent();
// mediaPlayerComponent.getMediaPlayer().addMediaOptions(":network-caching=500");
mediaPlayerComponent.setSize(1280, 960);
frame.getContentPane().setLayout(null);
frame.add(mediaPlayerComponent);
frame.setLocation(100, 100);
frame.setSize(1440, 1024);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
MediaPlayer player = mediaPlayerComponent.getMediaPlayer();
String[] options =
{"video-filter=motionblur", "network-caching=200", "no-plugins-cache"};
player.playMedia("rtsp://admin:1qaz2wsx@192.168.0.102:554/h264/ch1/main/av_stream",options);
2017-09-01
网页播放器
网页嵌入播放器
<object id="movie_player" type="application/x-shockwave-flash" width="361" height="254" wmode="transparent" >
<param name="movie" value="player.swf?file=01.flv&image=JackWelchGMC.jpg">
<param name="wmode" value="transparent">
<param name="allowfullscreen" value="true">
</object>
2011-09-10
javascript 秒表
代码非常精简的 javascript 秒表
00:00:00
部分代码
//显示到网页
$('#hh').html(append0(hour));
$('#mm').html(append0(minute));
$('#ss').html(append0(second));
2013-11-14
java 两个日期的所有天
可以列出两个日期中间的所有天
20090501, 20090502, 20090503, 20090504, 20090505, 20090506, 20090507, 20090508, 20090509,
2010-06-13
eclipse 右键直接查看文件 easyexplore
如果你经常需要在Eclipse里打开相关资源文件所在的文件夹,比较麻烦,要右键,属性,在Location一栏中把所在的文件夹拷贝一下,然后再去资源管理器里输入这个路径,回车,打开它。
解决方法:
用EasyExplorer插件,有了这个插件就可以很方便地打开资源文件所在的文件夹了.
2011-11-25
javascript , jquery 相册 照片播放
javascript , jquery 相册 照片播放
非常华丽的照片的jquery 相册
使用也非常简单。demol 在index.html里
2011-02-04
IE6 PNG 透明
我们知道IE6是不支持透明的PNG的,这无疑限制了网页设计的发挥空间.
然而整个互联网上解决这个IE6的透明PNG的方案也是多不胜数,从使用IE特有的滤镜或是e-xpression,
再到javascript透明GIF替代.但是这些方法都有一个缺点,就是不支持CSS中backgrond-position与background-repeat.
而我今天介绍DD_belatedPNG,只需要一个理由,就是它支持backgrond-position与background-repeat.
这是其他js插件不具备的.同时DD_belatedPNG还支持a:hover属性,以及<img>.
原理
这个js插件使用了微软的VML语言进行绘制,而其他多数解决PNG问题的js插件用的是AlphaImageLoader滤镜
2012-01-05
javaScript 操作excle
var filePath =getCurrentDirectory()+"sta.xls";
var oXL = new ActiveXObject("Excel.application");
var oWB = oXL.Workbooks.open(filePath);
oWB.worksheets(1).select();
var oSheet = oWB.ActiveSheet;
var a = oSheet.usedrange.rows.count;
.....在资源包
2011-03-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人