略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: HaruPage::setSlideShow

2024-12-21

HaruPage::setSlideShow

(PECL haru >= 0.0.1)

HaruPage::setSlideShowSet transition style for the page

说明

HaruPage::setSlideShow ( int $type , float $disp_time , float $trans_time ) : bool

Defines transition style for the page.

参数

type

Must be one of the following values:

  • HaruPage::TS_WIPE_RIGHT
  • HaruPage::TS_WIPE_LEFT
  • HaruPage::TS_WIPE_UP
  • HaruPage::TS_WIPE_DOWN
  • HaruPage::TS_BARN_DOORS_HORIZONTAL_OUT
  • HaruPage::TS_BARN_DOORS_HORIZONTAL_IN
  • HaruPage::TS_BARN_DOORS_VERTICAL_OUT
  • HaruPage::TS_BARN_DOORS_VERTICAL_IN
  • HaruPage::TS_BOX_OUT
  • HaruPage::TS_BOX_IN
  • HaruPage::TS_BLINDS_HORIZONTAL
  • HaruPage::TS_BLINDS_VERTICAL
  • HaruPage::TS_DISSOLVE
  • HaruPage::TS_GLITTER_RIGHT
  • HaruPage::TS_GLITTER_DOWN
  • HaruPage::TS_GLITTER_TOP_LEFT_TO_BOTTOM_RIGHT
  • HaruPage::TS_REPLACE
disp_time

The display duration of the page in seconds.

trans_time

The duration of the transition effect in seconds.

返回值

Returns TRUE on success.

错误/异常

发生错误时抛出 HaruException 异常。

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/harupage.setslideshow.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3