7. 修改template.dwt, 另存为template002.dwt可用于其它风格的页面。
===================================================================================
【进阶教程】使网页交互,加入java script:
【准备工作】到jQuery.com, Dojotoolkit.org, Prototypejs.org下载js库文件
放入js/library文件夹。
【目标】 建立slider动画,实现图片淡入淡出切换,一旁淡入说明文字。
1.首先我们要到网上下载支持slider的.js 和 .css的源文件。
>>goole.com -> search "free slider js and css download"
>>我们可以找到很多资源。比如wowslider.com
>>下载了一个叫做Nivo Slider的资源,看起来还不错.
2. 将他们放到../js/Nivo Slider文件夹下。
在html页中添加如下代码,for the slider Plug In.
<script type="text/javascript" src="Insert path to jQuery Library Here"></script>
<script type="text/javascript" src="Insert path to jQuery Slider Plug In Here"></script>
3. Add the link to the slider CSS file (make sure media is set to "screen")
<link href="Insert Path the Slider CSS file" rel="stylesheet" type="text/css" media="screen">
--------------------实际上可以参考如下代码------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <html lang="en"> <head> <title>Nivo Slider Demo</title> <link rel="stylesheet" href="../themes/default/default.css" type="text/css" media="screen" /> <link rel="stylesheet" href="../themes/light/light.css" type="text/css" media="screen" /> <link rel="stylesheet" href="../themes/dark/dark.css" type="text/css" media="screen" /> <link rel="stylesheet" href="../themes/bar/bar.css" type="text/css" media="screen" /> <link rel="stylesheet" href="../nivo-slider.css" type="text/css" media="screen" /> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> </head> <body> <div id="wrapper"> <a href="http://dev7studios.com" id="dev7link" title="Go to dev7studios">dev7studios</a> <div class="slider-wrapper theme-default"> <div id="slider" class="nivoSlider"> <img src="images/toystory.jpg" data-thumb="images/toystory.jpg" alt="" /> <a href="http://dev7studios.com"><img src="images/up.jpg" data-thumb="images/up.jpg" alt="" title="This is an example of a caption" /></a> <img src="images/walle.jpg" data-thumb="images/walle.jpg" alt="" data-transition="slideInLeft" /> <img src="images/nemo.jpg" data-thumb="images/nemo.jpg" alt="" title="#htmlcaption" /> </div> <div id="htmlcaption" class="nivo-html-caption"> <strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>. </div> </div> </div> <script type="text/javascript" src="scripts/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="../jquery.nivo.slider.js"></script> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> </body> </html>--------------------参考如上代码示例-----------------------
下载请见:http://www.serie3.info/s3slider/
改良版:http://pan.baidu.com/s/1mT2GK
==================================================================================================================================
Feature Content Slider效果的添加:
源文件和使用方法,参考:http://webdeveloperplus.com/jquery/featured-content-slider-using-jquery-ui/
===================================================================================================================================
进阶教程:Set up a [Lightbox image galary]
Image galary的一个集贴在这里:http://webdeveloperplus.com/jquery/21-brilliant-jquery-image-galleryslideshow-plugins/
我们要用Lightbox Galary:
介绍网页:http://leandrovieira.com/projects/jquery/lightbox/
作者主页:http://lokeshdhakar.com/projects/lightbox2/
===================================================================================
有个网站的资源很多,主流的特效都可以从这里找到:http://webdeveloperplus.com/
很不错,值得收藏。
==================================================================================================================================
加入Modal Popup jQuery Javascript 效果:
popup名称:reveal popup
http://zurb.com/playground/reveal-modal-plugin
此效果实现的是,点击“查看详情”,淡入详情介绍小窗口。
===============================================================================