This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('click','a',function(e){ | |
var _this = $(e.target); | |
if(_this.attr('href') != undefined && $(_this).attr('href')!='javascript:void(0);'){ | |
try{ | |
window.external.MyInvoke(); | |
} | |
catch(e){ | |
} | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$guideWord=get_post_meta($post->ID, "guide_word_value", $single = true); | |
$buttonUrl=get_post_meta($post->ID, "custom_button_url_value", $single = true); | |
?> | |
<?php if (!empty ($guideWord)) {echo $guideWord ;} else {echo "If you like it, please rate us" ;} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>...</title> | |
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> | |
</head> | |
</html> | |
<a href="signin.php" rel="nofollow">sign in</a> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ($username == 'sally'): ?> | |
<h3>Hi Sally</h3> | |
<?php elseif ($username == 'joe'): ?> | |
<h3>Hi Joe</h3> | |
<?php else: ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div it="gotop"> </div> | |
<script> | |
backTop = function (btnId){ | |
var btn = document.getElementById(btnId); | |
var d = document.documentElement; | |
var b = document.body; | |
window.onscroll = btnDisplay; | |
btn.onclick = function (){ | |
btn.style.display = "none"; | |
window.onscroll = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<video id="video" controls="" preload="none" poster="http://media.w3.org/2010/05/sintel/poster.png"> | |
<source id="mp4" src="http://media.w3.org/2010/05/sintel/trailer.mp4" type="video/mp4"> | |
<source id="webm" src="http://media.w3.org/2010/05/sintel/trailer.webm" type="video/webm"> | |
<source id="ogv" src="http://media.w3.org/2010/05/sintel/trailer.ogv" type="video/ogg"> | |
<p>Your user agent does not support the HTML5 Video element.</p> | |
</video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function httpGet(theUrl) | |
{ | |
var xmlHttp = null; | |
xmlHttp = new XMLHttpRequest(); | |
xmlHttp.open( "GET", theUrl, false ); | |
xmlHttp.send( null ); | |
return xmlHttp.responseText; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
theParent = document.getElementById("theParent"); | |
theKid = document.createElement("div"); | |
theKid.innerHTML = 'Are we there yet?'; | |
// append theKid to the end of theParent | |
theParent.appendChild(theKid); | |
// prepend theKid to the beginning of theParent | |
theParent.insertBefore(theKid, theParent.firstChild); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
在线转换 http://dopiaza.org/tools/datauri/index.php | |
比较转换后字符大小 http://bytesizematters.com/ | |
*/ | |
<style> | |
.dot { | |
background-image: url(data:image/gif;base64,R0lGODlhBAABAIABAMLBwfLx8SH5BAEAAAEALAAAAAAEAAEAAAICRF4AOw==); | |
*background-image: url(http://www.zhangxinxu.com/wordpress/wp-content/themes/default/images/zxx_dotted.gif); // IE6~IE7 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.intro{ | |
display: block; | |
height: 26px; | |
line-height: 26px; | |
width: 300px; | |
overflow: hidden; | |
position: relative; | |
} |