This file contains hidden or 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
var iframe = document.createElement("iframe"); | |
iframe.src = "http://www.planabc.net"; | |
if (iframe.attachEvent){ | |
iframe.attachEvent("onload", function(){ | |
alert("Local iframe is now loaded."); | |
}); | |
} else { | |
iframe.onload = function(){ | |
alert("Local iframe is now loaded."); |
This file contains hidden or 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 clickpost(){ | |
var tracking = 'http://www.demo.com/tracking?type=click&'; | |
var adurl = window.location.href.split("?"); | |
var parameters = adurl[1]; | |
var xmlhttp; | |
if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari | |
xmlhttp = new XMLHttpRequest(); | |
xmlhttp.open('GET', tracking + parameters, true); | |
xmlhttp.send(); |
This file contains hidden or 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
<!-- Mobile meta & links --> | |
<!-- Reference | |
Custom Icon and Image Creation Guidelines: | |
http://developer.apple.com/library/safari/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html | |
Configuring Web Applications: | |
http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/configuringwebapplications/configuringwebapplications.html |
This file contains hidden or 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
#!/bin/sh | |
nohup python ~/goagent/local/proxy.py >/dev/null 2>&1 & |
This file contains hidden or 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
//调整iframe高度 | |
var height = $(document).height() + 'px'; | |
var iframe = parent.document.getElementById('main'); | |
iframe.style.height = height; |
This file contains hidden or 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
a .tips_hover { | |
color:#333; | |
line-height:18px; | |
vertical-align:middle; | |
text-shadow:#ffffff 0 1px 0; | |
text-align: left; | |
padding:7px 14px; | |
width: 300px; | |
position: relative; | |
top: -999px; |
This file contains hidden or 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
ul{ | |
font-size:*0;/*修复各个浏览器对于inline-block存在默认横向间距,除IE8*/ | |
} | |
ul li{ | |
display: inline-block; | |
*zoom:1; | |
*display:inline; | |
font-size: 12px;/*使用正常字号*/ | |
font-family: "宋体"; /*中英混排基线对齐*/ | |
margin-right: -.6em; /* 12px字体时候消除间隔*/ |
This file contains hidden or 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
全局导航框架类型的z-index默认设置为2 | |
z-index:1这层留给兼容IE的父元素使用 |
This file contains hidden or 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
<head> | |
<style> | |
div{ padding: 0 20px; overflow: hidden; zoom :1;} | |
div p{ margin: 10px 0;} | |
</style> | |
</head> | |
<div> | |
<p>第一段</p> | |
<p>第二段</p> | |
<div> |
OlderNewer