English 中文(简体)
Text字圈周围的案文
原标题:Text around circle with Javascript

我在Stackoverflow周围搜寻了同一问题,但像我的问题一样,所有问题都列入Xcode(iPhone)。 我用 Java语说话,但我可以说出我如何解决这一问题。

我在RaphaelJS上制造了饥饿。 这种饥饿有可变的明显点,因此,它可能有8点,但也有9点或10点。 我的问题是,我想在这个严酷的圈子里发言。 如果饥).有8点,那么它有自己的字句(8字)。

我的问题在示意图中有所说明,因此也许我的问题澄清如下:

“Image”/

On this moment I m doing it with images, but that isn t flexible (in the future I would generate the star and the words by using a database). I have searched a lot. I found that any technic where this is possible, is SVG. But after many hours of trial and error, I haven t something that is similar as my image.

问题回答

你可以很容易地在特别学校中形成这种模式。 利用poly 创建星号及text textPath,以形成围绕星号的案文。

See this website for SVG examples. 尤其是,你希望研究:

我还建议查看SVG规格

在座标象上是我最后添加的(d oh),但时,是我用纯粹的 c子打的,基本想法是,你把全部案文放在干线的中心,然后单独从那里搬走。 我认为,用一些 j子和math子来扩大这一想法非常简单。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签