php生成桌面快捷方式

代码示例:

<?php

$url_this =  "http://".$_SERVER ['HTTP_HOST'].$_SERVER['PHP_SELF'];

/*echo $url_this;*/

//第一种。获取当前URL生成。

$Shortcut = "[InternetShortcut]

URL={$url_this}

IDList=

IconFile=http://www.souab.com/favicon.ico

IconIndex=1

[{000214A0-0000-0000-C000-000000000046}]

Prop3=19,2

";

Header("Content-type: application/octet-stream"); 

header("Content-Disposition: attachment; filename=不懂戀愛魚兒.url;"); 

echo $Shortcut;

?>

阅读全文>>

post by 不懂戀愛魚兒 | 2010年12月15日 | 归档于 [Php技术]

Asp实例删除Split分隔的内容其中的某一部份

示例代码:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>

<%Action=Request.QueryString("Action")

Dim aID,aryTemp,Total,i,j,csID

csID=25

j=1%>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>实例删除Split分隔的内容其中的某一部份</title>

<style type="text/css">

* {margin:0px; padding:0px; line-height:180%;}

a {color:#666666; text-decoration:none;}

</style>

</head>

阅读全文>>

post by 不懂戀愛魚兒 | 2010年12月13日 | 归档于 [Asp技术]
标签: asp split

可以在两侧移动的代码

代码示例:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>可以在两侧移动的代码</title>

</head>

<body> <div id='dl_left' style='position:absolute; width:93px; height:482px; z-index:1; left: 0px; top: 30px;'><img src='图片地址' width='93' height='482'></div> <div id='dl_right' style='position:absolute; width:93px; height:482px; z-index:1; right: 0px; top: 30px;'><img src='图片地址' width='93' height='482'></div> <script language='javascript'> lastScrollY=0; function heartBeat() { diffY=document.body.scrollTop;

阅读全文>>

post by 不懂戀愛魚兒 | 2010年12月12日 | 归档于 [网站特效]
标签: 代码 移动

用JS自动生成等比例缩略图

代码示例:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>用JS自动生成等比例缩略图</title>

<script language="javascript">

function Wa_SetImgAutoSize() 

{ 

var img=document.all.img1;//获取图片

var MaxWidth=300;//设置图片宽度界限

var MaxHeight=100;//设置图片高度界限

var HeightWidth=img.offsetHeight/img.offsetWidth;//设置高宽比

var WidthHeight=img.offsetWidth/img.offsetHeight;//设置宽高比

阅读全文>>

post by 不懂戀愛魚兒 | 2010年12月9日 | 归档于 [JavaScript]
标签: js 缩略图

HTML小技巧:页面刷新后表单中值不丢失

代码示例:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="save" content="history"> 

<title>saveHistory行为应用</title>

</head>

<body> 用了saveHistory 行为的表单项:<br> <input name="utel" type="text" style="behavior:url(#default#savehistory)"/> <br> 一般表单项:<br> <input name="uname" type="text" /> </body> </html>

注意:<meta name="save" content="history"> 这行代码为必需。

特别说明
saveHistory 默认行为允许对象在浏览器历史中留存数据,相关的特性、事件和方法说明如下:
特性:
XMLDocument 对对象提供的 XML DOM 的引用。

事件:
onload 页面重载时在持久对象上触发。
onsave 在保存、设置 Web 页为标签或离开该页时从持久对象上触发。

方法:
getAttribute 获取指定属性的值。
removeAttribute 从对象移除指定属性。
setAttribute 设置指定属性的值。

post by 不懂戀愛魚兒 | 2010年12月7日 | 归档于 [网站特效]
标签: html
sitemap