勇士
百度空间 | 百度首页 
               
 
RSS订阅
 
   
 
文章列表
 
2009-07-11 11:11

第一种方法:

定义table样式
table{border:#000 solid; border-width:1px 0 0 1px;}

定义td样式
td{border:#000 solid; border-width:0 1px 1px 0;}

第二种方法:

<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse:collapse;">

style="border-collapse:collapse 折叠表格边框——把相邻的 td 之间的两条边框线合并成一条

第三种方法:

<table bordercolordark="#ffffff" bordercolorlight="#000000" border="1" cellspacing=0 cellpadding=0 width=100 height="100">

其他:

<style>
* { font-size:90%;}
font { color:#0000CC;}
</style>
<font>下面的细线表格是用cellspacing来实现的,用表格的背景色做为边框的颜色。</font>不方便的是每一行都要再设置一个背景色。
<table width="400" border="0" cellspacing="1" cellpadding="0"
bgcolor="#000000">
<tr bgcolor="#006600">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr bgcolor="#FFFFFF">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
</table>
<br />
< font>下面的细线表格是设置bordercolordark来实现的</font>,因为默认的border其实宽度是2,即使设置为1也没用,bordercolorlight和bordercolordark一起作为表格的边框。所以设置其中一个为背景色,表格边框看起来就会细一些。
<table width="400" border="1" cellspacing="0" cellpadding="0"
bordercolor="#000000" bordercolordark="#FFFFFF">
<tr bgcolor="#006600">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
</table>
<br />
<font>下面的表格是用css来实现的。</font><br />
css技巧比较多,列举几种:
A:设置border="1"、bordercolor,再加上style="border-collapse:collapse;"。style里面的内容就是css。
<table width="400" border="1" bordercolor="#000000" cellspacing="0"
cellpadding="0" style="border-collapse:collapse;">
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
</table>
<br />
B:这个用css来设置边框,结果只显示表格的最外层边线。里面的线不显示。
<table width="400" cellspacing="0" cellpadding="0"
style="border:#000000 1px solid;">
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
</table>
<br />
C: 如果你想要页面的所有表格都是细线表格,也不用一个一个去设置。因为这里是演示用,所以加上了id,你用的时候直接
在head里面加上style标签,里面写 table {border-collapse:collapse;} td {border:#000000 1px solid;},所有该页的table就都是细线了。
<style>
#tab1 {border-collapse:collapse;}
#tab1 td {border:#000000 1px solid;}
</style>
<table id="tab1" width="400">
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
</table>
<br />
<br />

<font>表格边框控制的其他方法(rules和frame):</font><br />说明:<br />
1、这两个属性有时候设置会看不到作用,这是因为与表格边框的css设置冲突。所以说如果需要这些效果,并且还需要细线,那就用下面的方式来实现即设置这三个属性,border="1" bordercolor="#000000" style="border-collapse:collapse;",然后再设置rules和frame,如果你测试到有其他的方法,希望能发布出来和大家共享。<br />
2、下面的效果只是我列举出来做演示用的,灵活设置这些属性可以做出更多效果。<br />
rules="cols"的效果(中间的横线没有了)
<table width="400" border="1" bordercolor="#000000"
style="border-collapse:collapse;" rules="cols">
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
</table>
<br />
frame="void"的效果(外边线没有了)
<table width="400" border="1" bordercolor="#000000"
style="border-collapse:collapse;" frame="void">
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
</table>
<br />
rules和frame结合的效果(frame="hsides" rules="rows",只留下横线)
<table width="400" border="1" bordercolor="#000000"
style="border-collapse:collapse;" frame="hsides" rules="rows">
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
</table>

 
2009-07-09 09:49

<!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=gb2312" />
<title>文本框提示样式</title>
<style type="text/css">
<!--
.a1 {
color: #CCCCCC;
}
.a2 {
color: #000;
}
-->
</style>
</head>

<body>
<input name="n" type="text"/>
<input name="n1" type="text"/>
<script language="javascript">

window.onload=function(){
s('n','Your message1');s('n1','Your message2')
}
function g(a){return document.getElementById(a)}
function s(n,v){
with(g(n)){
className='a1';value=v;
onfocus=function(){if(value==v)value='';className='a2'}
onblur=function(){if(value==''){value=v;className='a1'}}
}
}
</script>
</body>
</html>

 
2009-07-06 15:53

在做网站地图之前,我们需要先对Google和yahoo对网站地图格式的要求了解一下:

Google:要求使用XML格式的网站地图
Yahoo: 要求使用TXT格式的网站地图

一、网站地图的制作:

1、在线制作小型的网站地图:

如果你的网站的网页数量比较少(少于500个),那么建议你使用在线的网站地图制作工具:这里

打开这个网页,输入你的网址,然后点击开始,几分钟后,这个在线工具就会给你制作出XML   html    txt 三种不同格式的网站地图,然后你直接下载到本地电脑上。

2、使用工具制作中型网站地图:

用什么工具制作呢?
这里给你推荐一款非常好用的免费的网站地图制作软件:Site Map Builder

官方下载地址:http://www.sitemapbuilder.net/downloads/SiteMapBuilder.zip

下载后,安装,安装好之后,就可以用来制作网站地图了。

这款软件虽然是英文的,操作也非常简单,打开软件后,输入你的网址,然后点击右边的按钮”Extract Links”,然后软件就开始分析你网站的所有链接。

当分析结束之后,你点击左上角的按钮:File >> Save map as >.> 选择自己要保持的网站地图格式,然后保存到本地电脑的路径就OK了。

二、网站地图的提交:

向Google提交网站地图:

https://www.google.com/webmasters/tools/login?hl=zh_CN

1、进入这个网址,用你的Google帐户登录,然后添加你的网址;

2、接下来按照Google的要求验证你网站,你可以选择html文件验证。

3、这时候,按照Google的要求,制作一个Google要求的文件名的html文件

4、用FTP讲这个html文件和你的xml格式的网站地图文件一起传到你网站的根目录

5、确认验证,回到控制台,添加你的地图文件就可以了。


向yahoo提交网站地图

英文yahoo提交网址:
http://search.yahoo.com/info/submit.html

首先用FTP讲你的网站地图传到网站的根目录。打开网址后,选择Submit Your Site for Free: 用yahoo帐户登录,然后输入你的网站地图的URL就可以了。

中文Yahoo的提交网址:
http://sitemap.cn.yahoo.com/mysites

这个操作和Google的一样,验证网站、提交网址地图的地址。然后就等着雅虎来大量收录你的文章吧。但是雅虎的相对来说验证慢很多,大家要有耐心等待。

向bing提交网站地图Sitemap,用URL直接提交:
BING.COM网址提交地址

向ASK提交网站地图Sitemap,直接提交
http://submissions.ask.com/ping?sitemap=http%3A//www.your_site/sitemapxml/index.xml

向百度Baidu提交网站地图Sitemap,没办法,现在百度不支持Sitemap。
但可通过http://www.baidu.com/search/url_submit.html来提交你的网址。
百度会自行搜索,通过robots.txt爬行你的sitemap,更新速度很快。

在你的网站robots.txt文件中添加:
sitemap:http://www.your_site/sitemapxml/index.xml
http://www.your_site/sitemap/index.html

 
2009-07-03 17:38

 
2009-07-03 14:46

30多度的气温,没想到竟然着凉了。

住的地方通风太差,在屋子里呆24小时就得扇24小时风扇。

在异乡,一个男的,本不应该婆婆妈妈的想家。但是感冒的时候确实有点崩溃。

有时候寻思,要是能重新开始就美了。看看现在混的,想到未来心都打寒战。

 
2009-06-27 15:03
X-MEN movie poster - part 1

In this tutorial I am going to show you some cool tricks to get some awesome custom wallpaper or movie poster. First we need to find our subject, I chose X-MEN movie.

Start working by creating a new file (File>New) of 1600x1200px/72dpi. Then select the Paint Bucket Tool (G) to give black color to background layer.

Create X-MEN movie poster in Adobe Photoshop CS4

Next try to find a picture with X-Men characters on it. I used this wallpaper:

Create X-MEN movie poster in Adobe Photoshop CS4

Cut out the main characters on the front plan, introducing them on our basic picture.

Create X-MEN movie poster in Adobe Photoshop CS4

Create a new layer then and choose a standard brush to give some nuance to our picture. The brush has #10F6FF color (Opacity 35%). This layer needs to be placed lower than the characters?layer on the layers?panel:

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Create another new layer and continue here representing the background, applying the same brush mentioned above. This layer will be placed lower than the characters?layer on the layers?panel.

Create X-MEN movie poster in Adobe Photoshop CS4

On the next new layer (Create new layer) we抣l apply a standard brush of white color to draw many dots of different sizes and different opacity. This layer will be placed lower than the layer containing the characters.

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

On the next new layer choose the standard brush and white color (Opacity of 30%) to represent a kind of luminescence around the X-Men characters. This layer will be situated lower than the layer containing the same characters.

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Create a new layer and choose this time the Elliptical Marquee Tool (M) to mark out the next demonstrated zone. This layer will be placed lower than the characters?layer.

Create X-MEN movie poster in Adobe Photoshop CS4

The marked zone should be filled with the color #81F4FF.
The layer抯 parameters: Opacity 60%.

Create X-MEN movie poster in Adobe Photoshop CS4

Make a mouse click on the same layer on Add a Mask selection on the bottom part of the layers?panel and select later the standard brush of black color (Opacity of 15%) to clean out the painted zone.

Create X-MEN movie poster in Adobe Photoshop CS4

Make two copies of the last made layer and choose Free Transform option for changing the copies?sizes, placing them the way it is demonstrated below (lower than the layer containing the X-Men characters)

Create X-MEN movie poster in Adobe Photoshop CS4

Next we抣l represent a kind of circle, applying the Ellipse Tool (U) which layer should be situated lower than the layer with the characters.

Create X-MEN movie poster in Adobe Photoshop CS4

Set the next shown parameters for the last made layer by clicking on this layer on the layers?panel: Fill 0%, Blending Options>Stroke

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Make a copy of this last made layer and select Free Transform option to place the copy the same way indicated below.

Create X-MEN movie poster in Adobe Photoshop CS4

Create a new layer and choose here the standard brush of white color (Opacity of 70%) to represent a spot of light.

Create X-MEN movie poster in Adobe Photoshop CS4

X-MEN movie poster - part 2

Choose on the same layer the Rectangular Marquee Tool (M) to mark out a half of the same spot and press Delete button.

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Choose next step the Free Transform option for the layer with cut spot and press the spot on its horizontal position, stretching it by the vertical position.

Create X-MEN movie poster in Adobe Photoshop CS4

Turn it over and place it the same way as below. This layer should be placed lower than the layer containing the X-Men characters:

Create X-MEN movie poster in Adobe Photoshop CS4

Set the next indicated parameters for the last made layer: Blending Options>Gradient Overlay

Create X-MEN movie poster in Adobe Photoshop CS4

Gradient抯 parameters:

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Try to draw the same way several more rays, placing them the way demonstrated next picture. The layers don抰 need the effects.

Create X-MEN movie poster in Adobe Photoshop CS4

Now we抣l hide several parts of the poster on the bottom part of the picture. In this case we抣l select the Rectangle Tool (U).

Create X-MEN movie poster in Adobe Photoshop CS4

The layer抯 parameters: Fill 0%, Blending Options>Gradient Overlay

Create X-MEN movie poster in Adobe Photoshop CS4

Gradient抯 parameters:

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Make a click on the bottom part of the layers?panel on the selection from here: Create new fill or adjustment layer>Brightness/Contrast

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Take the usual standard brush mentioned above and try to paint the right lowest picture抯 corner, choosing the #004F52 color.

Create X-MEN movie poster in Adobe Photoshop CS4

Now represent a pattern by creating a new file of 6x6px/72dpi. Use here the Pencil Tool (B) (brush 1 px) of black color. The background is absent.

Create X-MEN movie poster in Adobe Photoshop CS4

Edit>Define Pattern
Create one more new file of 640x480px/72dpi which background should be removed. Select then Edit>Fill (the earlier saved pattern). Move this file on our picture. Select Free Transform and press SHIFT button to stretch out the texture on the whole picture.

Create X-MEN movie poster in Adobe Photoshop CS4

Make mouse click on the same layer on Add a Mask selection from the bottom part of the layers?panel and select a standard brush of black color to clean out the whole zone, except the right lowest corner.

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Next we抣l represent several rays the same way we did earlier. Create a new layer where we抣l apply the standard brush. Firstly we need to draw a spot of a big diameter, colored with #728359.

Create X-MEN movie poster in Adobe Photoshop CS4

Reducing the brush抯 diameter, insert a highlight of white color on the central part.

Create X-MEN movie poster in Adobe Photoshop CS4

X-MEN movie poster - part 3
Apply the same method we did with the spot cutting.

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Using the Free Transform option, press horizontally and stretch out by vertical side the element. Place it the same way demonstrated below:

Create X-MEN movie poster in Adobe Photoshop CS4

Using the same method and a brush of white color, try to make several more rays.

Create X-MEN movie poster in Adobe Photoshop CS4

We抣l represent two more rays, one of them processed with a blue brush. The other one should be of yellow color with a big white inside highlight. The blue ray should be placed on the right side and the yellow one turned over and situated close to the earlier made one.

Create X-MEN movie poster in Adobe Photoshop CS4

Make two copies of the white ray. Select after that the Free Transform option to enlarge the size, placing one copy as below:

Create X-MEN movie poster in Adobe Photoshop CS4

Turn around one more copy and place it near the earlier placed ray. Choose then the layer抯 option Lock Transparent Pixel and a standard brush (Opacity of 40%) to paint the ray with the next colors ?dark-blue, green and orange ones as it is pictured below:

Create X-MEN movie poster in Adobe Photoshop CS4

Insert the text we need to have on the picture now:

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Make a copy of the layer having the text on it. Make a right click on the Convert to Shape option, on the layer situated lower. Get back to the top text抯 layer and choose for it the next demonstrated parameters: Blending Options>Inner Glow

Create X-MEN movie poster in Adobe Photoshop CS4

Blending Options>Gradient Overlay

Create X-MEN movie poster in Adobe Photoshop CS4

Gradient抯 parameters:

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Continue with the changed text抯 layer situated lower. Select here the Convert Point Tool to stretch out the tops in a way for the layer to come out lower than the top text抯 layer:

Create X-MEN movie poster in Adobe Photoshop CS4

Create a new layer above the converted text抯 layer. Here we抣l need the standard brush of gray color to represent several shadows that will be useful for creating the impression of volume.

Create X-MEN movie poster in Adobe Photoshop CS4

Press Alt button while clicking between the converted text抯 layer and the brush抯 layer (on the layers?panel).

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

Make a copy of the layer containing the brushes; press Alt button and click between the layers, applying on this copy - layer the parameter from here - Blending mode-Vivid Light

Create X-MEN movie poster in Adobe Photoshop CS4

Create X-MEN movie poster in Adobe Photoshop CS4

The final result!

View full size here.
 
2009-06-27 12:05

应客户要求,因为一个空间绑定多个域名,但是想知道客户是访问哪个域名下单的,所以取得当前的域名。

Request.ServerVariables("SERVER_NAME")    '取得当前的域名,格式为www.k0513.com

但是前面的www.是不需要的要却掉,那么用mid函数。从左边第五个开始取。那么完整的代码就下面这个了。

<%=Mid(Request.ServerVariables("SERVER_NAME"),5)%>

补点小知识:

Mid 函数
从字符串中返回指定数目的字符。

Mid(string, start[, length])

参数
string
字符串表达式,从中返回字符。如果 string 包含 Null,则返回 Null。

Start   string 中被提取的字符部分的开始位置。如果 start 超过了 string 中字符的数目,Mid 将返回零长度字符串 ("")。

Length   要返回的字符数。如果省略或 length 超过文本的字符数(包括 start 处的字符),将返回字符串中从 start 到字符串结束的所有字符。

说明:
要判断 string 中字符的数目,可使用 Len 函数。

下面的示例利用 Mid 函数返回字符串中从第四个字符开始的六个字符:

Dim MyVar
MyVar = Mid("VB脚本is fun!", 4, 6) 'MyVar 包含 "Script"。
注意   MidB 函数与包含在字符串中的字节数据一起使用。其参数不是指定字符数,而是字节数。

------------------------------

Left 函数
返回指定数目的从字符串的左边算起的字符。

Left(string, length)

参数
string  
字符串表达式,其最左边的字符被返回。如果 string 参数中包含 Null,则返回 Null。

Length    数值表达式,指明要返回的字符数目。如果是 0,返回零长度字符串 ("");如果大于或等于 string 参数中的字符总数,则返回整个字符串。

说明
可使用 Len 函数确定 string 参数中的字符数目。

下面的示例利用Left 函数返回MyString 的左边三个字母:

Dim MyString, LeftString
MyString = "VBSCript"
LeftString = Left(MyString, 3) 'LeftString 包含 "VBS"。
注意 LeftB 函数与包含在字符串中字节数据一起使用。length 不是指定返回的字符串数,而是字节数。

------------------------------

Right 函数
从字符串右边返回指定数目的字符。

Right(string, length)

参数
string  
字符串表达式,其最右边的字符被返回。如果 string 参数中包含 Null,则返回 Null。

Length   数值表达式,指明要返回的字符数目。如果为 0,返回零长度字符串;如果此数大于或等于 string 参数中的所有字符数目,则返回整个字符串。

说明
要确定 string 参数中的字符数目,使用 Len 函数。

下面的示例利用 Right 函数从字符串右边返回指定数目的字符:

Dim AnyString, MyStr
AnyString = "Hello World"      '定义字符串。
MyStr = Right(AnyString, 1)    '返回 "d"。
MyStr = Right(AnyString, 6)    ' 返回 " World"。
MyStr = Right(AnyString, 20)   ' 返回 "Hello World"。
注意 RightB 函数用于字符串中的字节数据,length 参数指定返回的是字节数目,而不是字符数目。

··································

用js获取域名:

<script>
thisTLoc = top.location.href;
thisPLoc = parent.document.location;
thisTHost = top.location.hostname;
thisHost = location.hostname;
strwrite = ""
strwrite += ""
strwrite += ""
strwrite += "" + thisHost + ""
document.write( strwrite );
</script>

 
2009-06-24 09:08
 
2009-06-24 09:04
In this tutorial I will show you how to create another premium wordpress layout with a special area where you can feature your e-book or your digital downloads. If you have something to sell and if you want to make the most of your wordpress blog then a good looking layout with a web 2.0 look it is the right choice to make some good money.

Preview full size layout

Apply for VIP to download this PSD layout

This wordpress layout I will start by opening a new document in Photoshop with the following sizes: 950 pixels wide and a value greater than 900 for the size of height. For the background color I will use: #f4f2e9
I am choosing always the width of 950 or 960 because most of the website will look very good on almost all monitors resolutions.

With Rectangle Tool I will create some shapes like in the following image.

126

On the left side I will create 3 shapes with Rounded Rectangle Tool. Please click on the image to see better the result

220

I will create another two lines at the bottom of the layout, and at the end

317

415

For this whit shape I will add a simple layer style.

57

This is the result.

67

I will create a layer on top of all layers, and with Brush Tool, I will add a single point on my document.

77

Then I will change the blending mode for this layer to overlay.

88

I will download a set of icons I have released for VIP members a few weeks ago: Download vector icons

I will open the eps file in Photoshop, then I will cut each of the icons, and I will place on my layout

97

Over this area I will place some software boxes with some VIP downloads

107

Right under the layers with 3d Software boxes I will place another black shape with Ellipse Tool

1110

With this layer selected in your layer palette, please go to Filter > Blur > Gaussian Blur, and use the following settings

127

This is my result so far

136

Did you notice the spot where I placed the 3d Software boxes? This spot is very good because it will bring you more sales. The products are much closed to the logo, and it will be more visible. Now I will write some text for the logo.

146

For this logo text I will use the following layer styles.

156

166

177

This is how my final logo will look like.

184

On the right side of the layout I will write some text for my navigation bar.

195

With Rectangle Tool I will create a square shape, and then I will rotate until I will have the following result.

205

With Move Tool I will place the square shape until I will combine the button and this shape.

2110

I will select Horizontal Type Tool, and I will write the text for this layout. Click on the following image to see the full size of my wordpress design.

224

I will select one more time Horizontal Type Tool, and I will write some dots “… ”

234

I will create a new layer (press CTRL+SHIFT+ALT+N), and I will zoom this document to 1200 %. I will grab Pencil Tool, and with a 1 pixel brush I will create a button.

244

I will duplicate this layer with the button several times, and I will place it like in the following image. I you can see also that I have some banners on the left side. There are the same banners we have live right now on Grafpedia.
Click on the image to see the real size.

254

On the top of the layout I will add a search box, and an rss icon.

264

On the bottom of the layout I will write one more time Grafpedia, and behind the layer with the text I will create a dark shape.

273

This is my final premium wordpress layout.

282

If you want to download this layered PSD layout together with our premium downloads please apply for a VIP account. Applying for a VIP account will allow you to download ALL resources from Grafpedia + all the upcoming releases for the period of time you choose to subscribe. The payment is on time fee, and you will not be charged automatically when the subscription is over.

 
2009-06-24 09:02

Welcome to tutorial 209, in this tutorial we’ll be creating a dark layout with some nice unique styling. We’ll also be making our very own custom patterns to go with the layout.

Lets get started, create a new document 950 x 1065 pixels.

Step1

Fill your background layer with the color black, then create a new document 10 pixels by 10 pixels. Select the color black with the pencil tool, with a 1 pixel size brush create something like this.

Step2

Once you have the same as the image above goto “edit > define pattern” label the pattern any thing you want. Go back to your orginal canvas and with the rectangular marquee tool make a selection at the top of your canvas, the selection should be the width of your canvas and about 170 pixels in height.

Step3

Once you’ve made the selection select the paint bucket tool, change the options in the panel at the top from “foreground” to pattern, then click the little arrow and select your pattern.

Step4

Fill your selection with the pattern, at first you won’t see nothing as the pattern is in black. When your not doing this tutorial and you want to use the pattern you’ll need to add a color overlay. But for this tutorial add the layer styles below.

Step5

You should have something like this.

Step6

Add a layer mask to your pattern layer, then select the gradient tool with a reflected gradient. Set your foreground color to white and background to black starting from the middle of your rectangle drag the reflected gradient to the edge of the canvas.

Step7

Select the type tool and add your website title and slogan. You should have something like this.

Step8

The settings i used for my website title text are shown below.

Step9

Using the rectangular marquee tool make a selection at the very top of your header area. The selection should span across the whole canvas and be about 12 pixels in height.

Step10

Fill your selection with any color then add these layer styles.

Step11

Step12

Step13

Still with the rectangular marquee create a small rectangle on the right side of the header.

Step14

Fill the selection with the color black then add this layer style.

Step15

Next to the rectangle add a small square the same height as the rectangle you just created, fill the square with any color than add these layer styles.

Step16

Step13

Your dummy search form should now be complete, label your search form and button. You should have something like this.

Step17

Were now going to make the navigation bar, select the rectangular marquee tool and create a selection underneath the your patterned header.

Step18

Fill the selection with any color than add these layer styles.

Step19

Step20

Step21

Once you’ve added the layer styles select your desired cutting tool and cutaway 50 pixels off both ends of the navigation, you should have something like this.

Step22

On a new layer above your navigation fill in the gaps on either side where the drop shadow is missing.

Step23

Once you’ve fill both ends of the navigation create two rectangles where you deleted it from the navigation. Make the first rectangle the same height of the navigation (not including the drop shadow), create the other rectangle the same height as the drop shadow. The first rectangle should be in the color #333333 and the 2nd in the color #1b1b1b. You should have something like this.

Step24

Repeat the steps above for both sides of the navigation bar. Now label your navigation bar with some dummy links.

Step25

Inbetween each navigation link add a seperator using two 1 pixel lines next to each other. Either use the rectangular marquee tool or pen tool to create the seperators.

Step26

You should have something like this.

Step27

For this next part we need to make another custom pattern, create a new document 4 pixels by 4 pixels, using the color black and a 1 pixel brush size, create the image below.

Step28

Goto “edit > define pattern” then save it as what ever you want. Make a selection underneath your navigation bar using the rectangular marquee tool, select all the rest of the canvas, then fill the selection with your new pattern. Add a layer mask to your pattern then drag a radial gradient from the middle underneath the navigation, to the end of the canvas. Make sure your foreground is set to white and background set to black.

Step29

Once the radial gradient has been added you should have something like this.

Step30

Select the elliptical marquee tool and create a small circle on the left side of your canvas, inline with all your other elements.

Step31

Add these layer styles to your ellipse so it matches the image above.

Step32

Inside the ellipse add a arrow pointing to the left. Once you’ve added your arrow duplicate both layers then flip the layers horizontally by going to “edit > transform > flip horizontal”. Place the duplicated layers on the right side of the canvas inline with the orginal.

Step33

Using the rounded rectangle tool with a radius of 15 pixels draw out a rectangle. Goto “edit > free transform” and rotate the rounded rectangle slightly either left or right.

Step34

The rectangle has had a 3 pixel stroke added, with a subtle gradient overlay. We now need to duplicate the layer and rotate it again in the opposite direction you rotated the first rectangle. Inside the rectangle thats ontop add a “featured image”, next to the image/rectangles add a simple paragraph.

Step35

Still with the rounded rectangle create two more rectangles underneath your featured area, these rectangles are for our sidebar and main content. Fill the rectangles with the color #0a0a0a then add a 1 pixel stroke using the color #181818.

Step36

Inside the rectangles add your dummy content.

Step37

Finally duplicate your navigation bar and the left and right navigation ends. Drag them to the bottom of the canvas and add your footer information.

Step38

Only completion of the footer you should have yourself a nice template, here’s my result.

Finished Result

Hope you enjoyed this tutorial, next time we’ll be converting this template into a 1 page css template. Dont forget to subscribe via our rss feeds and twitter. Your help and support is much appreciated.

 
2009-06-20 14:49

1,将水印复制一份

2,将复制后水印层的图层模式设置为线性减淡

3,CTRL+i反相颜色(最重要的步骤)

4,将此图层移动到水印区域覆盖即可

5,多个水印的话 重复此步骤!

简单实用的方法。

 
2009-06-20 14:46

上次我介绍了 在Photoshop加强网页设计中的细节,很多朋友都觉得讲的不够多,并且一些朋友很想了解如何在Photoshop制作一些文字的特别效果(还有一位朋友问我在photoshop如何生成艺术字,这在Word才有).

其实在现在的网页设计中,比较常用的文字效果并不多,实现的方法也很简单.所以接下来的内容我希望能对网页设计中的新手有所帮助.

我这篇教程将围绕2个关键字:“渐变”,“阴影”.

1.更有质感的字

我们先看图片里这个LOGO,它显得更有质感,文字有一张向外伸展,不会死板地贴在网页上.如果你仔细观察,你会很容易发现文字的brightkite都使用了色彩“渐变”.是的,文字的颜色都不是单色填充,而是“渐变”.”渐变”为什么看起来更有质感呢?这是因为这里模拟了大自然光照中的效果,即高光部分在文字的上方,而低光在下.同时也不要忽略了另一个细节,就是文字的“阴影”,.

那到底要怎么做呢?

   

留意图中的2跟3,如果你还不懂如何添加渐变.请在图层面板中双击”图层名”右边的空白处,或是点击下图中的第2个按钮(在图层面板下方)打开样式面板.

“渐变叠加”,然后按下图设置.渐变的颜色选择2个同色系但是有”深浅对比”的颜色.例如例子中,一个浅绿跟深绿.这样才能模拟光照效果.

好了,剩下阴影.还是一样在样式面板左侧点”投影”,然后按下图设置:

   

再看其他使用了这个方法的网站设计:

   

[Page: ]


2.凹陷的字

照例我们看一个例子:

ALEX BUGA网站 的LOGO,我觉得是凹陷字体的典范.而这样的字体效果很明显有一种凹陷在背景里的感觉,甚至文字像是刻在石头上一般. 如果你已经完成了第一个文字效果,那么接下来的内容对你是相当简单的.

   

1.首先输入文字,颜色填充为较背景更深的颜色,例子中为#4e3400

2.添加”内阴影”样式,设置如下图:

   

3.添加”斜面和浮雕”样式,设置如下:

作品完成. 该效果需注意:

  1. 字体颜色选择与背景色要搭配
  2. 第2部的内阴影设置时,”大小”与”距离”可以根据你的文字大小来调整
  3. 添加内斜面只为增强白色的光照效果,可以选择不加

接下来看一些使用”凹陷”效果的网站设计:

      

额外赠送

在这里推荐一个 下载英文字体很好的网站 , 而且是全免费的: www.dafont.com.

同时也在最后说明一下,虽然字体的效果可以有很多种,但是也要注意使用的场合,不是什么地方,什么类型的网站都适合我上面介绍的方法.有时候就是不加修饰的字体,也可以做出很好的效果.

[Page: ]

 
2009-06-01 12:52


我最喜欢的设计书籍之一就是《Robin Williams Design Workshop》.它深入实际的设计理论,并且包含许多极棒的设计实例。其中一个值得关注的地方就是4项主要的设计原则,它们已经在设计中为我所用。这4项原则就是:反差, 重复, 排列, 和分类。

本文将讨论这4项与web设计相关的原则。只要在脑海中牢牢记住了这4项原则,你就一定可以设计出更加整洁漂亮的网页。

1.反差效果

好的反差效果设计可以给用户一个极好的第一印象。如果用户的眼睛没有焦点,注意力就会在处处是相同尺寸的元素和排版界面中迷失。设计师需要设计出很明显的突出视觉元素来引导用户的体验。你可以通过选择图片、颜色和字体等来形成良好的反差效果。

图片反差

当需要在很多小元素后面展示一个大尺寸的插图时,这种方法很有效。嗯,我的意思就是,比如:

The Invoice Machine

这个网页利用一张大图片来吸引用户的注意。而同时网页很自然的单色又让很少的蓝色应用有了更好的效果。

        Instabox

当你眼睛看到这个页面的时候,首先你会注意到什么?最有可能的就是盒子上面的那个星星了。跟 The Invoice Machine 一样,它们都是通过用一张大图片和很少的颜色来制造一个视觉焦点。

颜色反差

恰到好处地使用少量颜色,是网页中另一种制造视觉反差的有效方法。可以在网页的头部和文本拷贝中使用不同的颜色,也可以在一张图片或插图的颜色里面应用。

Fatburgr

这个网站是极出色的一个所有设计原则的应用实例。关于颜色反差我们来看看它大大的黄色头部和小小的淡灰文字。排列、图片反差、重复和分类这几个原则做得都很彻底。

I Love Typography

一个用来展示排版的网站如果在它自己的页首就为我们展示了一个极好的排版效果,那让人觉得多惊奇啊!我喜欢他们所用的字体,也喜欢他们良好的青色和深灰色搭配。

字体反差

如果你想通过字体来产生反差效果,就应该避免使用2个很相像的字体外观和大小。很相像的字体会造成混淆,并让设计变得模糊。不过把字体大小弄得很不一样就会非常有效果,或者是把字体最细和最粗的版本拼合到一起也同样有效。同样的,如果你将两种外形差别明显的两种字体排在一块,就会对它们带来的视觉冲击效果感到惊奇。把一个 san serif 字体和一个手写字体放在一起就是一个例子。

Fixie Consulting

哇噻,我真的非常喜欢这个网站上使用的排版和颜色。注意看他们标语的大小和笔画。页面上洒水效果和少量蓝色的使用,都让我非常欣赏。

2.重复原则

跟web设计相比,重复原则在书本设计中应用得更加普遍,不过它在两者之间都是一样有效的。重复的设计元素可以使页面显得很连贯,还能提升品牌。在web设计中,可以很好地达到这个目的的一个方式是在网页的头部和脚部重复放元素。看看下面这些例子吧。

Ten24 Media

Ten24 Media 在头部和脚部都使用了很有创意的插画。

Silverback

这个网站绝对是超赞的!我绝对可以在前面“反差原则”部分就可以把它作为一个好例子亮出来的,可它在“重复原则”部分也是一个好例子,因为它的界面风格和品牌部分都很明显地应用了这个原则。仔细看它用香蕉来当做列表前面的图标,还有头部、脚部的森林插画。

3.排列原则

你的网站外观设计得很业余还是很专业,排列原则在其中扮演了一个很复杂的角色。最近我很主张在设计网页时使用格栏。这么做可以让你的设计很干净,也可以提供一个很好的设计框架。如果你有兴趣想学习更多关于格栏设计的知识,去看看我最近的文章吧(在这王婆卖瓜,自卖自夸一下),Design A Fresh Blog Theme On The 960 Grid.

Black Estate Vineyard

这个网站在960 Grid website上有展示。它的版面排列很连贯也很引人注目。我很欣赏它将主要内容整齐地排在左边的做法,尽管有些大级别的头部破坏了这个规则并排到了左侧边栏里面。对留空的大量使用和字体反差大小的使用都非常不错。

A List Apart

A List Apart中使用的可视格栏非常有特色。里面的栏目设计良好,把所有包含内容都变得易于阅读。研究表明过宽的栏目会造成严重的阅读困难。在跟随那么宽的栏目中的文字时,你的眼睛会变得很累。

4.分类原则

最后一个原则是分类。只有在将相关元素分组,将无关元素分开的时候才会用到这个原则。假如你将所有东西都分到同一块文本块中,绝对会摧毁用户的体验。这就是为什么使用头部标签和适当的留空是那么的重要。

Envato

这个网站漂亮地将内容规整地组织到三个主要分类下,这些内容的定义既清晰又规整。

Paradigm Reborn

这个网站结构良好。头部既整洁又简单明了。空白留的很好,内容分开放得很有逻辑。

最终思想

当你脑中时刻惦记着这4个基本原则时,你会发现你的设计有了不可思议的改进。当然肯定还有许许多多别的东西也需要考虑,但是以反差、重复、排列和分类作为基础你的设计会取得长足进步。

 
2009-05-07 11:15
我最终的比较完美的方案则是,全部采用“匿名访问”,确保所有的页面都能访问

而没有密码输入框,同时,将“匿名访问”的帐户替换掉,不使用“IUSR_计算机名”帐户

,而是使用我的XP管理员登录帐号。

打开管理工具的INTERNET信息服务,在“默认站点”上右键,弹出菜单选择“属性”,打开面板

,选择“目录安全”进行:

1,“编辑”
2,“浏览”用户
3,“高级”
4,“查询”用户
5,“选择”本机XP登录用户名
6,“确定”,一直“确定”到最后
另外,在更新的时候有一点很重要,就是要选择“继承覆盖”两个文件“iisstart.asp”

和“localstart.asp”,否则就需要单独把这两个文件的“匿名访问”重新加上,加上的

帐号为刚才设置的XP登录帐号。
 
2009-04-25 17:02
 突然想到写这个话题,是基于最近在设计产品界面时,年糕一直在给我们灌输设计的品牌概念以及文化内涵要求而产生的,因之前在界面设计中也遇到一些困惑,刚好看到一篇关于跨文化的产品设计模型的文章,于是就这个话题简单展开自己的一些看法,放出来跟大家探讨分享下。
  “这个设计线条很流畅,质感很新颖”
  “你的设计很有感觉,赞~”
  “这个界面风格很独特,有很设计韵味”
  ……
  设计师经常在设计完一个界面总会收到很多用户的反馈意见,其实在用户的评价中我们也可以一窥我们的设计是否达到我们理想的效果,要对这个话题进行展开,我们先从设计的文化延伸来探讨下,看看设计的文化层次模型是什么杨,目前大家比较认可的设计的文化延伸一般通过三个结构层次表现出来,具体如下一个简要的模型(图1):

图1文化结构层次模型

  简单对这个模型阐述下:
  一是文化的表层结构,主要由产品界面本身设计的外观要素来体现,一般主要表现在色彩、质感、造型、线条、表面纹饰、细节处理等元素。在外观视觉优先传达出可视的界面就是我们所谓的文化表层的结构。
  二是文化中层结构,一般表现出具有较强时代性和连续性,主要通过用户的一些行为习惯、艺术宗教、生活风俗及历史传统、社会组织和制度文明等人文因素体现出来。这一层面具有相对稳定的艺术表现手段,也是我们在设计界面时经常去捕捉文化表层元素的一个参考要素,当表层的文化蕴涵够味的时候,就是开始向具有时代和连续性的文化行为靠近。
  三是文化的深层结构。因意识形态、文化修养及审美心理来展示界面的魅力,它反映的是个人精神上的文化价值观念,要求设计内容和形式的变化能使人的心理产生快感,引起共鸣。当然我理解这里的文化不仅仅是传统或古典文化,而是产品设计理念文化的外延传播,这也是目前文化设计的最高层次的设计,也是众多设计师一直追求的目标,他的设计基于文化的同时在创造一些新的文化传播,让用户追随他的设计的同时还在期待他给予用户的惊奇感和期待,从而达到心灵上的共鸣。这个不得不说起Apple的设计,Apple的设计可以说是目前设计行业的一个方向标,他在设计内涵以及文化价值观以及审美观上的传播都是行业以及用户广为流传的,从自己的意识形态文化修养以及审美倾向开始牢牢抓住用户的心理。设计给予用户极大的愉悦以及期待感,不得不说是Apple设计的奇迹。当然就我个人理解到达深层的文化内涵,更多你看你什么是把文化理念阐述清楚,清晰传播出来。
  说完这些,我们来审阅下我们的设计是处于什么层次,事实很遗憾我们发现我们基本还是处在一些外在有形为的文化表层阶段,即使有那么一点文化韵味也只是引进一些行为元素而已,那如何让我们的设计能提升到一个比较高的层次,仅仅去融合一些民族元素,设计出一些文绉绉的设计?这个在上次的GUIC大赛也尝试过,单纯的元素应用并不能把你的设计提升到你理想的地位,这个实例可以从我之前参加的GUIC大赛的作品中深有体会。这套茶系列的icon,原本理想当然是希望通过图标的元素去传达中国茶文化的概念,于是我单单融合了一些茶相关的元素,事实上我们可见,这样的设计,最终出来并不能让你感觉到作品文化韵味有所提升,而只是在表层上让你联想到产品的元素而已,从属来说并没有达到一个较高的文化传播层次来,这也是这次参赛的遗憾,当然等后续可能再操刀设计这个话题,希望再有作品传达出来是文化,而不是茶壶。
  通过在设计中使用本地因素而在国内或国际市场上创造产品个性,设计师已经注意到了让产品同文化因素相关联从而提高产品价值的重要性。那么写到这里,我们有理由困惑,如何能使我们的作品有个较大的提升,但是事实上对于一些成熟产品,要融入文化元素而让产品散发新的活力那是很难的,很多设计师也很难去协调如何在保持产品现有体验以及新的文化韵味上去寻找一个支点让产品的档次提升一个新的高度,文化的精神总是通过符号的形式加以体现,符号靠人来创造,用于传达自然和社会中的种种现象。从生活中以及文化韵味中提取元素,从精神上与用户达成一个共鸣,也许可以让我们的作品重新绽放光彩。例如,雕塑,陶瓷,服装服饰等,让人让人体味到古香古色的中国文化,也就是说确切的文化符号可以影响人们的情绪,诱发人们产生各种妙不可言的情感并能轻易打动用户的心理,引起用户心理底层上共鸣,从而认同你的设计。
  说到这里不得不说小喇叭的设计Lineless Design以及骑士的玛雅之风,这套Lineless Design图标无论从图标本身的造型,以及小喇叭所传播的一些理念引起众多用户产生共鸣,骑士的玛雅文化之花也让我们回味了玛雅的文明,传达了一个别味的文化韵味,这样我认为设计就达到一个更高层次的水平,从而提升本身设计的文化内涵。


  也是很浅地就自己对设计文化内涵的一些思考以及想法,还没来得及深入研究,如何能较好的搭建一个通往高层次文化设计的模型和流程,目前在产品设计领域已经相关比较成熟,相信从这里也许我们可以为界面或其他相关设计找到一些启发,感兴趣的可以到uiGarden 里面去看下,那里还有一个案例(图2):

图2 产品案例跨文化设计的流程
  最后基于产品设计的流程,我再想是否我们界面设计上也能采用这种方式,不防对整个流程结合我们自己的特点进行优化,构想是:
  1.首先也是概念模型的思考,对要表达的文化风格进行提取元素,在与产品不断磨合碰撞中寻找产品共鸣的要素以及闪光点,定下概念设计方向以及定位。
  2.通过收集相关文化物品以及外延的产品,对元素进行抽象的诠释以及表达,最终对文化的要素概念化以及真正融入产品中成为产品一部分。
  3.在设计流程上,通过交互的创新,结合文化闪光要素得到有机的结合,然后通过品牌的策划对整个设计进行更高的诠释以及表达,最终输出作品。
 
     
 
 
个人档案
 
 daweisam
男, 24岁
广东 深圳 
加为好友
 
   
 
文章分类
 
 
 
 
 
As(4)
 
 
技巧(28)
 
Web(45)
 
 
Css(3)
 
Seo(1)
 
Js(1)
 
     
 
最新评论
 
文章评论|照片评论


哇塞~太感谢了~
 

[表情]
 

这个要搜藏
 

你确定自己认真读过这篇文章了? 阅读页面依然这么宽 呵呵
 

好耶,解决问题
 
     
 
好友最新文章
 
     
 
最近访客
 
 

干的就是吹牛X

adxzsm

tongfeigood

meilixinqinggm

狐狸茄

lazy__bone

清水蝴蝶花

零度·幻
     
 
背景音乐
 
 
其它
 
已有人次访问本空间
 
订阅RSS  什么是RSS?

您也想拥有这样的空间?请点此申请。
     


©2009 Baidu