2014-05-21 105 views
1
在一个空的HTML页面

,我尝试显示横幅,包括我的应用程序应用横幅广告的Android(smartbanner.js)

我用这个作为教程链接: http://www.dunnsolutions.com/content/application-development-blog/-/blogs/smart-app-banners-for-ios-and-android

目前,我只是试图让它在本地工作,在一个空的页面。这是我的页面:

<html> 
    <head> 
    <title>Hulu Plus</title> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
    <meta name="author" content="Hulu LLC"> 
    <meta name="google-play-app" content="app-id=MyAppIdIsHere"> 
    <link rel="stylesheet" href="jquery.smartbanner.css" type="text/css" media="screen"> 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> 
    <script src="jquery.smartbanner.js"></script> 
    <script type="text/javascript"> 
     $(function() { 
     $.smartbanner({ 
      title: 'Audience Opinion', 
      author: 'Dunn Solutions Group' 
     }); 
     }) 
    </script> 
    </head> 
    <body> 
    </body> 
</html> 

我的html页面和js/css文件位于同一个文件夹中。路径没有问题。

有谁知道为什么这段代码不起作用? 在此先感谢!

+0

居然会发生什么:

$(function() { $.smartbanner({ daysHidden: 0, daysReminder: 0, title:'Hulu', force:'windows' }) }) 

所有其他选项可以在GitHub的网页上找到?您是否在浏览器控制台中查看错误? – Archer

+0

是的,这是没有错误的 – Slrg

+1

你没有给我们提供任何信息。 “有谁知道为什么这个代码不起作用”并没有给我们什么。除非你解释,否则我们无法帮助你。 – Archer

回答