showinplaceholder The jquery Plug-in

Similar documents
grabattention The jquery Plug-in

hoverover The jquery Plug-in

Introduction to WEB PROGRAMMING

VTEM SLIDES INSTRUCTION MANUAL COPYRIGHT DISCLAIMER. Instruction Manual FOR INFO, UPDATES, REQUESTS & CONTACT

DNNGo LayerSlider3D. User Manual

jquery Tutorial for Beginners: Nothing But the Goods

Web Development & Design Foundations with HTML5

CSC 337. jquery Rick Mercer

T his article is downloaded from

BOOTSTRAP TOOLTIP PLUGIN

Introduction to HTML & CSS. Instructor: Beck Johnson Week 5

Stamp Builder. Documentation. v1.0.0

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

The Benefits of CSS. Less work: Change look of the whole site with one edit

In-ADS User Guide. Estonian Land Board Versioon 1.9.1

Manual Html A Href Javascript Window Open In New

JQUERYUI - TOOLTIP. content This option represents content of a tooltip. By default its value is function returning the title attribute.

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3


Introduction to Cascading Style Sheet (CSS)

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

CSS Futures. Web Development

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)

SEEM4570 System Design and Implementation Lecture 04 jquery

JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

CUSTOMER PORTAL. Custom HTML splashpage Guide

Written by Administrator Sunday, 05 October :58 - Last Updated Thursday, 30 October :36

New frontier of responsive & device-friendly web sites

Parashar Technologies HTML Lecture Notes-4

Create a cool image gallery using CSS visibility and positioning property

WEB DESIGNING CURRICULUM

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 4 Test Bank

Chapter 7 BMIS335 Web Design & Development

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

AGENDA :: MULTIMEDIA TOOLS :: CLASS NOTES

introduction to XHTML

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

The Structure of the Web. Jim and Matthew

WordPress How to Create a Simple Image Slider with the New RoyalSlider

NAVIGATION INSTRUCTIONS

Introduction to using HTML to design webpages

BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from

CIT BY: HEIDI SPACKMAN

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) What is JavaScript?

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

Modules Documentation ADMAN. Phaistos Networks

HTML5. clicktag implementation

PIC 40A. Midterm 1 Review

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1


Programmazione Web a.a. 2017/2018 HTML5

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

CSS: Layout, Floats, and More

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Creating and Building Websites

Prepared: 28 th February 2006 Program Version: swmenupro4.2+ for Joomla/Mambo

classjs Documentation

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

Design patterns and Animation with jquery. with Paul Bakaus

SCRIPT.ACULO.US - DRAG & DROP

Stickers! Introduction. Step 1: Colourful coding sticker

Programming Lab 1 (JS Hwk 3) Due Thursday, April 28

UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS. CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat

HTML. Based mostly on

Webinse Image Gallery

Designing the Home Page and Creating Additional Pages

Assignments (4) Assessment as per Schedule (2)

Uniform Resource Locators (URL)

READSPEAKER ENTERPRISE HIGHLIGHTING 2.5

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

HOW TO Build an HTML5 Pushdown Banner

jquery Speedo Popup Product Documentation Version 2.1

HTML HTML/XHTML HTML / XHTML HTML HTML: XHTML: (extensible HTML) Loose syntax Few syntactic rules: not enforced by HTML processors.

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

A designers guide to creating & editing templates in EzPz

Exercise 1: Understand the CSS box model

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)

WEB DESIGNING COURSE SYLLABUS

Markup Language. Made up of elements Elements create a document tree

Syncfusion Report Platform. Version - v Release Date - March 22, 2017

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? editor editor Q.2: What do you understand by a web browser?

Media Stylesheets and Navigation with CSS goodness. Webpage Design

Design Document V2 ThingLink Startup

1 Creating a simple HTML page

HTML & CSS. Rupayan Neogy

Getting Started with Eric Meyer's CSS Sculptor 1.0

HTML5 and Mobile: New Markup & Styles for the Mobile Web. Jason Clark Head of Digital Access & Web Services Montana State University Libraries

Realistic 3D FlipBook Experience. for Magazines, Photographers, Portfolios, Brochures, Catalogs, Manuals, Publishing and more...

HTML5, CSS3, JQUERY SYLLABUS

Basics of Web. First published on 3 July 2012 This is the 7 h Revised edition

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

Even Faster Web Sites

Chapter 3 Style Sheets: CSS

Website Development with HTML5, CSS and Bootstrap

Transcription:

showinplaceholder The jquery Plug-in for showing an image to place holder / target box About Plug-in Show in Place Holder plug-in is developed to show an image to place holder / target box. Plug-in can be used to showcase image portfolios, product images, software screenshots or any dam thing that you want to display to place holder / target box by clicking / hovering image thumbs or anchor links. Plug-in provides facility to apply more than 20 animation effects to show image to place holder / target box. You can also add description text of an image. Technology Used This plug-in has developed using jquery Framework. jquery plug-in design patterns is used. Compatibility Compatible Browsers: IE7, IE8, IE9, Firefox, Chrome, Opera and Safari. Software Version: jquery 1.5 + How to setup Plug-in Insert the jquery elements in your document's <head> section, e.g.: Add jquery library to HTML page Insert the Plug-in CSS in your document's <style> section <link href="css/show-in-ph-style.css" rel="stylesheet" type="text/css" /> Insert the Plug-in JS in your document's <script> section <script src="js/jquery.showinplaceholder.min.js" type="text/javascript" language="javascript"></script> Define plug-in options for showinplaceholder. e.g. content, eventtype, placeholderid, fittoplaceholder, imgtransition: 'fade', aniduration: 500

$.fn.showinplaceholder.defaults = { content: '', eventtype: 'hover', // hover/click placeholderid: 'placeholder-box', // Place holder id fittoplaceholder: true, // Fit image in placeholder box imgtransition: 'fade', // Image transition select any from 20 aniduration: 500 // Animation duration }; Plug-in Customization Options Property Name Property Type What will it do? content String Set image content. User can also set content in markup give ID into data-content-id="democontent". eventtype String User can set any of two event type hover or click placeholderid String Placeholder id is placeholder/target box id where large image needs to show on thumb/anchor link over fittoplaceholder Boolean With this option, if large image dimension is larger than placeholder/target box dimension then image will be resized based on aspect ration imgtransition String User can select image transition from 20 different transitions like fade, flyleft, flyright, flytop, flybottom, flylefttop, flyrighttop, flyleftbottom, flyrightbottom, evolvefromlefttop, evolvefromrighttop, evolvefromcenter, evolvefromleftbottom, evolvefromrightbottom, evolvefromcentertop, evolvefromcenterleft, evolvefromcenterright, evolvefromcenterbottom, evolvefromcenterheight, evolvefromcenterwidth aniduration Integer [milliseconds] Animation duration for hiding hover content

Plug-in Default Values Property Name Property Default Possible Options Value content '' Default value for content will be null eventtype hover Default event is hover placeholderid None Placeholder/target box id needs to pass. This option is must to supply by user in order to show full image to targeted box fittoplaceholder true If image dimension is larger than placeholder/target box dimensions, image will be resized imgtransition fade Default image transition effect will be fade. User can chose from 20 different transition effects aniduration 500 Default animation duration is 500 millisecond Plug-in Development Considerations Make sure you have passed correct large image path When you pass large image path in data-img-src. Make sure that image present on given path. Can I use plug-in multiple times on the same page? Can I apply different styling to different sections on the same page? Yes user can use plug-in multiple times on the page. User can also apply different styling to different sections on the same page. Can I use plug-in in Wordpress? Though plug-in is not developed as a Wordpress installable plug-in but you can initialize plug-in in JS which is added on WP page.

DOM Structure Of Plug-in DOM of plug-in thumbs. DOM structure will be. <img src="img/demo2/thumbs/img1.jpg" class="demo2" data-imgsrc="img/demo2/img1.jpg" data-content="animation Effect applied on me is : fade" title="fade"> <a href="#" class="demo3" data-img-src="img/demo2/img22.jpg" data-contentid="imgcontent1" title="click event on anchor link">click Me</a> Class/id: Is used to initialize the plug-in Data-img-src: User needs to define large image path in data-img-src Data-content: Caption/description of image will go with data-content Data-content-id: It does the same functionality as data-content. If you need more content with HTML markup, you can separate out content by giving content id to data-content-id and create DIV / P with id supplied in data-content-id plug-in will read content from that block and display in content section of an image. DOM of placeholder / target box. When render DOM structure will be. <div id="ph-targetboxid" class="ph-box"> <div class="ph-img-box" style="position: absolute; height: 238px; opacity: 1;"> <img src="img/demo2/img1.jpg" class="ph-img" style="width: 382px; height: 238px;"> <div class="ph-img-content" style="position: absolute; z-index: 2;">Content Goes Here</div> </div> </div> CSS classes to apply desired styling. ph-box: Width & Height of place holder / target box ph-img-box: Image box will be create dynamically by plug-in and it will be assign width & height as phbox ph-img: This class is added to image and is used to calculate image width & height ph-img-content: This class is used to apply image label styling

Features & Important Notes Features Show in place holder plug-in can be defined on image thumb, anchor link or any HTML tag You can define content text either in "content" option of plug-in initialization or define data-content='#contentid' and define content inside <div id="contentid">content Goes Here</div> 20 different animation styles 4 styles for show content e.g. fly, curtain, fade, tocenter/fromcenter Note: To make a faster load you should resize image dimensions as per place holder / target box