Results 1 to 3 of 3

Thread: Apostrophe problem in document wipes effect

  1. #1
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Apostrophe problem in document wipes effect

    hi,

    How can I put in an apostrophe in this matter? Cos if i put in, the whole thing won't be functioning at all. Please advise on the one underline and bold below.

    Thanks so much!!

    //////////////////////////////////////////////////////////////////////////
    // Customization Area
    //
    // If your wipe series includes images, put them in this array for preload, seperated by commas.
    var wipe_imgs=new Array(
    'dwc_btn.gif'
    );
    if (document.images) {
    var theImgs=new Array();
    for (var i=0;i<wipe_imgs.length;i++) {
    theImgs[i]=new Image();
    theImgs[i].src=wipe_imgs[i];
    }
    }

    // Here's where you put the content for the wipes.
    // Array elements are arranged in pairs:
    // content to display, time allotted for wipe of that content.
    // Suggestion: give longer, larger content more time.
    // If all your text is to be formatted the same, you can use
    // just the wipe class above (it is applied in the doWipes function)
    // and put plain text here.
    // Images and links are okay too.
    var wipe_array=new Array(
    '<span class="wipe1">F R U I T F U L&nbsp;&nbsp;I N&nbsp;&nbsp;M I S S I O N S&nbsp;&nbsp;,&nbsp;&nbsp;E V A N G E L I S M&nbsp;&nbsp;&&nbsp;&nbsp;G O O D&nbsp;&nbsp;W O R K S</span>',1500,
    '<span class="wipe1">G R O U N D E D&nbsp;&nbsp;I N&nbsp;&nbsp;G O D'S&nbsp;&nbsp;S&nbsp;&nbsp;W O R D&nbsp;&nbsp;&&nbsp;&nbsp;L O V E</span>',1500,
    '<span class="wipe1">A B O U N D I N G&nbsp;&nbsp;I N&nbsp;&nbsp;T H A N K S G I V I N G&nbsp;&nbsp;&&nbsp;&nbsp;P R A Y E R</span>',1500,
    '<span class="wipe3"><center>A B C D E &nbsp;&nbsp;.&nbsp;&nbsp;T h e&nbsp;&nbsp;A N T I O C H&nbsp;&nbsp;C h u r c h&nbsp;&nbsp;V i s i o n</span><br><span class="wipe1">S T R E N G T H E N&nbsp;&nbsp;O U R&nbsp;&nbsp;S T A K E S&nbsp;&nbsp;FOR&nbsp;&nbsp;G R O W T H&nbsp;&nbsp;2 0 0 8</center></span>',2500
    );

    //var wipe_final=new Array('Click here',2500);

    //var wipe_final=new Array('Click here',2500);


    var wipe_in_delay=1000; // delay before each wipe in
    var wipe_out_delay=1200; // delay before each wipe out
    // wipe out speed (wipe-in time is divided by this number)
    var wipe_out_dv=2.5; // 2 to 4 recommended
    var dest_delay=0; // delay before going to destination url

    // destination url, where to go at end of wipes
    function setDest() {
    window.location = "http://www.abc.com.my/home";
    }
    // end customization area
    /////////////////////////////////////////////////////////////////////

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Escape it by using a backslash:
    Code:
    G O D\'S
    For further reading:
    http://www.quirksmode.org/js/strings.html
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. The Following User Says Thank You to rangana For This Useful Post:

    ctsy (08-21-2008)

  4. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •