OL Learn

Move div absolute object to another page

I have div absolute object displaying in page 1 but I need to move it to another page based on certain condition to last or another page.

I tried this in Post Pagination script but not working

var queryFooter = query("#ERAFooter");
queryFooter.attr(“anchor”, “page_media_” + pageNo); // new page

Should that work or is there any other option?


How about putting it on all your MasterPages and then conditionally show it based on a condition?

The following should do the trick. Note that the page_media_n is zero based (i.e. page 1 = page_media_0)

var queryFooter = merge.context.query("#ERAFooter");
queryFooter.attr("anchor","page_media_" + pageNo ); // new page

Hope this helps,