File: index.html

Recommend this page to a friend!
  Classes of Jin Nguyen   Divbox   index.html   Download  
File: index.html
Role: Example script
Content type: text/plain
Description: Documentation
Class: Divbox
jQuery plugin to open modal lightbox in an element
Author: By
Last change:
Date: 10 years ago
Size: 5,885 bytes


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ""> <html xmlns=""> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Assiduous by Free CSS Templates</title> <meta name="keywords" content="" /> <meta name="description" content="" /> <link href="css/style.css" rel="stylesheet" type="text/css" media="screen" /> <link href="css/divbox.css" rel="stylesheet" type="text/css" media="screen" /> <link rel="stylesheet" type="text/css" href="css/skin2.css" /> <script src="jquery-1.3.2.min.js" type="text/javascript"></script> <script src="divbox.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $('a.lightbox').divbox({caption: false}); $('a.lightbox2').divbox({caption: false,skin: 'divbox_facebook', width: 100, height: 100}); $('a.iframe').divbox({ width: 200, height: 200 , caption: false}); $('a.ajax').divbox({ type: 'ajax', width: 200, height: 200 , caption: false,api:{ afterLoad: function(o){ $(o).find('a.close').click(function(){ o.closed(); return false; }); $(o).find('a.resize').click(function(){ o.resize(200,50); return false; }); } }}); }); </script> </head> <body> <div id="header-wrapper"> <div id="header"> <div id="menu"> <ul> <li><a href="./" class="first">Home</a></li> <li><a href="./contact">Contact</a></li> </ul> </div> <!-- end #menu --> <div id="search"> <form method="get" action=""> <fieldset> <input type="text" name="s" id="search-text" size="15" value="Google Search" onfocus="if(this.value==this.defaultValue) this.value = '';" onblur="if(this.value=='') this.value = this.defaultValue" /> <input type="submit" id="search-submit" value="GO" /> </fieldset> </form> </div> <!-- end #search --> </div> </div> <!-- end #header --> <!-- end #header-wrapper --> <div id="logo"> <h1><a href="#"></a></h1> <p><em>free jquery plugins </em></p> </div> <hr /> <!-- end #logo --> <div id="page"> <div id="page-bgtop"> <div id="content"> <div class="post"> <h2 class="title"><a href="divbox.html">jDivBox </a></h2> <!-- <OBJECT id="VIDEO" width="320" height="240" style="position:absolute; left:0;top:0;" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"> <PARAM NAME="URL" VALUE="photos/media.wmv"> <PARAM NAME="SendPlayStateChangeEvents" VALUE="True"> <PARAM NAME="AutoStart" VALUE="True"> <PARAM name="uiMode" value="none"> <PARAM name="PlayCount" value="9999"> </OBJECT> --><script> function mediaStop(){ var obj = document.getElementById("VIDEO"); obj.controls.stop(); } </script> <a href="photos/image1.jpg" class="lightbox"><img src="photos/thumb_image1.jpg" /></a> <div> <h2>Control</h2> <a href="#" onclick="mediaStop();">Stop</a> </div> <div class="entry"> <p><strong>jDivBox</strong> plugin is simple, easy style format, no need extra markup and is used to overlay images on the current page through the power and flexibility of jQuery´s selector. <strong>jDivBox</strong> is a plugin for jQuery. It was inspired in Multibox by <a href="" target="_blank"></a>.</p> <p id="window_media" style="width: 50px; height: 50px; overflow: hidden;" > </p> <p> <a href="photos/image1.jpg" class="lightbox"><img src="photos/thumb_image1.jpg" /></a> <a href="photos/image2.jpg" class="lightbox2"><img src="photos/thumb_image2.jpg" /></a> <a href="photos/image3.jpg" class="lightbox"><img src="photos/thumb_image3.jpg" /></a> <a href="photos/image4.jpg" class="lightbox"><img src="photos/thumb_image4.jpg" /></a> <a href="photos/image5.jpg" class="lightbox"><img src="photos/thumb_image5.jpg" /></a><br /><br /> <a href="photos/media.wmv" class="lightbox">mp4 example</a><br /> <a href="photos/" class="lightbox">mov example</a><br /> <a href="ajax.html" class="ajax">After divbox loaded</a> <a href="ajax2.html" onclick="return $.divbox('photos/image1.jpg');">Call by onclick event</a> <br /> <a href="" class="lightbox">Youtube video</a><br /> <a href="" class="lightbox">Vimeo video</a> FLV file | SWF file | MP3 file </p> <p><a href="divbox.html">View more</a> &raquo;</p> </div> </div> <div class="post"> <h2 class="title"><a href="emotions.html"> jEmotions</a></h2> <div class="entry"> <p>jEmotions is a simple jQuery plugins to on/off the emotions on your sites. </p> </div> </div> </div> <!-- end #content --> <div id="sidebar"> <ul> <li> <p><script type="text/javascript"><!-- google_ad_client = "pub-1823237824396673"; /* 160x600, created 6/11/10 */ google_ad_slot = "1843046949"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src=""> </script> </p> </li> <li> <h2>jDivBox history</h2> <ul> <li><a href="#">2010-06-11: Launch jDivBox</a></li> </ul> </li> <li> <h2>jEmotion</h2> <ul> <li><a href="#">2010-04-12: Launch jEmotions</a></li> </ul> </li> </ul> </div> <!-- end #sidebar --> <div style="clear: both;">&nbsp;</div> </div> <!-- end #page --> <div id="footer"> <p>Copyright (c) 2008 All rights reserved. Design by <a href="">Free CSS Templates</a>.</p> </div> <!-- end #footer --> </div> </body> </html>