HTML part: <ul id="resizer"> <li id="f_text"> font size: </ li> <li id="f_s"> <a href="javascript:void(0)"> small </ a> </ li> <li id="f_m"> <a href="javascript:void(0)"> in </ a> </ li> <li id="f_l"> <a href="javascript:void(0)"> big </ a> </ li> </ ul> Then do not forget to introduce jQuery library, this is not to say, just a reminder, [...]
First, the presentation of the HTML part (with its own specific css style defined), each message with <span> </ span> enclose (of course you can use <li> </ li>, change it to html and jQuery code) <div class="test1"> <! – Style = "display: none ;"—- style.css -> <span> *****</ span> <span style="display:none;"> *****</ span> <span [...]
Target: Click on the entry titles from homepage, then load the content without AJAX refreshing, and display the SlideDown effect with jQuery. HTML Structure: <div class="post-home"> <div class="post-title"><h2>title</h2></div> <div class="post-content"><p>content</p> </div> In functions.php, add: function ajax_post(){ if( isset($_GET[’action’])&& $_GET[’action’] == ‘ajax_post’){ $ariticle_id=$_GET[’id’]; query_posts("p=$ariticle_id");the_post();the_content(); die(); }else{ return; } } add_action(’init’, ‘ajax_post’); Then we can display the [...]
We see much synchronization information from Twitter, Facebook and so on have been added onto SIdebar, also visitors welcome is what many bloggers want to express. Basically, there are 3 types of visitors welcome, they are * Hello, welcome back. (This is used for those previous reviewers when they turn back) * Welcome, dear friend. [...]
First we all know that Gravatar (Globally Recognized Avatar) is a service created by Tom Preston-Werner that provides globally-unique avatars. We BPOVIA designers use code below to load Gravatar from gravatar.com, feel free to pick up the one you like. PHP code < ?php if ( !empty($your_email) ) { $md5 = md5($your_email); $default = urlencode( [...]
Did you ever found that there were constantly spam comments on your websites, and obviously they were sent by robots? Although Akismet plug-in on your sites can prevent lots of spams, there are still so many spams for it to deal with them all. Generally, thousands of spams show up on a good blog each [...]
Recent Comments