PDA

View Full Version : Resolved Virtualpagination doesn't work on my localhost apache/FF3.6.12



leau2001
12-03-2010, 08:33 AM
Hi,

I tried the virtualpagination code on my localhost under apache.

Here the code i used :


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Dynamic Drive DHTML Scripts- Virtual Pagination script v2.1</title>

<script type="text/javascript" src="http://www.dynamicdrive.com/dynamicindex17/virtualpaginate.js">

/***********************************************
* Virtual Pagination script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>
<style type="text/css">

/*Sample CSS used for the Virtual Pagination Demos. Modify/ remove as desired*/

.paginationstyle{ /*Style for demo pagination divs*/
width: 250px;
text-align: center;
padding: 2px 0;
margin: 10px 0;
}

.paginationstyle select{ /*Style for demo pagination divs' select menu*/
border: 1px solid navy;
margin: 0 15px;
}

.paginationstyle a{ /*Pagination links style*/
padding: 0 5px;
text-decoration: none;
border: 1px solid black;
color: navy;
background-color: white;
}

.paginationstyle a:hover, .paginationstyle a.selected{
color: #000;
background-color: #FEE496;
}

.paginationstyle a.disabled, .paginationstyle a.disabled:hover{ /*Style for "disabled" previous or next link*/
background-color: white;
cursor: default;
color: #929292;
border-color: transparent;
}

.paginationstyle a.imglinks{ /*Pagination Image links style (class="imglinks") */
border: 0;
padding: 0;
}

.paginationstyle a.imglinks img{
vertical-align: bottom;
border: 0;
}

.paginationstyle a.imglinks a:hover{
background: none;
}

.paginationstyle .flatview a:hover, .paginationstyle .flatview a.selected{ /*Pagination div "flatview" links style*/
color: #000;
background-color: yellow;
}

</style>

</head>
<body>


<div id="listingpaginate" class="paginationstyle">
<a href="#" rel="previous" class="imglinks">
<img src="http://img293.imageshack.us/img293/8643/roundleftig4.gif" />
</a>
<select></select>
<a href="#" rel="next" class="imglinks">
<img src="http://img183.imageshack.us/img183/3816/roundrightat5.gif" />
</a>
</div>

<div style="width: 450px; border: 1px dashed gray; padding: 10px;">
<p class="virtualpage3 hidepiece">
<b>
<a href="#">RSS Display Boxes</a>
</b>
<span class="credits">Credits: Dynamic Drive</span>
<br>
Tme to get your RSS on! Using Ajax, this script makes it easy to display RSS feeds from other sites inside DIV containers, by communicating with a versatile PHP RSS parser called "Simplepie". Each RSS box can be independently tailored, from the RSS feed to fetch, how many items to show (and whether to paginate them), to what portions of each entry (just the "title", or "title" plus "description" etc) to display.
</p>
<p class="virtualpage3 hidepiece">
<b>
<a href="#">Interstitial Content Box</a>
</b>
<span class="credits">Credits: Dynamic Drive</span>
<br>
An interstitial is a container that appears over an entire webpage intermittingly to display content in an eye catching way. This is a Interstitial Box script that uses <b>Ajax</b> to fetch and display the contents of external pages on your server as an interstitial.
</p>
<p class="virtualpage3 hidepiece">
<b>
<a href="#">Omni Slide Menu</a>
</b>
<span class="credits">Credits: John Scheuer</span>
<br>
Omni Slide Menu is an super versatile slideout menu that reacts to the mouse hovering over and out of it. It can be positioned to the left, top, or right edge of the browser window, supports static positioning, plus multiple instances of the same menu on a page and more. Very cool.
</p>
<p class="virtualpage3 hidepiece">
<b>
<a href="#">Custom Cursor Script II (Crosshair mouse cursor)</a>
</b>
<span class="credits">Credits: Webtoolkit.info</span>
<br>
This script adds a custom cursor to your webpage using an interchangeable image. The result is a custom mouse cursor that can be modified in anyway your graphic skills take you. Elegant and non intrusive effect!
</p>
<p class="virtualpage3 hidepiece">
<b>
<a href="#">Drop Down Tab Menu</a>
</b>
<span class="credits">Credits: Dynamic Drive</span>
<br>
This is a lean CSS tab menu that supports a 2nd level drop down menu for any of its tabs. It supports subtle yet helpful features such as the ability to set a default selected tab, hide any element on the page (ie: a form field) when the menu drops down etc.
</p>
<p class="virtualpage3 hidepiece">
<b>
<a href="#">Featured Content Slider</a>
</b>
<span class="credits">Credits: Dynamic Drive</span>
<br>
Featured Content Slider makes a slideshow out of arbitrary content on your page, so users can manually select a content to see or have them rotated automatically. Pagination links let the user quickly pick a content to show. Each content is simply normal HTML wrapped in DIV tags for effortless integration.
</p>
</div>



<!-- Initialize Demo 3 -->
<script type="text/javascript">

var whatsnew=new virtualpaginate({
piececlass: "virtualpage3",
piececontainer: 'p', //Let script know you're using "p" tags as separator (instead of default "div")
pieces_per_page: 2,
defaultpage: 0,
persist: true
})

whatsnew.buildpagination(["listingpaginate"])

</script>


<hr style="margin-top: 35px; color: red" /><!--webbot bot="HTMLMarkup" endspan i-checksum="40262" --></p>

</script>
</body>
</html>

And nothing happen, i ve just all the p tag on my screen with not any pagination... whats wrong ?

Thw for help

lo

leau2001
12-03-2010, 08:41 AM
I solve my problem :

that was the location of virtualpagination.js