小编And*_*rea的帖子

jQuery旋转/转换

我想使用此功能旋转然后在特定点或度数停止.现在元素只是旋转而不停止.这是代码:

    <script type="text/javascript">
    $(function() {
       var $elie = $("#bkgimg");
       rotate(0);
       function rotate(degree) {

           // For webkit browsers: e.g. Chrome
           $elie.css({ WebkitTransform: 'rotate(' + degree + 'deg)'});
           // For Mozilla browser: e.g. Firefox
           $elie.css({ '-moz-transform': 'rotate(' + degree + 'deg)'});

           // Animate rotation with a recursive call
           setTimeout(function() { rotate(++degree); },65);
       }
    });
    </script>
Run Code Online (Sandbox Code Playgroud)

谢谢你的帮助

jquery transform rotation

21
推荐指数
3
解决办法
13万
查看次数

Magento:Forgotten Pword返回空白浏览器页面

我真的希望有人可以帮忙解决这个问题.

我正在使用Magento 1.6.1.0新安装

如果客户点击前端忘记密码链接,他们会收到一封电子邮件,其中包含点击链接.当他们单击电子邮件中的链接时,浏览器中会显示一个空白页面(没有提示重置pword).启动电子邮件链接时的路径如下所示:

    www.mystore.com/customer/account/resetpassword/?id=4 token=26f8abcc1efd5559ce81ced2706586db

The "error_log" said:
30-Nov-2011 07:42:50] PHP Fatal error: Call to a member function setCustomerId() on a non-object in /home3/bestcara/public_html/app/code/core/Mage/Customer/controllers/AccountContr??oller.php on line 587
Run Code Online (Sandbox Code Playgroud)

这是AccountController.php的代码块

     * Display reset forgotten password form
 *
 * User is redirected on this action when he clicks on the corresponding link in password reset confirmation email
 *
 */
public function resetPasswordAction()
{
    $resetPasswordLinkToken = (string) $this->getRequest()->getQuery('token');
    $customerId = (int) $this->getRequest()->getQuery('id');
    try {
        $this->_validateResetPasswordLinkToken($customerId, $resetPasswordLinkToken);
        $this->loadLayout();
        // Pass received parameters to the …
Run Code Online (Sandbox Code Playgroud)

php magento

3
推荐指数
1
解决办法
4743
查看次数

标签 统计

jquery ×1

magento ×1

php ×1

rotation ×1

transform ×1