facebook status bar

匿名 (未验证) 提交于 2019-12-03 01:05:01

问题:

Anyone know a good tutorial of how to make the status bar found in the new facebook? the one on the bottom. looks really cool

i was thinking it was written in either ajax or jquery. but not sure.

回答1:

Here are some useful links/plugins that might help you:

Positioning the footer

Enable drag/drop of things (like applications)

Tooltip (when hover)

And for the interaction with the server (for new events etc.) you might use the AJAX functionality in jQuery:



回答2:

In order to have it always be in the bottom, that is more of CSS than javascript. I think you would get better answers if you were more specific. For example, I would want the answer to revolve around as to how the chatroom works on facebook. Is the javascript request being sent every second to check for new messages? or is there another protocol being used in order to have instant messages?



回答3:

It's not clear what your are looking for: bar's design or it's functionality. If your are speaking about design you should look into css positioning (absolute). If it's about functionality i suppose that there is some kind of ajax javascript which checks every x seconds if there is change of state, and if there is go deeper and find out what to load.



回答4:

Why not just download the Facebook source code and take a look at how they do it? They open sourced a lot of the stuff they use/created/enhanced.



回答5:

Soh Tanaka just put out a great step-by-step tutorial on how to re-create the Facebook Status Bar:



回答6:

Here's another good starting point: http://www.ben-griffiths.com/project/jquery-position-footer/. If I remember correctly it works in FF & IE & Safari



回答7:

I looked through the jQuery plugins, and Googled the topic for you. All I could find was this which isn't exactly what you want, but it is a good place to start. With some style changes, and a little tweaking it could easily look exactly like the Facebook bar.

Not sure that this is the type of answer you were looking for, but i've been looking for the same thing and this code seems to at least show how it's done.



文章来源: facebook status bar
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!