Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6719529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:06:13+00:00 2026-05-26T09:06:13+00:00

I have 5 elements in a jQuery slider, the slider elements are then cloned

  • 0

I have 5 elements in a jQuery slider, the slider elements are then cloned once so there are enough elements for a circular continuous slide.

Here is the code i am using to clone my elements:

$mo.prepend($mo.children().clone().removeClass('active'));

On the first instance the Cufon works great, but after it’s been cloned it seems to break it’s layout, by adding spacing and keeping the cufontext behind the element.

Here is an image to better describe the issue:

enter image description here

I have tried the following to try and refersh and re-instate the cufon text;

    $mo.prepend($mo.children().clone().removeClass('active').show(function(){
        Cufon.refresh();
    }));

i have also tried re-defining the cufon with Cufon.replace() has anyone had this issue before, and if so how did you fix it?

I have noticed the CSS attributes that are on the first instance of the cufontext are lost in-transit once the clone has been completed.

Note these issues are only in IE7 (and probably lower)

I have replicated the issue, in JSBIN it does exactly what is happening on my site,

http://jsbin.com/awupuw/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:06:14+00:00Added an answer on May 26, 2026 at 9:06 am

    So i figured out how to do this, i realized that jQuery was also copying the cufon elements from the HTML, so when i reinstated a cufon.register or refresh it would try to apply it to the cufon elements already registered.

    To resolve this issue i simply cleaned out the objects before invoking .clone().

    You will probably clean out your object different to me, but hey it works so here is the code that I used.

    $('#clone').click(function(){
      var _object = $('h1:eq(0)').clone();
      var _text = _object.text();
      _object.find('cufon').remove();
      _object.text(_text);
    
      $('body').append(_object).show(function(){
        Cufon.refresh();
      });
    
    });
    

    http://jsbin.com/awupuw/9 -> Working Example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a tabbed jquery slider that I'm using to display elements of an
I have some elements and I'm using some jQuery plugins. I want to see
Using jQuery, how would you find elements which have a particular style (eg: float:
How to select next n hidden elements that have class foo using jQuery?
is it possible to create a jquery slider in which the elements have variable
I have a set of selected elements in jQuery: <div class=element></div> <div class=element></div> <div
I have a selection of elements in a jQuery object. I want to animate
In trying to select elements that have any attributes, the following throws a jQuery
I have jQuery to select all font elements that are children of the element
I have a jQuery selector that queries elements by tag name and class. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.