www.webdeveloper.com
Results 1 to 2 of 2

Thread: Trouble more smiles divided for page

  1. #1
    Join Date
    Apr 2013
    Posts
    5

    Trouble more smiles divided for page

    Hello,

    I have the following problem

    [CODE]
    * initEmoticons = function () {
    ************ if ((0> base.opts.toolbar.indexOf ("smileys"))) {
    **************** base.opts.emoticonsRoot && base.opts.emoticons && $. each (base.opts.emoticons, function (idx, emoticons) {
    ******************** $. each (emoticons, function (key, url) {
    ************************ base.opts.emoticons [idx] [key] = base.opts.emoticonsRoot + (url.url | | url)
    ******************** })
    **************** });
    **************** var emoticon, emoticons = $. extend ({}, base.opts.emoticons.more, base.opts.emoticons.dropdown, base.opts.emoticons.hidden);
    **************** $. each (emoticons, function (key, url) {
    ******************** emoticon = document.createElement ("img"), emoticon.src = url.url | | url, preLoadCache.push (emoticons)
    **************** })
    [/ CODE]

    The following function separates me additional emoticons making them appear as a box below to those that I realize I'm displaying instead a sort of scrolling of pages of emoticons in place of this function (since I have to put smiles 164) if I put them in vertical I have a problem with mobile devices in the process of viewing, direct me know how to change this function to do this?

    Thank you,

  2. #2
    Join Date
    Apr 2013
    Posts
    5
    Code:
    initEmoticons = function () {
                if (!(0 > base.opts.toolbar.indexOf("emoticon"))) {
                    base.opts.emoticonsRoot && base.opts.emoticons && $.each(base.opts.emoticons, function (idx, emoticons) {
                        $.each(emoticons, function (key, url) {
                            base.opts.emoticons[idx][key] = base.opts.emoticonsRoot + (url.url || url)
                        })
                    });
                    var emoticon, emoticons = $.extend({}, base.opts.emoticons.more, base.opts.emoticons.dropdown, base.opts.emoticons.hidden);
                    $.each(emoticons, function (key, url) {
                        emoticon = document.createElement("img"), emoticon.src = url.url || url, preLoadCache.push(emoticon)
                    })

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles