- 浏览: 85648 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
ssy341:
说的简单了点,和官网的文档差不多,多文件上传也不是很好,不过可 ...
jQuery插件AjaxFileUpload文件上传实现Javascript多文件上传功能 -
蓝凝幽偌:
有没有jar包?
org.apache.commons.net.ftp.FTPClient 的简单用法 -
tinguo002:
在这里缓缓走过,很为楼主钻研精神感动,也感谢楼主分享。
关于Struts2资源文件的配置
全部代码如下:
注意要在pic文件下放入10个图片,名字为:pic1.jpg、pic2.jpg......pic9.jpg
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.ajax4jsf.org/rich">
<head>
<title>后台管理</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
content="A short description of this page." />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<style type="text/css">
<!--
td {font-family: Verdana, Arial, sans-serif, Helvetica; font-size: 12px; color: #F0F0F0;}
a {font-family: Verdana, Arial, sans-serif, Helvetica; font-size: 12px; color: #F0F0F0; text-decoration: none}
#btnStyle {font-family: Verdana, Arial, sans-serif, Helvetica; font-size: 12px; background-color: #C0C020; border-top: 0px solid; border-bottom: 0px solid; border-left: 0px solid; border-right: 0px solid;}
//--></style>
<script language="JavaScript" type="text/JavaScript"><!--
var img = new Array(10); //array to hold the images
var start = null; //start pointer
var counter = 1; //counts the image sequences
var delayTime = null; //user defined
if(document.images) //pre-load all the images
{
/* change the looping condition if you want
to add or remove images. Do not load too
many images, it will slow down the program's
loading time [e.g. 30 or above images] */
for(i = 1; i <= 10; i++)
{
img[i] = new Image();
img[i].src = "../images/pic/pic" + i + ".jpg";
}
}
//function for getting the user defined delay time
function getDelayTime(dlTime)
{
var temp = parseInt(dlTime);
if(temp != NaN)
delayTime = temp * 1000;
else
delayTime = 4000;
}
//function for changing the images
function anim()
{
counter++;
document.images[0].src = img[counter].src;
if(counter == 10)
counter = 0; //sets the counter value to 0
}
//function for starting the slide show
function slide()
{
getDelayTime(document.form1.delay.value);
with(document.form1)
{
start = setInterval("anim()", delayTime);
stShow.disabled = true;
spShow.disabled = false;
}
}
//function to stop the slide show
function stopSlide()
{
clearInterval(start);
document.form1.stShow.disabled = false;
document.form1.spShow.disabled = true;
}
//--></script>
<table>
<tr><td valign="top" align="center">
<img src="../images/pic/pic1.jpg" border="0" width="400" height="300" />
<form name="form1">
请输入图片显示间隔时间:
<input type="text" size="2" value="4" name="delay" />
<input type="button" value="Start Show" name="stShow" onmousemove="slide();" id="btnStyle" />
<input type="button" value="Stop Show" name="spShow" onmousemove="stopSlide();" id="btnStyle" />
</form>
</td></tr></table>
</body>
</html>
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/guijava/archive/2008/11/04/3216914.aspx
注意要在pic文件下放入10个图片,名字为:pic1.jpg、pic2.jpg......pic9.jpg
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.ajax4jsf.org/rich">
<head>
<title>后台管理</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
content="A short description of this page." />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<style type="text/css">
<!--
td {font-family: Verdana, Arial, sans-serif, Helvetica; font-size: 12px; color: #F0F0F0;}
a {font-family: Verdana, Arial, sans-serif, Helvetica; font-size: 12px; color: #F0F0F0; text-decoration: none}
#btnStyle {font-family: Verdana, Arial, sans-serif, Helvetica; font-size: 12px; background-color: #C0C020; border-top: 0px solid; border-bottom: 0px solid; border-left: 0px solid; border-right: 0px solid;}
//--></style>
<script language="JavaScript" type="text/JavaScript"><!--
var img = new Array(10); //array to hold the images
var start = null; //start pointer
var counter = 1; //counts the image sequences
var delayTime = null; //user defined
if(document.images) //pre-load all the images
{
/* change the looping condition if you want
to add or remove images. Do not load too
many images, it will slow down the program's
loading time [e.g. 30 or above images] */
for(i = 1; i <= 10; i++)
{
img[i] = new Image();
img[i].src = "../images/pic/pic" + i + ".jpg";
}
}
//function for getting the user defined delay time
function getDelayTime(dlTime)
{
var temp = parseInt(dlTime);
if(temp != NaN)
delayTime = temp * 1000;
else
delayTime = 4000;
}
//function for changing the images
function anim()
{
counter++;
document.images[0].src = img[counter].src;
if(counter == 10)
counter = 0; //sets the counter value to 0
}
//function for starting the slide show
function slide()
{
getDelayTime(document.form1.delay.value);
with(document.form1)
{
start = setInterval("anim()", delayTime);
stShow.disabled = true;
spShow.disabled = false;
}
}
//function to stop the slide show
function stopSlide()
{
clearInterval(start);
document.form1.stShow.disabled = false;
document.form1.spShow.disabled = true;
}
//--></script>
<table>
<tr><td valign="top" align="center">
<img src="../images/pic/pic1.jpg" border="0" width="400" height="300" />
<form name="form1">
请输入图片显示间隔时间:
<input type="text" size="2" value="4" name="delay" />
<input type="button" value="Start Show" name="stShow" onmousemove="slide();" id="btnStyle" />
<input type="button" value="Stop Show" name="spShow" onmousemove="stopSlide();" id="btnStyle" />
</form>
</td></tr></table>
</body>
</html>
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/guijava/archive/2008/11/04/3216914.aspx
发表评论
-
java编程思想final的理解
2015-03-06 13:38 322根据上下文环境,java的关键字final也存在着细微的区别, ... -
PDF2SWF中文字符集解决方案
2014-02-26 15:12 792转自:http://www.cnblogs.com/liver ... -
Runtime.getRuntime().exec() 输出流阻塞的解决方法
2014-02-26 09:40 1816转自:http://blog.csdn.net/xiaoani ... -
笔记(不用老搜索了)
2013-07-17 16:16 0下面代码则执行了subgo()函数, <a href ... -
利用LinkedBlockingQueue实现生产者-消费者模式
2013-06-05 16:09 668由于LinkedBlockingQueue 实现是线程安全的, ... -
加密123
2013-05-08 22:35 791/** * 加密传输时的密码 * @author weirhp ... -
jsoup解析
2013-04-28 15:31 647http://www.ibm.com/developerwor ... -
java线程管理利器:java.util.current的用法举例
2012-12-05 15:42 975DK5中增加了Doug Lea的并发库,这一引进给java线程 ... -
Tomcat - 解决which must be escaped when used within the value错误
2012-11-19 15:17 626http://www.cnblogs.com/javadu/a ... -
Java POI Word 写文档
2012-11-09 09:19 7981 package apache.poi; 2 3 ... -
使用COS组件实现文件上传
2012-06-15 11:25 1449转自:http://blog.csdn.net/jadyer/ ... -
Java Annotation(1)
2011-06-19 09:48 632作者:曾巧(numenzq) 摘要 Annotation( ... -
关于request得到路径的几种方法
2011-06-08 15:43 916request.getRequestURI() /jque ... -
JAVA EXCEL API 简介
2011-04-18 16:32 695转自:http://www.ibm.com/dev ... -
Hibernate 多对多双向关联
2011-03-21 11:09 595Hibernate 多对多双向关联 一、模型介绍 多个 ... -
Hibernate 一对多连接表双向关联
2011-03-21 11:09 738Hibernate 一对多连接表双向关联 一、模型介绍 ... -
Hibernate 一对多外键双向关联
2011-03-21 11:08 748Hibernate 一对多外键双向关联 一、模型介绍 ... -
Hibernate 一对一主键双向关联
2011-03-21 11:07 682Hibernate 一对一主键双向关联 一对一主键映射在一 ... -
Hibernate 一对一外键双向关联
2011-03-21 11:07 613Hibernate 一对一外键双向关联 一对一外键关联是一 ... -
Hibernate 多对多单向关联
2011-03-21 11:06 611Hibernate 多对多单向关联 一、模型介绍 多个人( ...
相关推荐
实现在页面里动态显示图片,每隔一秒换一张图片
Simple Controls Gallery v1.3 jquery 实现 图片轮流播放
LCD图片显示 C语言 程序代码
Js 图片轮换显示 图片轮换显示 源代码 Js 图片轮换显示 图片轮换显示 源代码 ~~~~~~~~~~~~~~~~~~~~
实现图片切换轮流显示,sdjffjwqejrewfjksdfksdfkdsjvnkdsnvkdsfkdsfdsfsdfsdfdsfsdf
啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
通过原生jquery实现图片轮流播放
本代码有图片定时展示功能和光标划过图片按钮,显示相应图片功能 本来不想自己做,下载了一个别人做好的代码,但用了另外一个定时功能后,这个就无法正常显示了,于是就自己动手编写了这个功能,代码竟然还没那个...
使用一个scrollView控件做成的一个图片轮播器,注释很详细
运行之后,点击鼠标,能够实现图片的交替显示。
图片轮流显示的横幅广告,内有两个文件(带按钮轮换横幅广告和简单的轮换横幅广告)
开发环境:mini2440 X35 LCD 编译环境:Keil uVision5 裸机程序 下载后将图片程序和主程序一起编译即可,附可执行bin文件 学习裸机程序时自编的LCD程序,上传以帮助初学者学习LCD编程
网页制作的轮流显示 与网页特效代码 HTML
可以实现QQ相册的效果,有DEMO。 QQ相册js组件,实现图片轮流展示
该样子主要在网页上嵌入一个flash,并配置一个xml文件,即提供相应的图片即可显示,注意所有图片大小应该一样,以便于控制flash大小。里面有实例,自己对着改下就可以。
腾讯科技热点推荐图片代码(三屏图片轮流切换).zip 腾讯科技热点推荐图片代码(三屏图片轮流切换).zip 腾讯科技热点推荐图片代码(三屏图片轮流切换).zip
在arm开发板子上显示任意图片或照片的方法步骤及源程序
osg节点轮流显示,隐藏和显示 osg节点轮流显示,隐藏和显示 osg节点轮流显示,隐藏和显示
装逼 https://blog.csdn.net/ly305750665/article/details/82496046 的完整实现