English 中文(简体)
简而言之,在固定网站增加轮换图像时,如何使用 Java或闪光工具?
原标题:What s a simple to implement Javascript or Flash-based tool for adding rotating images to a static website?
  • 时间:2010-05-11 18:45:56
  •  标签:
  • web

我愿找到一种免费或廉价的工具,以在小学校网页上增加各种图像。 我想像Word plugin JS Banner Rotate,但用于静态网站。

任何建议? 感谢!

问题回答

http://preview.moveable.com/jm/slideshow/"rel=“nofollow noreferer”> 我建造了这一,使用了多个小组。 你们可以很容易地为单一小组或多个小组修改。

它基本上使用图像和CSS背景。 它为目前的形象打下了背景,然后隐藏着新形象、wa和fa。 Built using jQuery.

这应当非常容易,不需要任何图书馆或只需要几条 j字。

请允许我在您的网站上发表您希望轮换的全貌目录。

/web_root/images/rotate

a. 具有类似形象的图像:

/web_root/images/rotate/img1.jpg
/web_root/images/rotate/img2.jpg
/web_root/images/rotate/img3.jpg
...

之后,您的网页上有一个mg,你希望通过这个图像轮流播放。

<img id="rotator" src="images/rotate/img1.jpg"></img>

接着在您的文件上添加一个载荷活动。

<body onload= start_rotate >...

然后,在您的:<head>中界定了包含文字部分的内容。

var num_of_images = ...;
var timeout = 1000;
function start_rotate() {
    window.setTimeout( rotate() , timeout );
}
function rotate() {
    window.setTimeout( rotate() , timeout );
    var im = document.getElementById( rotator );
    var index = im.src.substring(im.src.indexof( . )-1, 1);
    var next_index = index + 1 % num_of_images;
    im.src = "images/rotate/img" + next_index +".jpg";
}

i 可能有一些同学的错误,但这应说明这种错误,只是为每个1,000毫秒播放图像留出时间。

good

HTML5 Canvas,尽了最大可能这样做。





相关问题
Block Websites Under Certain Conditions

I d like to create a simple program that will block certain websites for the user under certain conditions (e.g. after 7:00pm if homework is due the next day). This would be just a programming ...

Looking for a good exercise in building a website

I d like to learn how to build a website, say using .Net (Monorail comes to mind). I d like a pet project, something that: Will take a fair yet reasonble amount of time I can I can build on my own ...

Recoding a Podcast Website - What should I use?

OK here is the deal. Me and some buddies are doing a Podcast(for over 4 year now) and in April we relaunched the site, that included a new Backend. Since I only had 2 weeks back then for getting ...

Cache And Compare Files In C#

Ok, I m trying to make an application for an online Radio Station. I have it set to read the song title and artist and write it to a text file on the webserver. I want to have the application store ...

How does Drupal provide an edit/review/publish model?

How does Drupal support a means to update and review a website before it is published? Does it only allow you to preview a page at a time before you publish it or is there a way to create a site ...