PHP/Javascript/Jquery - 动态网站图
我想要一个应用程序来显示我网站的所有外部链接并输出图表。例如 www.example.com/articles/some-title.html 链接到我的主页。
Home
- www.example.com/some-text
- www.another-site.com/my-title
- www.example.com/articles/some-title.html Products
Products
- www.buy-now.com/product-reviews/231/098989
- www.sales.com/432/title-page.html Categories
- www.ezinearticles.com/blah-blah-blah
类似于 SlickMap,但不在 CSS 上。
我在数据库上设置了一个表,因此这将是动态的,并且会出现更多链接。我正在使用 CakePHP 来解决这个问题。有什么想法/建议吗?
感谢您抽出时间。
I want to have an application that displays all of my website's external links and outputs a diagram. Like for example www.example.com/articles/some-title.html is linked to my homepage.
Home
- www.example.com/some-text
- www.another-site.com/my-title
- www.example.com/articles/some-title.html Products
Products
- www.buy-now.com/product-reviews/231/098989
- www.sales.com/432/title-page.html Categories
- www.ezinearticles.com/blah-blah-blah
Something like SlickMap, but not on CSS.
I have setup a table on my DB so this will be dynamic and more links to come. I'm using CakePHP in working on this. Any ideas/suggestions?
Thanks for your time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你可以看到slickmap,是一个站点图的css实现
http://astuteo.com/slickmap/
You can see slickmap, is a css implementation for site diagrams
http://astuteo.com/slickmap/
您可以使用PHP从数据库检索结果,并且可以使用jQuery的treeView 显示它们。
另外,raphaël.js 可能会引起兴趣,尤其是它的diagram 插件,它是完全可定制的,应该值得一看。
You can use PHP to retrieve the results from the database and you can use jQuery's treeView to display them.
Also, raphaël.js might be of interest, especially its diagram plugin, its fully customizable and should be something to check out.
如果我理解正确的话,您想要解析整个网站的内容(HTML、JS 等),并创建一个包含所有链接以及可以找到它们的页面的数组在。如果这是正确的,这段代码将完成工作:
If I am understanding you correctly, you want to parse the contents of an entire web site (HTML, JS, etc...), and create an array that contains all of your links, as well as the pages that they can be found on. If that is correct, this code will get the job done: