Page: Previous  1, 2

BBTD
Status: New User - Welcome
Joined: 30 May 2005
Posts: 2
Back to top
Posted: May 30, 05, 10:25    
I've noticed that the nifty corners do not work on empty elements that have the height-property specified, like in the following:

<style type="text/css">
div#d1 { width: 120px; height: 150px; top: 100px; left: 100px; background: #9DD4FF; }
</style>
<script type="text/javascript">
window.onload=function(){
if(!NiftyCheck())
return;
Rounded("div#d1","all","#FFF","#9DD4FF","transparent");
}
</script>

<body>
<div id="d1"></div>
</body>

Is there a way to solve this problem?
BBTD
Status: New User - Welcome
Joined: 30 May 2005
Posts: 2
Back to top
Posted: May 31, 05, 5:14    
The following additions solved the problem:

div#d2 {
border: 0px; height: 100%; width: 100%;
}

and:

<body>
<div id="d1">
<div id="d2"></div>
</div>
</body>
mike
Status: Contributor
Joined: 08 Oct 2004
Posts: 71
Back to top
Posted: Jun 13, 05, 7:59    
:: MatthewHSE wrote ::
Only one question; is there any way to fix it so the inline window load bit isn't necessary? I've seen ways to modify scripts that require that to get everything into the external file, but I'm not good enough with JavaScript to figure it out.


I dunno if it's the new modified script or what but i just put it into it's own js file and load it as the last thing in the heaqd and it works. if you want pm me and i'll hit you back with a working example.
masey
Status: New User - Welcome
Joined: 21 Dec 2005
Posts: 1
Back to top
Posted: Dec 21, 05, 2:45    
Does anyone else get a script error when running the 'more nifty corners' script in IE?

For some reason, on my site I get the following error:


:: Code ::
Line: 89
Char: 1
Error: Invalid property value
Code: 0

Which relates to this line:

89 for(i=1;i<=lim;i++){
mike
Status: Contributor
Joined: 08 Oct 2004
Posts: 71
Back to top
Posted: Apr 4, 06, 15:03    check out new version
much cleaner. they really worked out any problems...

Nifty Cube
p_uk
Status: New User - Welcome
Joined: 06 Aug 2006
Posts: 1
Back to top
Posted: Aug 6, 06, 11:08    I have the same problem
:: masey wrote ::
Does anyone else get a script error when running the 'more nifty corners' script in IE?


I get exactly the same problem using Nifty Cube (see the page here: new user link).

The page renders fine in Firefox but gives an error under IE. I get the same error message but a different line number (125). Also, if you look closely, the page does seem to adjust as if some of the script is working.
Display posts from previous:   
Page: Previous  1, 2
All times are GMT - 8 Hours