zoukankan      html  css  js  c++  java
  • artDialog

     

    顺便贴下那位朋友的博客地址:http://imshare.iteye.com/blog/823859 

    官网地址:http://www.planeart.cn/demo/artDialog/index.html 

    我只是说下大致怎么使用,里面有很多用法和效果,请参考下官方的api文档 

    先说下目录结构吧 
    我的目录结构是: 
    dialog 
          ---artDialog.js 
          ---test.html 
          skin 
               ---default.css 
               ---green.css 
               --- ...... 

    然后,在head里引入js文件 
    Javascript代码  收藏代码
    1. <script src="artDialog.js?skin=default"></script>    
    2. //后面的是指使用default皮肤,当前目录下的skin目录下面  


    Javascript代码  收藏代码
    1. function test(){  
    2.     art.dialog({  
    3.     content: 'Test artDialog'  
    4. });  
    5. }  


    Html代码  收藏代码
    1. <href="javascript:" onclick="test();">测试</a>  


    全文: 
    Html代码  收藏代码
    1. <html>  
    2. <head>  
    3. <title>test artdialog</title>  
    4. <script src="artDialog.js?skin=default"></script>  
    5. <script type="text/javascript">  
    6. function test(){  
    7.    art.dialog({  
    8.     content: 'Test artDialog'  
    9. });  
    10. }  
    11.   </script>  
    12. </head>  
    13. <body>  
    14. <href="javascript:" onclick="test();">测试</a>  
    15. </body>  
    16. </html>  

    大家试下效果吧。 
     
  • 相关阅读:
    参数_门店
    实现百分比和百分比的累加以及A、B、C类别的标识
    参数范围的选择
    栏目数据合并表达式
    父子维度转化为组
    从参数中获得特定字符串
    多参与多轴
    数据库链接字符串大集合
    闰年2月29天
    sum函数按照类别的值进行取值
  • 原文地址:https://www.cnblogs.com/changzheng/p/3838503.html
Copyright © 2011-2022 走看看