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

原创
2012/08/03 15:03
阅读数 117

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",12,"Belt Sander",45);?>">
					Carpenter's Tools: Belt Sander
				</a>
			</li>
			<li>
				<a href="/popup.php">
					POPUP
				</a>
			</li>
		</ul>
	</body>
</html>

只需留意html代码的部分,

效果贴图:

未使用之前:

使用之后:

 

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部