我准备了简单的脚本,ProgressGauge在wpInstalling页面上的栏下显示图像.
但是......我需要更复杂的功能.
我需要的是多个图像显示,每个显示X(例如7)秒(安装时的循环时间超过X秒*图像数量)或每次安装后X(例如10%).我试图嵌入图像显示ProgressGauge.Position,但我失败了.
这是我有的:
procedure CurPageChanged(CurPageID: Integer);
var
BmpFile: TBitmapImage;
begin
ExtractTemporaryFile('01.bmp');
ExtractTemporaryFile('02.bmp');
ExtractTemporaryFile('03.bmp');
if CurPageID = wpInstalling then
begin
BmpFile:= TBitmapImage.Create(WizardForm);
BmpFile.Bitmap.LoadFromFile(ExpandConstant('{tmp}\01.bmp'));
BmpFile.Width:= ScaleX(420);
BmpFile.Height:= ScaleY(180);
BmpFile.Left := WizardForm.ProgressGauge.Left + ScaleX(0);
BmpFile.Top := WizardForm.ProgressGauge.Top + ScaleY(35);
// BmpFile.Parent:= WizardForm.InstallingPage;
// BmpFile:= TBitmapImage.Create(WizardForm);
// BmpFile.Bitmap.LoadFromFile(ExpandConstant('{tmp}\03.bmp'));
// BmpFile.Width:= ScaleX(420);
// BmpFile.Height:= ScaleY(400);
// BmpFile.Left := WizardForm.ProgressGauge.Left + ScaleX(0);
// BmpFile.Top := WizardForm.ProgressGauge.Top + ScaleY(35);
// BmpFile.Parent:= WizardForm.InstallingPage;
// BmpFile:= TBitmapImage.Create(WizardForm);
// BmpFile.Bitmap.LoadFromFile(ExpandConstant('{tmp}\03.bmp'));
// BmpFile.Width:= ScaleX(420); …Run Code Online (Sandbox Code Playgroud) 我知道那里有数百个jquery滑块,但这就是为什么很难找到特定情况的滑块.
我需要一个类似于Supersized,但对于HTML内容,不仅仅是图像.所以我需要的是:
我的计划是将它与AJAX一起使用来加载wordpress内容,所以如果它内置了AJAX请求,那就更好了.
我有一个(不寻常的)来自客户端的请求,即在"幻灯片"动画期间每个幻灯片之间至少有40个像素的填充/边距.Flexslider的默认值是针对彼此刷新的项目.
2.0中有一个新的JQuery选项用于"itemMargin",但它似乎只用于"carousel"设置.如果我通过CSS应用保证金,每张幻灯片都会碰到下一张幻灯片.
无论如何在幻灯片之间应用保证金,还是这是一个不可能的选择?
这是我当前的选项设置
$(window).load(function() {
$('.home_slider').flexslider({
animation: "slide", //String: Select your animation type, "fade" or "slide"
smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
slideshow: false, //Boolean: Animate slider automatically
controlNav: false,
directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false)
prevText: "%", //String: Set the text for the "previous" directionNav item
nextText: "&",
// Carousel Options
itemMargin: 40
});
Run Code Online (Sandbox Code Playgroud) 我想知道你如何使背景幻灯片淡入其他照片,如常规幻灯片.我尝试过很多代码,但还没有成功.
现在,我有一个代码,可以将背景更改为不同的照片,效果很好,但它不会消失.反正有没有添加这个?
这是代码
<html>
<head>
<style>
body{
/*Remove below line to make bgimage NOT fixed*/
background-attachment:fixed;
background-repeat: no-repeat;
background-size: cover;
/*Use center center in place of 300 200 to center bg image*/
background-position: 0 0; background-
}
</style>
<script language="JavaScript1.2">
//Background Image Slideshow- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and TOS,
//visit http://www.dynamicdrive.com
//Specify background images to slide
var bgslides=new Array()
bgslides[0]="http://i892.photobucket.c…
bgslides[1]="http://i892.photobucket.c…
bgslides[2]="http://i892.photobucket.c…
//Specify interval between slide (in miliseconds)
var speed=2000
//preload images …Run Code Online (Sandbox Code Playgroud) 是否可以使用带有X子div的容器div,每个div可在浏览器中调整100%?我知道它可以用一个背景来完成,但不能用一行div ...这就是我打算做的事情(左/右滑动的幻灯片):

HTML:
<div id="slideshowContent">
<div id="slideshowImage_01" class="slideshowImage_container"></div>
<div id="slideshowImage_02" class="slideshowImage_container"></div>
<div id="slideshowImage_03" class="slideshowImage_container"></div>
<div id="slideshowImage_04" class="slideshowImage_container"></div>
</div> <!-- End of id="slideshowContent" -->
Run Code Online (Sandbox Code Playgroud)
......和CSS:
#slideshowContainer {
z-index: 0;
width: 11520px; height: 1080px;
position: relative;
}
.slideshowImage {
width: 1920px; height: 1080px;
float: left;
}
Run Code Online (Sandbox Code Playgroud)
感谢名单.
佩德罗
编辑1:我忘了提到每个div包含一个图像.
编辑2:添加了我自己更新的FIDDLE.
我试图使用JavaScript和/或jQuery将文本添加到div中,然后每隔10秒将文本更改为不同的文本 - 所以有点像纯文本的幻灯片.这是我的代码:
<div id="textslide"><p></p></div>
<script>
var quotes = new Array();
quotes[0] = "quote1";
quotes[1] = "quote2";
quotes[2] = "quote3";
quotes[3] = "quote4";
quotes[4] = "quote5";
var counter = 0;
while (true) {
if (counter > 4) counter = 0;
document.getElementById('textslide').firstChild.innerHTML = quotes[counter];
counter++;
setTimeout( // not sure what to put here, 500); // Want to delay loop iteration
}
</script>
Run Code Online (Sandbox Code Playgroud) 我在rmarkdown制作幻灯片,当我使用时
kable(tablename)
Run Code Online (Sandbox Code Playgroud)
柱子调整,使桌子适合整个幻灯片.
我希望列以某种方式更小的固定大小.通过围绕文本/数字的宽度包装列,或声明固定宽度.
另外,我不介意缩小整个表格的尺寸.
我想避免使用其他软件包,只想知道如何使用kable.
访问数组时,何时使用.eq()函数是否合适?
例如,我有......
slides.eq(slidesLength-1).css("z-index", (slidesLength-1));
Run Code Online (Sandbox Code Playgroud)
后来我......
for(i=0; i<slidesLength-1; i++) {
$(slides[i]).css("left", "-100%");
}
Run Code Online (Sandbox Code Playgroud)
在第一段代码中,如果我不使用.eq()函数,幻灯片放映将停止运行.但是,无论我是否使用.eq()函数,第二部分似乎都起作用.为什么是这样?
在r-markdown中是一个将yamltitle:移出主yaml的选项,如R Markdown Cookbook 中所述。
但是,在xaringan幻灯片中,新幻灯片---似乎与新幻灯片的想法相冲突。
下面的代码有效,但是当将第 2 行移到title: "Presentation Ninja"主yaml之外并将其插入为title: "The name of the dog is r dog_name 时!",通过删除<!-- ... -->第 17-19 行中的所有代码,它无法按预期工作。我不再得到标题页。我想我需要解决---in xaringan 问题?
任何帮助,将不胜感激!
---
title: "Presentation Ninja"
subtitle: "?<br/>with xaringan"
author: "Yihui Xie"
output:
xaringan::moon_reader:
lib_dir: libs
---
# xaringan set the document title dynamically
```{r, code=xfun::read_utf8('script_with_many_dog_names.R')} …Run Code Online (Sandbox Code Playgroud) slideshow ×10
jquery ×6
javascript ×4
css ×2
html ×2
r ×2
r-markdown ×2
arrays ×1
background ×1
dynamic ×1
flexslider ×1
image ×1
inno-setup ×1
loops ×1
pascalscript ×1
slider ×1
swiper ×1
xaringan ×1