Code Monkey home page Code Monkey logo

slidenote's Introduction

SlideNote
A jQuery plugin for flexible, customizable sliding notifications.

HOW TO USE

1.	Include SlideNote in the header of your page. Make sure it is included after jQuery
	
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
	<script src="jquery.slidenote.js" type="text/javascript"></script>
	
2.	Apply the plugin to a single or set of elements.

	$('#myNote').slideNote();	// single element
	$('.notes').slideNote();	// set of elements

3. 	Pass options to the slideNote() function to modify the behavior:

	$('#myNote').slideNote({	
		where: 640,
		corner: 'left',
		url: 'ajax.html',
		container: 'note',
		closeImage: '/images/close.png'
	});
	
OPTIONS

where
	specified how far down the user must scroll before the notification
	slides into view. if 0, the notification will display as soon as
	the page loads.
		
corner			
	controls from which side of the screen the notification will slide in

URL					
	tells SlideNote from where to pull the data to use as the content of
	the notification. if no container is specified, the entire page is used
		
container		
	to be used in conjunction with 'URL.' when specified, only pulls
	the element having the specified ID from the specified URL.
					
closeImage	
	displays the image at the specified URL. When clicked, it will slide the 
	note out of view. The note will not display until the next time the user 
	scrolls passed the <strong>where</strong> value.
	
displayCount
	the number of times to display the notification. will no longer display
	after the specified value has been reached.

onSlideIn
	a callback function to fire once the notification as slid into view
	
onSlideOut
	a callback function to fire once the notification as slid into view
	
CONTACT ME

Website: http://tommcfarlin.com
Email:	 [email protected]

slidenote's People

Contributors

tommcfarlin avatar

Watchers

Dinesh Kesarwani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.