【转载】友情链接上下滚动JS实现

太幸运了,一搜就找到了。

代码如下:

<div id=”zfw_gg” style=”overflow: hidden; width: 185px; height: 300px”>
<div id=”zfw_gg1″>
<table class=”normal” height=”300″ cellspacing=”0″ cellpadding=”0″ width=”185″ align=”center” border=”0″>
<tbody>
<tr>
<td>
</—–你原来的友情链接内容——/>
</td>
</tr>
</tbody>
</table>
</div>
<div id=”zfw_gg2″> </div>
</div>
<script type=”text/javascript”>
var zfw_speed=45
zfw_gg2.innerHTML=zfw_gg1.innerHTML
function zfw_Marquee()
{
  if(zfw_gg2.offsetTop - zfw_gg.scrollTop <= 0)
    zfw_gg.scrollTop -= zfw_gg1.offsetHeight
  else{
    zfw_gg.scrollTop++
  }
}
var zfw_MyMar=setInterval(zfw_Marquee,zfw_speed)
zfw_gg.onmouseover=function() {clearInterval(zfw_MyMar)}
zfw_gg.onmouseout=function() {zfw_MyMar=setInterval(zfw_Marquee,zfw_speed)}
</script>

沈阳进销存软件

市场经济发展逐渐成熟,促使竞争越来越激烈,每个竞争者都面临着生存与发展的严峻考验,落后的经营模式,从根本上适应不了当前激烈竞争的市场需求,尤为显示了改变现状的重要性、必要性,这也是经济发展的客观性。要在人、财、物这些关系生产与发展的关键环节上,快速提升自身的综合竞争实力及适应大环境,就必须以最大限度发挥出人、财、物的能量及提高竞争力。现给大家推介一款经市场培育、验证的实用型经典实效的功能强的进销存业务管理软件,帮助大家扛起重任,最大限度的节省人、财、物。高标准实现您的理想境界,同时该软件易懂,操作方便简洁,在设计上、功能上做到了最大限度人性化的体现,使你用上后获得意想不到的收获,将助你最短时间内提高到高效经营管理的前列,让你胸有成竹的面对复杂多变的市场,助你理想和伟业。本软件以优质高端的品质,市场同类产品最低价位,最完善的售后服务体系保障每一个用的利益。

如果你沈阳的商户,请拨打电话与我联络
手机:13478184425
QQ:47722978

【转载】采用Cookie实现跨子域登陆

Cookie有三个属性需要注意一下:
1. Domain 域
2. Path 路径
3. Expires 过期时间

跨域操作需要设置域属性:
Response.Cookies(”MyCookie”).Domain = “yule4.com”; (这里指的是泛域名)
这样在其它二级域名下就都可以访问到了, ASP 和 ASP.NET 测试通过

虚拟目录下访问:
我在ASP端做了下测试,.NET的没试, 如果不指定Path属性, 不同虚拟目录下Cookie无法共享
将Response.Cookies(”MyCookie”).Path = “/” 就可以了

总的写法:
Response.Cookies(”MyCookie”).Domain = “cnblogs.com”;
Response.Cookies(”MyCookie”).Path = “/”
Response.Cookies(”MyCookie”).Expires = Now + 365;
Response.Cookies(”MyCookie”)(”Test”) = “test”;

.NET 清除Cookie
HttpCookie cookie = System.Web.HttpContext.Current.Request.Cookies[cookiename];
if (cookie != null)
{
  cookie.Values.Clear();
  SetUserCookieExpireTime(cookiename, -1);
  cookie.Domain = _domain;
  System.Web.HttpContext.Current.Response.Cookies.Set(cookie);
 }
public static void SetUserCookieExpireTime(string key, int days)
{
  System.Web.HttpContext.Current.Response.Cookies[key].Domain = _domain;
  System.Web.HttpContext.Current.Response.Cookies[key].Path = _cookiepath;
  System.Web.HttpContext.Current.Response.Cookies[key].Expires = DateTime.Now.AddDays(days);
}
.NET 添加/更新Cookie
public static void AddUserCookies(string key,string value, string cookiename, string domain)
{
  HttpCookie cookie = System.Web.HttpContext.Current.Request.Cookies[cookiename];
  if (cookie == null)
  {
  cookie = new HttpCookie(cookiename);
  cookie.Domain = domain;
  cookie.Path = _cookiepath;

cookie.Values.Add(key, value);
  HttpContext.Current.Response.AppendCookie(cookie);
  }
  else
  {
  if (System.Web.HttpContext.Current.Request.Cookies[cookiename].Values[key] != null)
  {
  cookie.Values.Set(key, value);
  }
  else
  {
  cookie.Domain = domain;
  cookie.Path = _cookiepath;

cookie.Values.Add(key, value);
  HttpContext.Current.Response.AppendCookie(cookie);
  }
  }
}

Coldfusion Ping 网站 函数

Example:

<h3>Ping Test</h3>
<cfoutput>
Almontel 1: #Ping(”www.almontel1.com”)#<br>
Almontel 2: #Ping(”www.almontel2.com”)#<br>
</cfoutput>

Full UDF Source:

<!—
Pings a website using .net framework

@param host      URL/IP that you would like to ping. (Required)
@return A string containing the results of the ping.
@author Elias (eliasjp@msn.com)
@version 1, October 14, 2008
—>
<cffunction name=“Ping” returntype=“string” output=“false” access=“public”>
<cfargument name=“host” type=“string” required=“yes”>
<!— Local vars —>
<cfset var pingClass=“”>
<cfset var pingReply=“”>
<!— Get Ping class —>
<cfobject type=“.NET” name=“pingClass”
class=“System.Net.NetworkInformation.Ping”>

<!— Perform synchronous ping (using defaults) —>
<cfset pingReply=pingClass.Send(Arguments.host)>
<!— Return result —>
<cfreturn pingReply.Get_Status().ToString()>
</cffunction>

 

免费网赚之推广赚钱

【雨荷网】成立于2007年9月份,旨在把目前最新的、最热门的、同时又比较简单的网上赚钱方法,免费推荐给国内的广大网友。希望能帮助想在网上赚钱的新人朋友们起到入门引导作用,使第一次接触网上赚钱的朋友能够尽快了解网上赚钱这一行业,并以最快的速度在网上淘到自己的第一桶金。
  因业务发展需要,【雨荷网】诚招兼职宣传员、网上发帖员,零风险,虽然不会一夜暴富,但能收入稳定,薪水1000-2000元/月,薪水日结、周结、月结均可,薪水直接打到银行卡或支付宝上,欢迎有意者到直接到网站了解报名,地址:注册

php 通过代理访问网站

<?
function curl_string ($url,$user_agent,$proxy){

$ch = curl_init();
curl_setopt ($ch, CURLOPT_PROXY, $proxy);
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt ($ch, CURLOPT_COOKIEJAR, “c:\cookie.txt”);
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
$result = curl_exec ($ch);
curl_close($ch);
return $result;

}

$url_page = http://www.yule4.com;
$user_agent = “Mozilla/4.0″;
$proxy = “http://192.11.222.124:8000″;
$string = curl_string($url_page,$user_agent,$proxy);
echo $string;
?>

C# 通过代理获取网页内容

string urlStr = “http://www.domain.com”; //設定要獲取的地址
HttpWebRequest hwr = (HttpWebRequest)HttpWebRequest.Create(urlStr); //建立HttpWebRequest對象
hwr.Timeout = 60000; //定義服務器超時時間
WebProxy proxy = new WebProxy(); //定義一個網關對象
proxy.Address = new Uri(”http://proxy.domain.com:3128″); //網關服務器:端口
proxy.Credentials = new NetworkCredential(”f3210316″, “6978233″); //用戶名,密碼
hwr.UseDefaultCredentials = true; //啟用網關認証
hwr.Proxy = proxy; //設置網關
HttpWebResponse hwrs = (HttpWebResponse)hwr.GetResponse(); //取得回應
Stream s = hwrs.GetResponseStream(); //得到回應的流對象
StreamReader sr = new StreamReader(s, Encoding.UTF8); //以UTF-8編碼讀取流
StringBuilder content = new StringBuilder(); //
while (sr.Peek() != -1) //每次讀取一行,直到
{ //下一個字節沒有內容
content.Append(sr.ReadLine()+”\r\n”); //返回為止
} //
return content.ToString() ; //返回得到的字符串