wp pointer教程

	<script type="text/javascript">
			//<![CDATA[
			jQuery(document).ready( function($) {
				$('.mo-panel .tie-tabs.tie-rate').pointer({
					content:		'<?php echo $pointer_content; ?>',
					pointerWidth:	350,
					position:		{
										edge:	'left', /* arrow direction */
										align:	'middle' /* vertical alignment */
									},
					close:			function() {
										$.post( ajaxurl, {
												pointer: 'tie_rate_theme5', /* pointer ID */
												action: 'dismiss-wp-pointer'
										});
									}
				}).pointer('open');
			});
			//]]>
			</script>
Share :