search
Homephp教程php手册在Discuz论坛中插入FLASH的相关参数设置

此贴是详细讲解如何自定义"FLASH"代码参数设置,建议新手看看。

最终在Discuz论坛中插入FLASH,实现的效果图如下:

可以定义FLASH的高度和宽度,及路径..

首先要明白的是,若想在发贴时插入Flash 动画,必须满足三个因素:
1)   相应的版块设置中必须是“允许使用 Discuz! 代码”
2)相应的用户组权限必须是“允许使用自定义 Discuz! 代码
2)必须把 [flash] 代码设置为“可用”(如图所示)
  设置步骤是:登录后台 → 贴子管理 → 贴子相关 → Discuz!代码

下载 (9.52 KB)

2007-11-29 15:40




按照以上三个因素,现在已经可以用贴子中使用插入Flash 动画了:
当点击那个Flash小图标,如图,就会出现以下内容:

下载 (2.97 KB)

2007-11-29 15:40



如上图,虽然可以插入Flash,但问题是:无法自己设置Flash的宽度与高度值!

以下步骤将详解参数设置(不要觉得复杂,可以只看红字部分)

————————————————————————————————————
替换内容:
标签替换为的 HTML 代码内容,支持至多三个动态参数
{1} 代表第一个参数 默认值是用来填写Flash动画文件地址,不必作修改
{2} 代表第二个参数 默认是未使用,现自定义为Flash宽度值
{3} 代表第三个参数 默认是未使用,现自定义为Flash宽度值

复制代码

请留意以上内容中只有四处需改动(醒目红字部分),是将原有数值改为参数:{2} {3}

参数个数:
本代码中使用到的动态参数个数 3   (系统默认值是1,现改为3)

参数提示语:
原有默认值仅是一条提示语(第一行),现在增加两条(插入Flash时提示对应输入参数), 如下:
请输入 Flash 动画的 URL:
请输入 Flash 动画的 宽度(像素值):
请输入 Flash 动画的 高度(像素值):

————————————————————————————————————
至此,自定义代码完毕,点击[提交]按钮即可。
然后去发贴插入Flash试试看吧.



Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment