footmark general function, fix page context