加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

sIFR---将要用flash显示的元素转换为flash

发布时间:2020-12-15 18:34:42 所属栏目:百科 来源:网络整理
导读:1,提供一下sIFR的下载地址 http://www.mikeindustries.com/blog/sifr/ 这里链接的最下面,有下载链接:http://www.mikeindustries.com/blog/files/sifr/2.0/sIFR-2.0.7.zip 2,贴一下我的示例代码 ?php//load the URL factory library//require_once 'inclu

1,提供一下sIFR的下载地址

http://www.mikeindustries.com/blog/sifr/

这里链接的最下面,有下载链接:http://www.mikeindustries.com/blog/files/sifr/2.0/sIFR-2.0.7.zip

2,贴一下我的示例代码

<?php
//load the URL factory library
//require_once 'include/url_factory.inc.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
	<head>
		<title>The SEO Egghead Shop</title>
		<script type="text/javascript" language="javascript" src="sifr/sifr.js"></script>
		<link type="text/css" rel="stylesheet" href="sifr/sIFR-screen.css" media="screen" />
		<link type="text/css" rel="stylesheet" href="sifr/sIFR-print.css" media="print" />
		<!-- sIFR replacement code -->
		<script type="text/javascript" language="javascript">
			//continue only if the sIFR code has been loaded
			if(typeof sIFR == "function"){
				//replace the <h1> text
				sIFR.replaceElement(named({sSelector:"body h1",sFlashSrc:"./sifr/tradegothic.swf"}))
			}
		</script>
	</head>
	<body>
		<h1>Products on Promotion at SEO Egghead Shop</h1>
		<ul>
			<li>
				<a href="<?php //echo make_category_product_url("Carpenter's Tools",12,"Belt Sander",45);?>">
					Carpenter's Tools: Belt Sander
				</a>
			</li>
			<li>
				<a href="<?php //echo make_category_product_url("SEO Toolbox",6,"Link Juice",31);?>">
					SEO Toolbox: Link Juice
				</a>
			</li>
			<li>
				<a href="<?php //echo make_category_product_url("Carpenter's Tools",45);?>">
					Carpenter's Tools: Belt Sander
				</a>
			</li>
			<li>
				<a href="/popup.php">
					POPUP
				</a>
			</li>
		</ul>
	</body>
</html>

只需留意html代码的部分,

效果贴图:

未使用之前:

使用之后:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读