最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to implement something like www.igoogle.com? - Stack Overflow

programmeradmin1浏览0评论

The main problem is:

How do they deal with the intersection of two blocks?

EDIT

Javascript is one thing,the other thing is:

how do they remember the position of each block?

The main problem is:

How do they deal with the intersection of two blocks?

EDIT

Javascript is one thing,the other thing is:

how do they remember the position of each block?

Share Improve this question edited Dec 9, 2009 at 7:42 user198729 asked Dec 9, 2009 at 7:07 user198729user198729 63.8k109 gold badges255 silver badges352 bronze badges
Add a ment  | 

6 Answers 6

Reset to default 3

Here is the one solution:

Igoogle Interface

I assume when you say "blocks", you're asking about the dragging/dropping functionality of the various little widgets on that page.

This is acplished via Javascript, and there are many implementations out there for dragging and dropping. Jquery is an extremely popular Javascript library, and you can get JQuery UI with it that has the Droppable interaction.

Googling will find you many others if you search using "dragging" and "dropping".

an amazing solution that I once used: http://net.tutsplus./tutorials/javascript-ajax/inettuts/

It gets somewhat plicated. You're best off using one of the well-known JS frameworks available that can handle plex drag-n-drop. The ones I'm most familiar with are YUI and Ext JS, both of which can support the creation of portal-style pages. I'm sure that Dojo and others do as well. Even if you want to implement it on your own, I'd still look at those implementations for guidance on how they do drag and drop.

Ext JS also has a portal layout example that is a great starting point for this type of project. There are also some general examples of advanced drag-drop, as well as some tutorials that might be helpful. Again, I'm sure other frameworks have similar resources. Warning: if you are new to drag-drop, then creating a drag-drop portal page like this is not the easiest thing to dive into from scratch, but it's certainly doable.

http://www.codeplex./dropthings/

and demo: http://dropthings.omaralzabir./

http://www.webappers./2008/11/19/how-to-create-igoogle-interface-with-jquery/

THe link is not working. Please check.

发布评论

评论列表(0)

  1. 暂无评论