PDA

View Full Version : Multiple anchor virtual paginate



Kiggulak
05-06-2009, 01:28 AM
1) Script Title: Virtual Pagination

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/virtualpagination.htm

3) Describe problem:

I have virtual pagination up and running but now I am trying to swap page anchor text links so that one DIV has two possible names that can be swapped between on the fly. Similar to hide one and unhide the other via a visibility or toggle function call.



<body>
<div id="a" class="paginationstyle" style="width: 1033px; text-align: left display:block">
<div id="b" class="paginationstyle" style="width: 1033px; text-align: left display:none">

some button onclick=setVisibility(b, block);setVisibility(a, none)
</body>

function setVisibility(id, visibility) {
document.all[id].style.display = visibility;
}