The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    i want see the image in version mobile

    avatar
    Zakii.mad
    Forumember


    Posts : 33
    Reputation : 1
    Language : Arabic

    i want see the image in version mobile  Empty i want see the image in version mobile

    Post by Zakii.mad July 12th 2015, 8:25 pm

    i want see the image in version mobile
    i want see the image in version mobile  Sans_t14
    in version ordinateur we see the image and in the version mobile see " [See the image]
    i want see the image in first lock the page not see [See the image]
    thnks
    avatar
    darki
    Forumember


    Posts : 254
    Reputation : 10
    Language : German, english

    i want see the image in version mobile  Empty Re: i want see the image in version mobile

    Post by darki July 12th 2015, 9:01 pm

    Title: your choice
    Placement: in the topics

    Code:
    $(function() {
            var perpage = 10, // nombre de messages avant l'ajout d'une nouvelle page
            p = document.getElementsByTagName('P'), l = window.location.pathname, current, last, tid = l.replace(/\/t(\d+).*/,'$1'), tname = l.replace(/(\/t\d+|\/t\d+p\d+)(-.*)/,'$2'), style = document.createElement('STYLE'), css = '.pagi {height:auto;color:#FFF;position:static;margin:2px}.pagactif{color:#FF8;cursor:default}.scroller{position:absolute;width:18px;height:28px;cursor:pointer}.left.scroller{background:url(http://2img.net/i/fa/mobile/inner-left-arrow.png) no-repeat center #444;left:65px}.right.scroller{background:url(http://2img.net/i/fa/mobile/inner-right-arrow.png) no-repeat center #444;right:65px}', i,j;
            if (typeof _userdata.page_desktop === 'undefined') return;
            style.type = 'text/css';
            if (style.styleSheet) style.styleSheet.cssText = css;
            else style.appendChild(document.createTextNode(css));
            document.getElementsByTagName('HEAD')[0].appendChild(style);
            for (i=0; i<p.length; i++) {
            if (/mobile_title_content/.test(p[i].className)) {
            current = Number(p[i].innerHTML.replace(/.* <strong>(\d+)<\/strong> .* <strong>\d+<\/strong>/i,'$1'));
            last = Number(p[i].innerHTML.replace(/.* <strong>\d+<\/strong> .* <strong>(\d+)<\/strong>/i,'$1'));
            }
            }
            if (last >= current) {
            var b = document.getElementsByTagName('DIV'), title = document.createElement('DIV'), cen = document.createElement('DIV'), left = document.createElement('DIV'), right = document.createElement('DIV'), c = 1, d = 0;
            title.className = 'mobile_title', left.className = 'left scroller', right.className = 'right scroller', cen.className = 'mobile_title_content', cen.setAttribute('style','left:85px;right:85px;text-overflow:clip;line-height:26px;');
            for (j=0; j<b.length; j++) if (/mobile_title/.test(b[j].className) && /\d+/.test(b[j].nextSibling.id)) b[j].parentNode.insertBefore(title,b[j].nextSibling);
            title.appendChild(cen), title.appendChild(left), title.appendChild(right);
            left.onmousedown = function() { cen.scrollLeft -= 100 };
            right.onmousedown = function() { cen.scrollLeft += 100 };
            while (d < 2) {
            if (d == 0 && current > 1) newPage('mobile_prev_button block', '<p>Début</p>', '/t' + tid + tname, title);
            else if (d == 1 && current != last) newPage('mobile_next_button block', '<p>Fin</p>', '/t' + tid + 'p' + Number(perpage * last - perpage) + tname, title);
            d += 1;
            } while (last + 1 > c) {
            if (c == current) newPage('mobile_next_button block pagi pagactif', c, 'javascript:void(0);', cen, 'currentPage');
            else newPage('mobile_next_button block pagi', c, '/t' + tid + 'p' + Number(perpage * c - perpage) + tname, cen);
            c += 1;
            }
            cen.scrollLeft = document.getElementById('currentPage').offsetLeft;
            }
            function newPage(classname, html, href, par, id) {var page = document.createElement('A'); page.className = classname, page.innerHTML = html, page.href = href, par.appendChild(page); if (id) page.id = id}
            });

    This script is not only for your goal, but it does the job.
    Maybe Ange or someone else could delete the part you don't need.

      Current date/time is November 11th 2024, 9:24 pm