flashplayer.php
来自「STCMS音乐系统 系统功能: 1、随意的添加导航栏目的频道」· PHP 代码 · 共 33 行
PHP
33 行
<?php
///////////////////////////////////////////////
// Author:daong | E-mail: dahongy@gmail.com
// Copyright © Http://stcms.vicp.net
// $Id: 09-03-23 final version $
///////////////////////////////////////////////
require("common.inc.php");
$files = $mysql->select("upload","*","`ext` IN ('jpg','bmp','gif','pnf')","`time` DESC",array('0','5'));
if($files)
{
foreach($files as $temp)
{
$obj['pic'][] = $temp['url'];
$special = $mysql->selectOne("special","`id`,`name`",array("picture"=>$temp['url']));
$obj['link'][] = $special ? WEB_URL."special.php?id={$special['id']}" : $temp['url'];
$obj['text'][] = $special ? $special['name'] : $temp['name'];
}
}
if($obj)
{
$pics = implode("|",$obj['pic']);
$links = implode("|", $obj['link']);
$texts = implode("|",$obj['text']);
}
$code = "<script type=\"text/javascript\">var focus_width=302; var focus_height=232; var text_height=18; var swf_height = focus_height+text_height;";
$code .= "var pics = '{$pics}'; var links = '{$links}'; var texts = '{$texts}';";
$code .= "document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"'+ focus_width +'\" height=\"'+ swf_height +'\">');";
$code .= "document.write('<param name=\"allowScriptAccess\" value=\"sameDomain\"><param name=\"movie\" value=\"".WEB_URL."images/flashplayer.swf\"><param name=\"quality\" value=\"high\"><param name=\"bgcolor\" value=\"#FFF\">');";
$code .= "document.write('<param name=\"menu\" value=\"false\"><param name=wmode value=\"opaque\">');";
$code .= "document.write('<param name=\"FlashVars\" value=\"pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'\">');";
$code .= "document.write('</object>');</script>";
echo $code;
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?