首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

Stripe it to get it rounded

整理日期:2007年08月19日 【字体:

 Rounded("div#header","transparent","#C3D9FF","small");
}

I' ve provided also two additional functions that you could find very useful: RoundedTop and RoundedBottom that receive the same parameters of the Rounded function and allow to get rounded corners just on the top or on the bottom of page elements, or all four corners but with upper ones that differ in color from the lower.

Now.. let's see some examples.
The examples

Now the fun part.. I did some examples to show the possibilities of Nifty Corners. For each example will be reported on this page just the javascript calls to Rounded, RoundedTop and RoundedBottom functions, but keep in mind that these calls should be included in the following code:
window.onload=function(){
if(!NiftyCheck())
 return;
/* here the calls to add Nifty Corners */
}

Now, let's begin!
Example one: a single div

This is the example we saw in the opening. The javascript call is:
Rounded("div#nifty","#377CB1","#9BD1FA");
Example two: 2 divs

In this example, two divs were rounded. The js calls are:
Rounded("div#content","#fff","#9DD4FF");
Rounded("div#nav","#fff","#E5FFC4");
Example three: small corners

In this example the heading has small rounded corners. The code:
Rounded("div#header","transparent","#C3D9FF","small");
Rounded("div#box","#FFF","#E4E7F2");
Example four: newsboxes

In this example we'll see how to make 2-colour newsboxes. The code is:
RoundedTop("div.news","#FFF","#91A7E3");
RoundedBottom("div.news","#FFF","#E0D6DF");
Example five: transparent, tabbed menu

伊图教程网[www.etoow.com]
http://www.etoow.com/html/2007-08/1187531277-1.html

Tags:
Stripe it to get it rounded
'http://www.etoow.com/html/2007-08/1187531277-1.html
1
2
 
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved