Title: Ajax Scroll
Author: Nick
Published: <strong>15 اپريل 2010</strong>
Last modified: 28 اپريل 2010

---

پلگ انس ڳولھيو

ھي پلگ ان **WordPress جي جديد 3 وڏين رليزز** سان آزمايو نه ويو آھي. اهو ٿي سگهي 
ٿو وڌيڪ برقرار يا سپورٽ نه ٿي سگهي ۽ ٿي سگهي ٿو مطابقت جا مسئلا جڏهن ورڈپریس جي 
وڌيڪ تازي ورزن سان استعمال ڪيو وڃي.

![](https://s.w.org/plugins/geopattern-icon/ajax-scroll.svg)

# Ajax Scroll

 کان: [Nick](https://profiles.wordpress.org/ncrawford/)

[ڊائون لوڊ ڪريو](https://downloads.wordpress.org/plugin/ajax-scroll.0.42.zip)

 * [تفصيل](https://snd.wordpress.org/plugins/ajax-scroll/#description)
 * [جائزو](https://snd.wordpress.org/plugins/ajax-scroll/#reviews)
 *  [تنصيب](https://snd.wordpress.org/plugins/ajax-scroll/#installation)
 * [ترقي](https://snd.wordpress.org/plugins/ajax-scroll/#developers)

 [سھائتا](https://wordpress.org/support/plugin/ajax-scroll/)

## وضاحت

AJAX Scroll links an AJAX-enabled page scroller to the standard next and previous
post links.

Clicking on a next or previous link will cause the current page to fade and slide
out; the following page will slide and fade in.

## انسٽاليشن

 1. Download the zip file, unzip it, and place it in your /wp-content/plugins directory.
 2. Activate the plugin via the ‘Plugins’ menu in WordPress.
 3. In your theme, before calling the “previous_posts_link” or “next_posts_link” functions,
    declare a global variable “as_elem_id” and store the ID of the content container.(
    In the default WordPress theme, this is “content”.)

For example,

$as_elem_id = ‘some_value’;

where is the element ID of the post container where the contents will be replaced.

## FAQ

  How can I change the speed of the slide or the opacity?

At present this requires modifying the plugin’s JavaScript file. Open the file located
in wp-content/plugins/ajax-scroll/js/ajax-scroll-js.php.

The first two lines of this file declare two variables, “speed” and “opacity_loading”.
You can modify these values to change the slide timing and fade opacity.

The “speed” value is the time (in ms) it takes to slide the container. So, the higher
the number, the slower the animation.

The “opacity” value is a decimal representation of the opacity percentage (from 
0 to 1). The lower the value, the more transparent the content will be while loading.
A value of 1 equals no fading.

  How do I add a loading icon?

In your theme, place a (div or other) element where you want the loading icon to
appear. The ID of this element must be “_load”. So, if the ID of your content’s 
container is “content”, the loading DIV must have an ID “content_load”. Once this
is in place, the loading element will automatically appear during the transition
animation.

  Can I have multiple sections of scrollable content?

Yes! Just replicate the instructions in “installation” for each section on the page.
Make sure that each content container has a unique ID!

  The direction of the scroll is wrong. Why?

Scrolling through any set of single posts should work fine. However, if your paging
system is unique (not standard), the direction of the scroll may be wrong. In this
case, you can either modify ajax-scroll.php to fit your needs or reverse the directions
in js/ajax-scroll-js.php.

## جائزا

ھن پلگ ان لاءِ ڪي به رايا ناھن.

## تعاون ڪندڙ & ڊولپرز

“Ajax Scroll” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.

تعاون ڪندڙ

 *   [ Nick ](https://profiles.wordpress.org/ncrawford/)
 *   [ bankofcanada ](https://profiles.wordpress.org/bankofcanada/)

[ترجمو ڪريو “Ajax Scroll” توهان جي ٻولي ۾.](https://translate.wordpress.org/projects/wp-plugins/ajax-scroll)

### ڊولپمينٽ ۾ دلچسپي؟

[ڪوڊ براؤز ڪريو](https://plugins.trac.wordpress.org/browser/ajax-scroll/)، چيڪ ڪريو
[SVN مخزن](https://plugins.svn.wordpress.org/ajax-scroll/)، يا رڪنيت حاصل ڪريو [ڊولپمينٽ لاگ](https://plugins.trac.wordpress.org/log/ajax-scroll/)
پاران [RSS](https://plugins.trac.wordpress.org/log/ajax-scroll/?limit=100&mode=stop_on_copy&format=rss).

## لاگ تبدیل ڪريو

#### 0.42

 * Will now identify post scrolling vs page scrolling in a better way to make the
   direction of scrolling decision better
 * Post scrolling will now work with all permalink methods

#### 0.41

 * The method in which the next/previous page contents are grabbed has changed to
   improve speed and circumvent login problems. jQuery is now used to grab and display
   the next page rather than the PHP DOM.
 * Also fixed a small bug of a missing function and hooks in the change between 
   0.31 and 0.4

#### 0.4

 * Undid the 0.31 change because it can cause other problems. If accented letters
   aren’t appearing properly for you, see the FAQ.
 * Changed the way the plugin is loaded. Instead of using admin-ajax.php, the plugin
   is called directly. This allows the wp-admin folder to be password protected 
   without causing problems with the plugin.
 * Reduced the priority of the link hooks because they were sometimes being executed
   too soon.
 * Fixed a bug where the direction of the animation slide would sometimes be wrong.

#### 0.31

 * Fixed a bug where accented letters were being displayed incorrectly – thanks 
   to 100tral for pointing this out!

#### 0.3

 * Initial public version

## ميٽا

 *  Version **0.42**
 *  Last updated **16 سالَ اڳ**
 *  Active installations **10+**
 *  WordPress version ** 2.8 يا وڌيڪ **
 *  Tested up to **2.9.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/ajax-scroll/)
 * Tags
 * [display](https://snd.wordpress.org/plugins/tags/display/)[formatting](https://snd.wordpress.org/plugins/tags/formatting/)
   [presentation](https://snd.wordpress.org/plugins/tags/presentation/)[style](https://snd.wordpress.org/plugins/tags/style/)
   [text](https://snd.wordpress.org/plugins/tags/text/)
 *  [ترقي يافته ڏيک](https://snd.wordpress.org/plugins/ajax-scroll/advanced/)

## درجه بندي

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ajax-scroll/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ajax-scroll/reviews/)

## تعاون ڪندڙ

 *   [ Nick ](https://profiles.wordpress.org/ncrawford/)
 *   [ bankofcanada ](https://profiles.wordpress.org/bankofcanada/)

## سھائتا

چوڻ لاءِ ڪجهه آهي؟ مدد گهرجي؟

 [ڏسو سپورٽ فورم](https://wordpress.org/support/plugin/ajax-scroll/)