pagemaker

最全的CSS浏览器兼容问题整理(IE6.0、IE7.0 与 FireFox)[留后查看]

星期四, 二月 25th, 2010 | pagemaker | 2 Comments

也没有时间去看完,在处理兼容性方面一直很头大,现在找个留下,碰到此类问题,看能不能帮上点忙
CSS 对浏览器的兼容性有时让人很头疼,或许当你了解当中的技巧跟原理,就会觉得也不是难事,从网上收集了IE7,6与Fireofx的兼容性处理方法并整理了 一下.对于web2.0的过度,请尽量用xhtml格式写代码,而且DOCTYPE 影响 CSS 处理,作为W3C的标准,一定要加DOCTYPE声 名.

常见问题

1.div的垂直居中问题
› Continue reading

Tags: , , ,

颜色六位码和RGB在线互转查询和计算方式

星期六, 八月 22nd, 2009 | pagemaker, php | 2 Comments

颜色六位码和RGB在线互转查询和计算方式
这是关于颜色的十六进制和十进制相互转换的问题。eg:
#FFFF00->FF,FF,00(RGB)->(255,255,0)->yellow!
额外的色彩转换工作。当然这种速度差异很难察觉,只是理论上的。

RGB是三原色R(red)、G(green)、B(blue)。RGB的所谓“多少”就是指亮度,并使用整数来表示。通常情况下,RGB各有256级亮度,用数字表示为从0、1、2…直到255。
按照计算,256级的RGB色彩总共能组合出约1678万种色彩,即256×256×256=16777216。通常也被简称为1600万色或千万色。也称为24位色(2的24次方)。
CSS颜色代码大全–自己网上的颜色调色板-六位颜色值
这24位色还有一种较为怪异的称呼是8位通道色,为什么这样称呼呢?
› Continue reading

Tags: , ,

抓取开心网的黑灯瞎火蒙面聊的游戏面具的图片和对于的文字展示

星期四, 四月 16th, 2009 | pagemaker | 4 Comments

今天用看到开心网的黑灯瞎火蒙面聊的游戏面具,感觉文字和图片配的蛮有意思,就自己写个程序把它所有的图片和文字提示抓取了,一共80个图片,不过感觉文字更有意思;在这里做个展示,呵呵

不能被他一手掌握 我是干柴你是火 爱情发炎了 粉蝶妹妹 红杏出墙来 哀愁的預感 我射的好远 容不下你的孤单
色戒中 小心色狼 夜店常客 死了都不卖 面色潮红 蒙娜姐姐 超级男人 天生好水性
绿帽子粉猪 红旗先生 情色日本 墨迹斑斑 石头记 欲女忧神 口罩也三角 鬼吹灯
内分泌失调 钻石恒久远,一颗就破产 没事听听歌 铁面杀手 少妇白洁 爱的核变 都是鬼谁怕谁 耳朵大有福
挤挤地铁就怀孕 柠檬黄内裤 口技女优 天蝎女郎 有事多送礼 长江7号 我是你的伞 开心柠檬
金发碧眼 今年本命年 我是女老大 棉被悄悄话 我是美人花 吓死不偿命 对面的眼睛 肥臀丰乳
花花列宁 有一种网叫丝袜 都是狼何必装羊 有一条沟叫乳沟 打口的年代 克赛号出发 赣南脐橙 饿的神啊
失窃的孩子 我是变色龙 有一种爱叫等待 隔壁的呻吟 通讯基本靠吼 洗洗睡吧 微启朱唇 有一种爱叫做放手
第200次失恋 上了他的床 做做足疗 报告例假来了 我不是随便的人 亮亮二头肌骗个小MM 三个女人一台戏 鱼和胸罩不可兼得
爱情小王 哪有耗子 色字头上没有刀 拉链门案件 我是你的创可帖 我要抓到你 挠心的毛毛虫 革命干部

Tags: ,

CSS颜色代码大全–自己网上的颜色调色板-六位颜色值

星期四, 二月 5th, 2009 | pagemaker | 一条评论

弄个表格在wp中都是那么麻烦,装个编辑器插件,搞定,下次调颜色就方便很多了

#FFFFFF #DDDDDD #AAAAAA #888888 #666666 #444444 #000000
#FFB7DD #FF88C2 #FF44AA #FF0088 #C10066 #A20055 #8C0044
#FFCCCC #FF8888 #FF3333 #FF0000 #CC0000 #AA0000 #880000
#FFC8B4 #FFA488 #FF7744 #FF5511 #E63F00 #C63300 #A42D00
#FFDDAA #FFBB66 #FFAA33 #FF8800 #EE7700 #CC6600 #BB5500
#FFEE99 #FFDD55 #FFCC22 #FFBB00 #DDAA00 #AA7700 #886600
#FFFFBB #FFFF77 #FFFF33 #FFFF00 #EEEE00 #BBBB00 #888800
#EEFFBB #DDFF77 #CCFF33 #BBFF00 #99DD00 #88AA00 #668800
#CCFF99 #BBFF66 #99FF33 #77FF00 #66DD00 #55AA00 #227700
#99FF99 #66FF66 #33FF33 #00FF00 #00DD00 #00AA00 #008800
#BBFFEE #77FFCC #33FFAA #00FF99 #00DD77 #00AA55 #008844
#AAFFEE #77FFEE #33FFDD #00FFCC #00DDAA #00AA88 #008866
#99FFFF #66FFFF #33FFFF #00FFFF #00DDDD #00AAAA #008888
#CCEEFF #77DDFF #33CCFF #00BBFF #009FCC #0088A8 #007799
#CCDDFF #99BBFF #5599FF #0066FF #0044BB #003C9D #003377
#CCCCFF #9999FF #5555FF #0000FF #0000CC #0000AA #000088
#CCBBFF #9F88FF #7744FF #5500FF #4400CC #2200AA #220088
#D1BBFF #B088FF #9955FF #7700FF #5500DD #4400B3 #3A0088
#E8CCFF #D28EFF #B94FFF #9900FF #7700BB #66009D #550088
#F0BBFF #E38EFF #E93EFF #CC00FF #A500CC #7A0099 #660077
#FFB3FF #FF77FF #FF3EFF #FF0 0FF #CC00CC #990099 #770077

Tags: ,

添加到各大流行网摘的代码大全–可用修正版

星期一, 一月 19th, 2009 | pagemaker, wordpress | 没有评论

想给自己的blog填上网摘,以便收录,在网上找了好久也不行,就自己收录汇总下了可以直接使用
直接把下列代码放到你要收藏的单页即可,具体样式可以参考本文章的单页的下面:

1
2
3
4
5
<div align="center"><b>收藏本文到</b><!-- Start of add bookmark buttons created by wp_addbookmarks. Plugin by //www.pomelolee.com/ -->
<a href="http://del.icio.us/post" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=700,height=400 '); return false;"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/delicious.gif" alt="Del.icio.us" title="添加到Delicious" border="0" /></a> <a href="javascript:location.href='http://www.google.com/bookmarks/mark?op=add&amp;bkmk='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images//google.png" alt="Google书签" title="添加到Google书签" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://digg.com/submit?phase=2&amp;url='+escape(d.title)+'&amp;newspath='+escape(d.location.href)+'&amp;subtitle='+escape(t),'Digg'));blog.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/digg.gif" alt="Digg" title="添加到Digg" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('https://favorites.live.com/quickadd.aspx?url='+escape(d.title)+'&amp;newspath='+escape(d.location.href)+'&amp;subtitle='+escape(t),'Live'));blog.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/live.gif" alt="Live Bookmark" title="添加到Live Bookmark" border="0"/></a> <a href="http://slashdot.org/" onclick="window.open('http://slashdot.org/bookmark.pl?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title), 'slashdot','toolbar=no,width=700,height=400 '); return false;"><img src="http://images.slashdot.org/favicon.ico" alt="Slashdot" height="16" width="16" title="添加到Slashdot" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://www.technorati.com/faves?add='+escape(d.title)+'&amp;newspath='+escape(d.location.href)+'&amp;subtitle='+escape(t),'Technorati'));blog.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/technorati.gif" alt="Technorati" title="添加到Technorati" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://furl.net/storeIt.jsp?u='+escape(d.title)+'&amp;newspath='+escape(d.location.href)+'&amp;subtitle='+escape(t),'Furl'));blog.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/furl.gif" alt="Furl" title="添加到Furl" border="0"/></a> <a href="javascript:location.href='http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+encodeURIComponent(location.href)+'&amp;t='+encodeURIComponent(document.title)"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/yahoo.gif" alt="Yahoo书签" title="添加到Yahoo书签" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://www.facebook.com/share.php?u='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t)+'&amp;st=2','facebook','scrollbars=no,width=800,height=600,left=75,top=20,status=no,resizable=yes'));yesky.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/facebook.gif" alt="Facebook" title="添加到Facebook" border="0"/></a> <a href="javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&amp;iu=%22+encodeURIComponent(u)+%22&amp;dc=%22+encodeURIComponent(c)+%22&amp;fr=ien#nw=1%22;window.open(url,%22_blank%22,%22scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes%22); void 0"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/baidu.gif"  alt="百度搜藏" title="添加到百度搜藏" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&amp;title='+escape(d.title)+'&amp;url='+escape(d.location.href)+'&amp;desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/vivi.gif" alt="新浪ViVi" title="添加到新浪ViVi" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/365key.gif"  alt="365Key网摘" title="添加到365网摘" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t)+'&amp;st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/yesky.gif" alt="天极网摘" title="添加到天极网摘" border="0"/></a> <a href="javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&amp;url='+escape(u)+'&amp;excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/hexun.gif" alt="和讯网摘" title="添加到和讯网摘" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://www5.bolaa.com/CommendBlog/SmallLogin.aspx?title='+escape(d.title)+'&amp;newspath='+escape(d.location.href)+'&amp;subtitle='+escape(t),'bolaa','width=400px,height=400px'));blog.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/bolaa.gif" alt="博拉网" title="添加到博拉网" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t)+'&amp;img=http://www.h-strong.com/blog/logo.gif','keyit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));keyit.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/poco.gif" alt="POCO网摘" title="添加到POCO网摘" border="0"/></a> <a href="javascript:var d=document,w=window,f='http://fanfou.com/share',l=d.location,e=encodeURIComponent,p='?u='+e(l.href)+'&amp;t='+e(d.title)+'&amp;d='+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+'&amp;s=bm';a=function(){if(!w.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=0,width=600,height=400'))l.href=f+'.new'+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}void(0)"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/fanfou.gif" alt="添加到饭否"  title="添加到饭否" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(zhai=window.open('http://shuqian.qq.com/post?from=3&amp;title='+encodeURIComponent(document.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'zhai','scrollbars=no,width=480,height=420,left=75,top=50,status=no,resizable=yes'));zhai.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/qq.gif" alt="QQ书签" title="添加到QQ书签" border="0"/></a> <a href="javascript:q=(document.location.href);void(open('http://www.digbuzz.com/submit.php?url='+escape(q),'','resizable,location,menubar,toolbar,scrollbars,status'));"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/digbuzz.gif" border="0" alt="Digbuzz我挖网" title="添加到Digbuzz我挖网" /></a> 
<!-- End of add bookmark buttons created by wp_addbookmarks. Plugin by http://www.i5a6.cn/ -->
</div>

Tags: , ,

flash调用js的两种方法和示例文件

星期二, 十二月 30th, 2008 | pagemaker | 没有评论

兼容IE和Firefox浏览器:

在firefox下要注意下这个allowScriptAccess=”sameDomain” ;要在应用服务器下测试
直接打开页面可能报安全问题,在Apache或者tomcat下访问没有问题
或者在本地设置下安全策略也能,我电脑上什么都有就懒的去设置了

flash的as文件:

两种都能用,喜欢用下面一种,上面的就注销了,感兴趣的可以测试下

1
2
3
4
5
6
on (release) { 
//getURL("javascript:say('hello,world,你好吗?')");
 
import flash.external.ExternalInterface;
ExternalInterface.call("say","接口调用测试用例!");
}

对应的HTML文件:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>testflash</title>
 
 
<script language="JavaScript" type="text/javascript">
function  say(word){
    document.getElementById("word").innerHTML=word;
}
</script>
</head>
</head>
<body bgcolor="#ffffff">
<div id="word" style="color:#CC0000">初步测试应用</div>
<!-- 影片中使用的 URL-->
<!-- 影片中使用的文本-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="400" id="testflash" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="testflash.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="testflash.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="testflash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>

Tags: , , ,

Search

文章分类

Links

Meta