發表文章

[JQuery] hover(over, out )

Description: The   hover( over, out )   method simulates hovering (moving the mouse on, and off, an object). This is a custom method which provides an 'in' to a frequent task. Syntax: Here is the simple syntax to use this method: selector .hover( over, out ) Parameters: Here is the description of all the parameters used by this method: over:   The callback function to fire when the mouse is moved over a matched element. out:   The callback function to fire when the mouse is moved off of a matched element. Example: Following is a simple example a simple showing the usage of this method: <html> <head> <title>the title</title> <script type="text/javascript" src="/jquery/jquery-1.3.2.min.js"></script> <script type="text/javascript" language="javascript"> $(document).ready(function() { $('div').hover( function () { $(this)....

Mailto Syntax

This tutorial serves two purposes. It teaches you   how to create an email   link, and it also explains all of the properties of the mailto handle. If you want to use any of these options together with a munged and protected link with our   email address encoder   (to avoid spam), enter   the code   highlighted in light yellow   into the Advanced Options box. Note that converting the advanced options into ASCII would cause the link to fail to   work . Therefore we recommend not using the   cc   or   bcc   options (explained below) and instead enter all   email addresses   into the   email address   box separated by commas.. Simple email link: <a href="mailto:your@email.address">Contact Us</a>   Working example:   Contact Us This is the simplest link possible. Just like a regular URL link to any site,   this link   starts with the start tag   <a href=""> , f...

[五月天諾亞方舟Mayday NOWHERE 3D] 電影首支官方預告

圖片
當末日人人自危 五月天在我身邊

Display Related Posts in WordPress without a Plugin

Display Related Posts in WordPress without a Plugin Paste the following code in   single.php   where you want to display related posts view source print ? 01 <?php 02 //for use in the loop, list 5 post titles related to first tag on current post 03 $tags   = wp_get_post_tags( $post ->ID); 04 if   ( $tags ) { 05 echo   'Related Posts' ; 06 $first_tag   =   $tags [0]->term_id; 07 $args = array ( 08 'tag__in'   =>   array ( $first_tag ), 09 'post__not_in'   =>   array ( $post ->ID), 10 'posts_per_page' =>5, 11 'caller_get_posts' =>1 12 ); 13 $my_query   =   new   WP_Query( $args ); 14 if (   $my_query ->have_posts() ) { 15 while   ( $my_query ->have_posts()) :   $my_query ->the_post(); ?> 16 <a href= "<?php the_permalink() ?>"   rel= "bookmark" title= "Permanent Link to ...