문제

why input field necessary to run Raphael ? I have just build Raphael animation with another inspiring code. Customised code working well but unfortunately the code doesn't work without input field.

<input type="text" value="70" id="radius12">
<input type="text" value="#fff" id="color">

DEMO http://jsfiddle.net/V54hR/ does any body have any clue why it is necessary ?

도움이 되었습니까?

해결책

You have small typo in your code, Input field are not necessary for Raphael. When you give <input type="text" value="#fff" id="color"> this Raphael assumes color variable as your input field

colour = "#000",

change this code to

color = "#000",

Updated fiddle

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top