www.webdeveloper.com
Results 1 to 2 of 2

Thread: how to make this jquery plugin work?

  1. #1
    Join Date
    Oct 2013
    Posts
    2

    how to make this jquery plugin work?

    Hi, I am a student who has just started developing the site.I was trying to make a image gallery using the jquery plugin called Gallerify but it wasn't working.The code is as follows...

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- Created by ysbnet.in business card tool, http://hostedapps.ysbnet.in/businesscard -->
    <html  xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link type="text/css" href="../css/styles.css" rel="stylesheet"/>
    <link rel="stylesheet" href="../css/basic.css" type="text/css"  />
    <link rel="stylesheet" href="../css/galleriffic-2.css" type="text/css" />
    <script type="text/javascript" src="../scripts/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="../scripts/jquery.galleriffic.js"></script>
    <script type="text/javascript" src="../scripts/jquery.opacityrollover.js"></script>
    <!-- We only want the thunbnails to display when javascript is disabled -->
    <script type="text/javascript">
    document.write('<style>.noscript { display: none; }</style>');
    </script>
    <title> Welcome to INARCH9</title>
    <!--h1{margin-bottom:0px;font-size:30px;} -->
    <!--This puts border under h1(border-bottom:1px solid black;)) -->
    <!--This code (padding:0;margin:0;clear:both;) puts space between between Top menu and h1 -->
    </head>
    <body>
    <div id="wrapper">
    <h1><a id="shortcut" href="index.html">INARCH9</a></h1>
    <!-- Top Menu starts -->
    <nav>
    <ul>
     <li><a href="index.html" alt="Page Not Found" >Home</a></li>
        <li><a href="Projects.html" alt="Page Not Found">Projects</a></li>
        <li><a href="Gallery.html" alt="Page Not Found" class="current">Gallery</a></li>
        <li><a href="About.html" alt="Page Not Found">About Us</a></li>
        <li><a href="Contact.html" alt="Page Not Found">Contact Us</a></li>
        </ul>
        </nav>
    <img src="http://ysbnet.in/hostedapps/header/real_estate.png" alt="Not Available"/>
    <!--Content starts here -->
    <div id="page">
    			<div id="container">
    			<h2 align="left"><b>Gallery</b></h2>
    				<!-- Start Advanced Gallery Html Containers -->
    				<div id="gallery" class="content">
    					<div id="controls" class="controls"></div>
    					<div class="slideshow-container">
    						<div id="loading" class="loader"></div>
    						<div id="slideshow" class="slideshow"></div>
    					</div>
    					<div id="caption" class="caption-container"></div>
    				</div>
    				<div id="thumbs" class="navigation">
    					<ul class="thumbs noscript">
    						<li>
    							<a class="thumb" name="leaf" href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015.jpg" title="Title #0">
    								<img src="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_s.jpg" alt="Title #0" />
    							</a>
    							<div class="caption">
    								<div class="download">
    									<a href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_b.jpg">Download Original</a>
    								</div>
    								<div class="image-title">Title #0</div>
    								<div class="image-desc">Description</div>
    							</div>
    						</li>
    					</ul>
    				</div>
    				<div style="clear: both;"></div>
    			</div>
    		</div>
    		<div id="footer">Copyright &copy; 2012 INARCH9. All rights reserved.</div>
     </div>
    		<script type="text/javascript">
    			jQuery(document).ready(function($) {
    				
    				// We only want these styles applied when javascript is enabled
    				$('div.navigation').css({'width' : '300px', 'float' : 'left'});
    				$('div.content').css('display', 'block');
    
    				// Initially set opacity on thumbs and add
    				// additional styling for hover effect on thumbs
    				var onMouseOutOpacity = 0.67;
    				$('#thumbs ul.thumbs li').opacityrollover({
    					mouseOutOpacity:   onMouseOutOpacity,
    					mouseOverOpacity:  1.0,
    					fadeSpeed:         'fast',
    					exemptionSelector: '.selected'
    				});
    				
    				// Initialize Advanced Galleriffic Gallery
    				var gallery = $('#thumbs').galleriffic({
    					delay:                     2500,
    					numThumbs:                 15,
    					preloadAhead:              10,
    					enableTopPager:            true,
    					enableBottomPager:         true,
    					maxPagesToShow:            7,
    					imageContainerSel:         '#slideshow',
    					controlsContainerSel:      '#controls',
    					captionContainerSel:       '#caption',
    					loadingContainerSel:       '#loading',
    					renderSSControls:          true,
    					renderNavControls:         true,
    					playLinkText:              'Play Slideshow',
    					pauseLinkText:             'Pause Slideshow',
    					prevLinkText:              '&lsaquo; Previous Photo',
    					nextLinkText:              'Next Photo &rsaquo;',
    					nextPageLinkText:          'Next &rsaquo;',
    					prevPageLinkText:          '&lsaquo; Prev',
    					enableHistory:             false,
    					autoStart:                 false,
    					syncTransitions:           true,
    					defaultTransitionDuration: 900,
    					onSlideChange:             function(prevIndex, nextIndex) {
    						// 'this' refers to the gallery, which is an extension of $('#thumbs')
    						this.find('ul.thumbs').children()
    							.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
    							.eq(nextIndex).fadeTo('fast', 1.0);
    					},
    					onPageTransitionOut:       function(callback) {
    						this.fadeTo('fast', 0.0, callback);
    					},
    					onPageTransitionIn:        function() {
    						this.fadeTo('fast', 1.0);
    					}
    				});
    			});
    		</script>
    
    </body>
    The css is as follows..

    Code:
    @charset "utf-8";
    
    
    /*---------------------------------------------------------------------------------------------*/
    
    /*index.html starts*/
    nav{
    	background:#151B54;
    	height:2.3em;
    }
    ul,li {
    	
    	margin:0;
    	padding:0;
    	list-style:none;
    	float:left;
    	
    }
    
    ul{
    	background:#151B8D;
    	height:2em;
    	width:100%;
    }
    li a{
    	display:inline-block;
    	line-height:2em;
    	padding:0 3.16em;
    	font:Arial;
    	color:white;
    	text-decoration:none;
    }
    
    li a:hover{
    	background:#151B54;
    	height:2em;
    	padding-left:3.16em;
    	padding-right:3.16em;
    	padding-top:.3em;
    	position:relative;
    	top:-.3em;
    	border-radius:.3em .3em 0 0;
    	
    	
    }
    .current,a:hover.current{
    	background:#6D7B8D;
    	color:#eee;
    	padding-top:.3em;
    	padding-left:3.173em;
    	padding-right:3.173em;
    	position:relative;
    	top:-.3em;
    	border-radius:.3em .3em 0 0;
    	border-bottom:.3em solid #806D7E;
    }
    img{
    	font-size:8px;
        display: block;
    	margin-left:auto;
    	margin-right:auto;
    	max-width:800px;
    }	
    a{text-decoration:none;}
    
    .fluid_container {
    			margin: 0 auto;
    			max-width: 1000px;
    			width: 90%;
    }
    
    /*index.html ends*/
    
    /*gallery.html starts*/
    body {color:#000080;font:normal 16px Georgia,Verdana,Arial,san-serif;background-image:url(../images/bgimage.jpg); 
    		background-color:white;}
    #wrapper{width:800px;text-align:center; border:0px;padding:0;margin: 0 auto;}
    h1{font-weight:bold;font-size:30px;margin-bottom:0px;padding:0;margin:0;clear:both;}
    h2{margin-top:0px;}
    img{font-size:8px;width:796px;margin-bottom:0px;padding:0;margin:0;clear:both;}
    /*img{font-size:8px;width:796px;margin-bottom:0px;padding:0;margin:0;clear:both;align:center;}*/
    #footer {position: relative;
    	border-top:1px solid black;
    	text-align:center;
    	margin-top: 330px; /* negative value of footer height */
    	height: -330px;
    	clear:both;} 
    a{text-decoration:none;}
    h2{border-bottom:1px solid black;}
    #shortcut:visited{color:#000080;}
    /*gallery.html ends*/
    
    
    /*contact.html addition styles*/
    
    #name h3{margin-top:0px;}
    h3{font-weight:bold;}
    a.text{color:#000080;}
    h3, p.text, p.firstLine{
        display: inline;
        vertical-align: top;
        line-height: 28px;
    }
    p.secondLine{margin-left:91px;margin-top:0px;margin-bottom:2px}
    p.thirdLine{margin-left:91px;margin-top:0px;margin-bottom:0px}
    
    
    #images{
    width: 960px;
    height: auto;
    overflow: hidden;
    }
    #images img {
    display: inline;
    margin: 0 10px
    Can somebody please help??

  2. #2
    Join Date
    Sep 2013
    Posts
    221
    Try out with the below link, this example has worked fine for.

    http://tympanus.net/codrops/2010/09/...image-gallery/

    Hope this helps.
    strad solutionswww.stradsolutions.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center

"

"

X vBulletin 4.2.2 Debug Information

  • Page Generation 0.13049 seconds
  • Memory Usage 2,886KB
  • Queries Executed 15 (?)
More Information
Template Usage (34):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (2)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (73):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates