> ## Content Index
> Fetch the complete content index at: https://blog.hinablue.me/llms.txt
> Use this file to discover other available public pages before exploring further.

# [jQuery tech.] paging flip with jQuery
- URL: https://blog.hinablue.me/jquery-tech-paging-flip-with-jquery-but-ie-sucks/
- Published: 2009-06-25T14:25:00.000Z
- Updated: 2026-06-25T10:01:09.000Z
- Author: Hina Chen
- Tags: Work, JavaScript, jQuery, Page Flip

**update, fixed IE 8 Sucks!**

問題點：jQuery 1.3.2 的核心 1061 行，關於 `attribute` 的設定。

在 DOM 中，倘若有一個很正常的 Tag，若是這個 Tag 所擁有的 `attribute` 不存在，或是 CSS 設定的屬性質不存在，或是返回 NaN，則在 IE 中會出現＂引數不正確＂的錯誤訊息，特別是在 CSS 的設定中，並不容易察覺。

```
div.classA {
    margin: 0 auto;
    padding: 2px 2px;
}

```

看來，jQuery 在存取 CSS 上面，還是存在著不同瀏覽器返回不同結果的問題啊。

更新，本來想寫成 prototype 但是想想還是算了。使用方法就是這樣而已：

```
$(document).ready( function() {
    pagingFlipInit({width: 400, height: 300});
});

```

不要問我為什麼！有興趣的人可以自己研究。畫面大概是這樣：

![](https://blog.hinablue.me/content/images/2014/Jun/5553903826.jpg)