八卦
作者:baikang 日期:2007-12-20 11:24
又是梦
作者:baikang 日期:2007-11-29 22:51
How to remove the Macromedia Flash Player ActiveX control
作者:baikang 日期:2007-11-29 13:21
How to remove the Macromedia Flash Player ActiveX control
Users might want to uninstall the Flash Player for several reasons:
- To ensure a clean upgrade to the latest version of Adobe Flash Player
- To test player detection schemes (see Additional Information for details)
- To test or fix a possible failed Flash Player installation
To uninstall the Flash Player:
You can uninstall the Flash Player using the Flash Player Uninstaller, or you can remove the Flash Player manually.
To uninstall using the Flash Player Uninstaller (recommended)
Refer to How to uninstall the Adobe Flash Player plug-in and ActiveX Control (TechNote 14157).
To manually uninstall the ActiveX control (Flash Players 6 and earlier only)
- Quit Internet Explorer, if it is open.
- From the Start menu, choose Search > Files or Folders and search for
flash.ocx(if you are removing Macromedia Flash Player 6) orswflash.ocx(if you are removing Macromedia Flash Player 5 or earlier).
Note: The name of the ActiveX control changed with version 6 to "flash.ocx". See Windows XP error installing Macromedia Flash Player ActiveX control (TechNote 16178) for details. - Note the path to the file. The path is typically:
C:\Windows\System\Macromed\Flash on Windows 95, 98 or WinME;
C:\WinNT\System32\Macromed\Flash on Windows NT or 2000;
C:\Windows\System32\Macromed\Flash on Windows XP.
If more than one copy of the file is found, note the paths to all copies of the file. - Select Start > Run.
- In the Open field, enter the following command:
regsvr32 {path}\{filename} /u
Replace{path}with the path tothe filenamenoted from step 3.
Replace{filename}with thefilenamenoted from step 2.
For example, if you're uninstalling the Macromedia Flash Player 6 ActiveX control on Windows 2000, the path would be:
regsvr32 C:\WinNT\System32\Macromed\Flash\flash.ocx /u - Click OK. You should get a RegSvr32 dialog box stating that the executable succeeded. If it failed, double check the path and file name for your system.
- Select Start > Find Files or Folders and enter
flash.ocx(if you are removing Macromedia Flash Player 6) orswflash.ocx(if you are removing Macromedia Flash Player 5). - Right-click on the found file and choose Delete from the context (right-click) menu. If more than one copy of the file exists, delete each one.
- Search for
swflash.infusing Windows Find utility (Start > Find > Files or Folders). This file is used during the installation of the Macromedia Flash Player ActiveX control. - Right-click on the file and choose Delete.
- Restart the machine.
To reinstall the Flash Player ActiveX control
Download the latest version from the Adobe Flash Player Download Center.
Note: The Windows Run program saves each command used in a pop-up menu which makes it easy to uninstall the control for future tests.
Additional information
For information on Adobe Flash Player detection, please refer toHow to detect the presence of the Flash Player (TechNote 14526).
Refer to System Requirements for a list of supported browsers and platforms.
If you are a Flash developer and require a previous version of Macromedia Flash Player for testing detection schemes, refer to Archived Macromedia Flash Players available for testing purposes (TechNote 14266).
SWFObject 使用事例
作者:baikang 日期:2007-11-29 13:09
SWFObject swfobject_1_5_1.rar (请登录后下载) 幽酷网,土豆网都使用这个JS来激活Flash控件。作者主页(http://blog.deconcept.com/swfobject/)看了他的例子,发现使用起来很简单:
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent"> This text is replaced by the Flash movie. </div> <script type="text/javascript"> var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699"); so.write("flashcontent"); </script> 上面这个就是SWFObject嵌入网页的代码,如果英文基本过关的话,可以直接去作者主页查看说明,我这里装装帅,稍微解释一下: SWFObject同样是一个使用Js激活Flash控件,的以第一步就是让你的网页里面加载SWFObject.js 然后后面是显示flash的层,里面的id="flashcontent"必需要跟后面so.write("flashcontent");的值一样,用于展示Flash This text is replaced by the Flash movie.是表示如果访客的浏览器不支持Js或Flash时,将会显示此字符 var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699"); 这个就是最主要的部分了,分别表示var so = new SWFObject(Flash文件地址, id值, 宽, 高, 需要定义的Flash播放器版本, 背景颜色 [, 质量, 访客端错误升级安装向导网址, 访客Flash版本错误转向地址l, 不使用SWFObject的网址(直接在网址后面加入?detectflash=false即可)]); ,这后面中括号里面的内容默认没有加上去的,如果有需要可以自行添加上有时候部分Flash还需要定义其它参数,如allowFullScreen呀等其它参数的,就可以直接在Js中插入so.addParam("参数", "值");即可,如官方给出的例子: <script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699"); so.addVariable("variable1", "value1"); so.addVariable("variable2", "value2"); so.addVariable("variable3", "value3"); so.write("flashcontent"); </script> 将Flash代码修改为: <div id="{MD5}"></div>
<script type="text/javascript"> var so = new SWFObject("{1}", "mymovie", "550", "400", "8", "#ffffff", "high"); so.addParam("allowScriptAccess", "sameDomain"); so.addParam("allowFullScreen", "true"); so.write("{MD5}"); </script> 将插件CC视频播放器的标签修改为: <div id="{MD5}"></div>
<script type="text/javascript"> var so = new SWFObject("http://union.bokecc.com/{1}", "mymovie", "500", "440", "8", "#000000", "high"); so.addParam("allowFullScreen", "true"); so.write("{MD5}"); </script> 下载
swfobject_1_5_1.rar (请登录后下载)需要注册 |
^o^睡觉~o~
作者:baikang 日期:2007-11-27 20:00
好累啊,整个发木。昨晚5点睡的,又写了一天的代码,想算法啊,写数据库啊,这脑子一天都没闲着。
本想回家给项目+个新功能,可到了家就懒得开电脑了。很反感它。记得当初买这玩艺的时候,美的跟什么的似的。天天坐在电脑前,捣鼓这捣鼓那。很讨厌睡觉,吃饭,因为太耽误玩电脑了。家里人啊,女朋友啊,一直反对,说那叫“不务正业”。
现在毕业了,工作了,天天坐在电脑前,敲啊敲,还有人管着你,必须坐那敲,不敲就滚蛋,否则也叫“不务正业”。我都快有抑郁症了,瞧见带屏幕的就想离远远的,家里的能不开就不开了,因为开了又能干什么呢?朋友们,兄弟们都回归wow了,我迟迟未到,说是家里没网,其实我知道,我现在很反感电脑这东西。网吧我都很少去,烦的不行。现在终于感受到辐射的刺激了,我要癌变了,躲!离我远点。
现在反到对电视越来越感兴趣,离的远远的,手里拿着遥控,播啊播,现在频道多,想看啥看啥,电视剧也很有意思,就是广告太多,不得不播啊播。现在对手机也情有独钟,原来用的都是nokia的黑白屏1100,1116,除了发短信打电话,就一电子表。前阵终于下定决心,大出血,换个智能的N73,体验体验移动生活。还真别说,有了这玩艺,眼界又开阔许多,一些新的概念和技术,亲身体验了一回。实践是检验真理的唯一标准,实践是完全理解真理的唯一途径。不吃葡萄永远不知道为什么还要吐皮,做了IT不拥有IT装备,永远是个代码书记员。网络啊,数码啊,移动啊……
新的生活,新的生活,天天有自信,再过4个月,我要再变。
iyo iyo ,不错
iyo iyo ,好久不见
iyo iyo ,iyo的意思是……
iyo iyo ,就是你说的每句话都可以是iyo
iyo iyo, 今晚的代码去死吧。睡!^oo^
赶了
作者:baikang 日期:2007-11-26 23:26
也是很久没这么紧迫过了,很过瘾的说。
早上早早来到单位,准备新的一天工作,老板依旧例行安排,我一如既往穷横,没问题,这些活手底有根。今天都要做什么呢?我流水一下,第一要联系客户商讨库存软件数据修改解决方案,并修改;再找最新的IP库,更新自己家网站数据;寻找新的天气webservice,更新网站数据;更新访问技术器插件程序。要说也没多少,一天,稳稳当当的没问题。
但事总有巧,今天岩岩的项目要接受客户检查,事情突然时间紧迫,兄弟有难必须出手。这样,岩岩的项目部分程序,添加到日程当中,并且提到首位。
这还不算完,昨天的照片和视频还要给程程同学传过去。也搁到日程里。
突然我没概念了,干吧,就没过今天都能做完么。来吧。
首先是岩岩同学的,从上午10点程序传到我手里,就开始一丝不苟的敲,敲啊敲,连中午吃饭都赶。他那边有新变化,我这写完的程序还得返工修改。一直折腾到下午4点20,最后两页才传送过去。其间程程同学,多次哭闹,我忍啊忍,趁着压缩文件的功夫,我把照片拷出来,视频翻出来。之后,岩岩那边没了动静,我才给程程传过去,当时时间4点半了。
我,天。要知道,我5点半下班=.=
下面才刚刚开始我今天的任务,有点急了,拼了。马上给客户打电话,从头到尾,挨条数据核对商量,终算是确定个方案。数据修改是来不及了,快5点了,整IP库。好在上午10点之前,找到一个还算不错了,我又给升级,应该可以交差了。至于天气webservice,好在哥们有先见之明,上周的时候程序都整出来了,就差调试了。最后那个什么插件,让它去死吧。
时间,5点10分,经理来视察了。
我对自己的口才很满意,把今天的成果一一展示,同时配上沉着冷静的旁白,图文并茂,经理还算满意。从5点10分讲到20,整个时段都我的,就好像今天我完成的很出色,经理时而点头时而微笑。心想,经理我知道错了,饶了我吧,我就当你很满意了。终于把经理盼走了,我面对屏幕,大大的呼了口气,操。
一天又结束了,挺充实,但我心不踏实,毕竟对付了事。是我太看重兄弟呢,还是不屑手中的活儿呢。其实我能做得更好,其实是我能力还不够好。
长期坐在电脑前,容易得抑郁症,我想我有点,但不严重。因为我知道我有病。
抑郁什么呢?
时间怎么过得这么快呢?!
总想有个大块的时间,学点什么,做点什么,或者写点什么。可总不知不觉,一天就过去了。
在学校的时候,我可没这感觉。
突然想说,睡觉真浪费时间。
操,有病。
WebServiecs
作者:baikang 日期:2007-11-23 16:08
- HistoryEvent
返回指定日期下的历史事件
参数1:SetDateTime(DataTime)
参数2:LicenceKey 授权码(String) 免费注册授权码
返回:DataSet - IP2Area
返回IP地址所在的城市
参数1:IPAddress(String)
参数2:LicenceKey 授权码(String) 免费注册授权码(String)
返回:string[] - IdentityCard
返回身份证前六位所在的城市
参数1:IdentityCardID 身份证号码前六位(String)
参数2:LicenceKey 授权码(String) 免费注册授权码
返回:城市名称 string - MobileNumberConvert
返回手机号码段归属地
参数1:MobileNumber 手机号码前七位(String)
参数2:LicenceKey 授权码(String) 免费注册授权码
返回:string[0] 归属地 string[1] 卡类型
服务2:http://webservice.jaron.cn/weather.asmx
- GetWeather
返回24小时天气预报
参数1:CityName 中文城市名称(DataTime)
参数2:LicenceKey 授权码(String) 免费注册授权码
返回:DataSet
实用Web Service
pwd: wopos
手机归属地
地址:http://www.wopos.com/webservice/Mobile.asmx
介绍:使用 getMobileArea(mobileCode) mobileCode-手机号码或前7位
地址:http://www.wopos.com/webservice/Stock.asmx
介绍:使用 getStockChart(StockCode) StockCode-股票代码,返回值为图片的HTTP地址.
IP地址查询
地址:http://www.wopos.com/webservice/ips.asmx
介绍:使用 getIParea(ip)方法返回IP所在地,使用AddIPRange(startIP,EndIP,AreaInfo)增加新的IP地址信息,使用 IpToInt 和 IntToIp可对IP地址从字符串到整型的互相转换.
成语典故
地址:http://www.wopos.com/webservice/chengyu.asmx
介绍:
使用 ChengYuDianGu(chengyu)方法,参数为成语或成语的拼音缩写。如返回多个成语以*_*分隔
生成验证码图像
地址:http://www.wopos.com/webservice/vimg.asmx
介绍:使用 GetVerifyImg(str4,Lenght,Width,Style)生成一张字符图像,用于注册、发贴等场合做图像验证。后面三个参数为保留参数,暂时无效,用于以后扩充。 目前的很简单,仅供测试
RSS种子生成
地址:http://www.wopos.com/webservice/Rss.asmx
介绍:使用 OutPutRss()方法:Rss Item数据项以DataTable 方式提供。数据项数不能超过100调用后直接输出RSS2.0 XML。
例:
Imports System.Data
王牌网提供的几个实用Web Service文档(www.wopos.com)
天气预报
地址:http://www.wopos.com/webservice/weather.asmx
介绍:使用 getWeather(city)方法:city-直接输入全国大中小城市及国外中城市中文名
例:
Public sub GetWopWeather(ByVal city As String)
Dim s As String
Try
Dim weat As New localhost.Weather
s = weat.getWeather(city)
If s.IndexOf('没有查到相关结果') > -1 Then
Else
s = s.Replace(',', '').Replace('==', ':')
End If
Catch ex As Exception
s = '提供天气数据的网络不通,请稍后再试'
End Try
response.write(s)
End sub
手机归属地
地址:http://www.wopos.com/webservice/Mobile.asmx
介绍:使用 getMobileArea(mobileCode) mobileCode-手机号码或前7位
股票走势图
地址:http://www.wopos.com/webservice/Stock.asmx
介绍:使用 getStockChart(StockCode) StockCode-股票代码,返回值为图片的HTTP地址.
IP地址查询
地址:http://www.wopos.com/webservice/ips.asmx
介绍:使用 getIParea(ip)方法返回IP所在地,使用AddIPRange(startIP,EndIP,AreaInfo)增加新的IP地址信息,使用 IpToInt 和 IntToIp可对IP地址从字符串到整型的互相转换.
成语典故
地址:http://www.wopos.com/webservice/chengyu.asmx
介绍:
使用 ChengYuDianGu(chengyu)方法,参数为成语或成语的拼音缩写。如返回多个成语以*_*分隔
生成验证码图像
地址:http://www.wopos.com/webservice/vimg.asmx
介绍:使用 GetVerifyImg(str4,Lenght,Width,Style)生成一张字符图像,用于注册、发贴等场合做图像验证。后面三个参数为保留参数,暂时无效,用于以后扩充。 目前的很简单,仅供测试。
RSS种子生成
地址:http://www.wopos.com/webservice/Rss.asmx
介绍:使用 OutPutRss()方法:Rss Item数据项以DataTable 方式提供。数据项数不能超过100调用后直接输出RSS2.0 XML。
例:
Imports System.Data
Partial Class Test : Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim tb As New DataTable
Dim rw As DataRow
tb.Columns.Add(New DataColumn('title', System.Type.GetType('System.String')))
tb.Columns.Add(New DataColumn('link', System.Type.GetType('System.String')))
tb.Columns.Add(New DataColumn('author', System.Type.GetType('System.String')))
tb.Columns.Add(New DataColumn('pubdate', System.Type.GetType('System.String')))
tb.Columns.Add(New DataColumn('category', System.Type.GetType('System.String')))
tb.Columns.Add(New DataColumn('description', System.Type.GetType('System.String')))
For i As Int16 = 0 To 10
rw = tb.NewRow
rw.Item('title') = 'title' & i
rw.Item('link') = 'http://www.wopos.com/test.htm'
rw.Item('author') = 'author ' & i
rw.Item('pubdate') = Date.Now.ToString
rw.Item('category') = 'category ' & i
rw.Item('description') = 'description ' & i
tb.Rows.Add(rw)
Next
Dim rss As New Rss
rss.OutPutRss(tb, '中国新闻', '中新', 'www.wopos.com', 'wopos.com', '新闻', '图片', 'http://www.wopos.com', 'http://www.wopos.com/image/wopos.gif')
End Sub
End Class
一个国外的天气预报WebService
http://www.webservicex.net/globalweather.asmx
这还有一个
http://webservice.k-zone.cn/WeatherService/WeatherService.asmx
swfobject_1_5_1.rar (请登录后下载)