Page: Previous  1, 2

BBTD
Status: New User - Welcome
Joined: 30 May 2005
Posts: 2
Reply Quote
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?
Back to top
BBTD
Status: New User - Welcome
Joined: 30 May 2005
Posts: 2
Reply Quote
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>
Back to top
mike
Status: Contributor
Joined: 08 Oct 2004
Posts: 71
Reply Quote
:: 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.
Back to top
masey
Status: New User - Welcome
Joined: 21 Dec 2005
Posts: 1
Reply Quote
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++){

Back to top
check out new version
mike
Status: Contributor
Joined: 08 Oct 2004
Posts: 71
Reply Quote
much cleaner. they really worked out any problems...

Nifty Cube
Back to top
I have the same problem
p_uk
Status: New User - Welcome
Joined: 06 Aug 2006
Posts: 1
Reply Quote
:: 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.
Back to top
Display posts from previous:   
Page: Previous  1, 2
All times are GMT - 8 Hours