2011-06-05 40 views
1

我不明白为什么我的Cufón不工作,所有的.js文件加载罚款:的Cufón不显示

<!DOCTYPE html> 
<html lang="en"> 
<head> 

<title>Company Name</title> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<link rel="stylesheet" type="text/css" href="includes/css/style.css?v=2" media="all"> 
<!-- Grab Google CDN's jQuery. fall back to local if necessary --> 
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script> 
    <script>!window.jQuery && document.write(unescape('%3Cscript src="includes/js/jquery-1.6.min.js"%3E%3C/script%3E'))</script> 
<script src="includes/js/cufon.js"></script> 
<script src="includes/js/Springsteel_Lig_300.font.js"></script> 
<script> 
     window.addEvent('domready',function() { 
        Cufon.replace('header h1'); 
       }); 
</script> 
<body> 

<div id="container"> 

<header> 
       <h1>Company</h1> 
       <div id="logo"><a href="http://Company.co.nz/">Home</a></div> 

回答

1

尝试与改变:

<script> 
    window.addEvent('domready',function() { 
     Cufon.replace('header h1'); 
    }); 
</script> 

只是:

<script type="text/javascript"> 
    Cufon.replace('header h1'); 
</script> 

它适用于我这种变化后(使用Vegur.font.js字体,在Opera 11和谷歌Chrome 11上测试)。

编辑:

工程以及与Springsteel_Lig_300.font.js字体。我刚刚下载了Springsteel Light字体(springsteel-lig.otf),并使用that site以js格式生成。

enter image description here