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 |
|||||
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 |
|||||
:: 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 |
|||||
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
|
|||||
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. Back to top |
|||||
All times are GMT - 8 Hours
|