【在KickApps支持的站点上移动模块】青春须早为,岂能长少年。这篇文章主要讲述在KickApps支持的站点上移动模块相关的知识,希望能为你提供帮助。
In this example below I am moving the "
recent blogs"
module in "
My Home"
to the very top. I have placed this code in the footer of my Affiliate Center wrapped in script tags.
For maximum efficiency:
1) Use the inspect tool in Firebug to find the main container you want to move (the element that'
s wrapping around the content you want to move).
2) Find the ID of the element you want to insert into, after, or before.
3) Write your code like below. Instead of using .insertBefore, you can use any of the options on this page under "
insert outside"
and "
insert inside"
: http://docs.jquery.com/Manipulation#bodyContent
4) Don'
t forget to wrap your code around an if statement to target the specific page(s) only so that your code doesn'
t run on your other KickApps pages.
--
For more tips and tricks checkout the <
a href=https://www.songbingjia.com/android/"
http://www.kickdeveloper.com/resources"
>
KickApps resources page<
/a>
.
- // move " blogs module" to top of page when on " My Home"
- if ( Ka.Info.PAGE === " pages/myPlace.jsp" ) {
- //move Most Recent Blog Posts to the top
- $j( '#ka_newBlog') .insertBefore( '#ka_getActive') ;
- }
推荐阅读
- 使用Twidroid&?039;的public intent从您自己的Android应用程序发送Twitter消息
- 为您的KickApps社区提供人造社区隐私
- KickApps:将类添加到“组”页上的“离开/加入”按钮。
- Nginx性能优化和安全性配置
- 使用Python,Twisted和Django通过Android手机控制笔记本电脑
- 有抱负的Google Glass开发者教程(构建你的第一个Glass应用)
- Mirror API教程(适用于Web开发人员的Google Glass)
- 开发移动Web应用程序(何时,为什么以及如何)
- iOS用户界面(故事板,NIB和自定义代码)