无法使用这个文本化效果-得到一个空白屏幕。我从这个网站上复制了它:http://vimeo.com/39150670。并尝试插入到visual studio和记事本中,但仍然没有成功!
<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="http://kiro.me/textualizer/javascript/textualizer.min.js"></script>
<style type="text/css">
#txtlzr { font-size: 150px; width: 960px; height:250px; }
</style>
</head>
<body>
<div id="txtlzr"> </div> </body>
<script>
$(function() {
var list = [ 'Text 1','Hello World','Screencasts'];
var options = {
duration: 1000, // Time (ms) each blurb will remain on screen
rearrangeDuration: 1000, // Time (ms) a character takes to reach its position
effect: 'random', // Animation effect the characters use to appear
//centered: true // Centers the text relative to its container
}
var txt = $('#txtlzr');
txt.textualizer(list, options); // textualize it!
txt.textualizer('start'); // start
});
</script>
</html>发布于 2012-10-21 20:26:35
加载插件的链接不起作用,因此请使用更新后的链接来替换您的以下行:
<script src="http://kiro.me/textualizer/javascript/textualizer.min.js"></script>对于这一条:
<script src="http://raw.github.com/krisk/textualizer/master/textualizer.min.js"></script>请参见working
https://stackoverflow.com/questions/12997629
复制相似问题