Zen Cart Logo

Nifty Corners

Views: 998

Results 1 to 5 of 5
23 Nov 2011, 9:08 AM
#1
tcjay avatar

tcjay

Zen Follower

Join Date:
Jul 2010
Location:
Boston
Posts:
139
Plugin Contributions:
0

Nifty Corners

I am trying to use nifty corners without any luck and I am not sure where in the process I am going wrong. I have read the FAQ on java script as weel as the posts on the forum.

THis is what I have down.

/includes/templates/CUSTOM TEMPLTE/jscript/jscript_nifty.js
/includes/templates/CUSTOM TEMPLTE/css/stylesheet_niftyCorners.css
/includes/templates/CUSTOM TEMPLATE/jscript/on_load/jscript_on_load_nifty.js

Everything seems to be loading properly but the on_load. My understanding is that it should show up as part of the body tag. It does not.

This is jscript_on_load_nifty.js

window.onload=function(){
if(!NiftyCheck())
return;
RoundedTop("div#constantcontactsidebox.leftBoxContainer","#fff" "#2e2e2e");
RoundedBottom("div#constantcontactsidebox.leftBoxContainer","#fff","#2e2e2e");
}

This is the url http://www.tillitomas. com/catalog/

TIA Tom :cool:

23 Nov 2011, 2:57 PM
#2
mattk251285 avatar

mattk251285

New Zenner

Join Date:
Nov 2011
Posts:
38
Plugin Contributions:
0

Re: Nifty Corners

Hi

You can also try using the following css within a div,

-moz-border-radius: 10px; (for firefox)
border-radius: 10px; (other browsers)

Be aware of browser compatability. This puts a border around the div with curved edges.

23 Nov 2011, 3:30 PM
#3
tcjay avatar

tcjay

Zen Follower

Join Date:
Jul 2010
Location:
Boston
Posts:
139
Plugin Contributions:
0

Re: Nifty Corners

Thanks for the pointers but I was looking to use jscript.

23 Nov 2011, 4:32 PM
#4
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Nifty Corners

tcjay:

Thanks for the pointers but I was looking to use jscript.

Why? I used the use the nifty solution to, but it is far easier to do with css, an although it is not supported within older browser, there are also a lot of people who disable JavaScript. And the css solution is better for site speed

23 Nov 2011, 5:45 PM
#5
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Nifty Corners

mattk251285:

Hi

You can also try using the following css within a div,

-moz-border-radius: 10px; (for firefox)
border-radius: 10px; (other browsers)

Be aware of browser compatability. This puts a border around the div with curved edges.

This is an excellent solution, but incomplete. For full browser compatibility, including IE8, it would look like this:

-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
position: relative;
behavior: url(../includes/PIE.htc);

The PIE.htc will need to be installed and is what makes it work in IE8.