วันพุธที่ 13 มีนาคม พ.ศ. 2556

how to style radio buttons with labels


<style type="text/css">

input[type="radio"]:checked + label { color:#669933 }
input[type=radio] { vertical-align:text-bottom; margin-left:10px; outline:none; }
label { vertical-align:top; }
label:hover { text-decoration:underline; color:#669933 }

</style>

<input type="radio" name="mory" id="monthly" value="Monthly">
<label for="monthly">Monthly</label>
<input type="radio" name="mory" id="year" value="Year" checked="checked">
<label for="year" class="yearshadow">1 Year</label>

วันศุกร์ที่ 8 มีนาคม พ.ศ. 2556

How to use thickbox in wordpress ?


wp_enqueue_script('thickbox');
wp_enqueue_style('thickbox');
wp_enqueue_script('jquery');

// before wp head insert 3 line

wp_head();


Use thickbox in admin page

function mycustomscript_scripts() { if (is_admin()): wp_enqueue_script('jquery'); wp_enqueue_script('thickbox'); endif; } add_action('wp_print_scripts', 'mycustomscript_scripts'); Use thickbox in template file <a href="#TB_inline?height=155&width=300&inlineId=hiddenModalContent" class="thickbox">Show hidden modal content.</a> iframe content <a href="url.htm?keepThis=true&TB_iframe=true&height=300&width=500" title="add a caption to title attribute / or leave blank" class="thickbox">Example 2</a> More informations http://thickbox.net/

My popular music Yang Yoseob - Caffeine this is dance version

ผู้ติดตาม