Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • kansen Friend
    #179617

    hi

    i need to set the background image as a link?
    any clean idea to how to do it?

    thanks.

    Ninja Lead Moderator
    #463139

    You can send to me the screenshot what entire background clickable link do you expect?

    kansen Friend
    #463519

    hi

    i need to make clickable all the green sides as the image i attach

    when click happens it should open an url in new window.

    regards.


    1. Untitled-1
    Ninja Lead Moderator
    #463576

    Create new templates/ja_teline_iv/blocks/topadv.php file

    <?php
    // no direct access
    defined ( '_JEXEC' ) or die ( 'Restricted access' );

    ?>

    <?php if($this->countModules('topleft')) : ?>
    <div id="ja-topleft">
    <jdoc:include type="modules" name="topleft" />
    </div>
    <?php endif; ?>

    <?php if($this->countModules('topright')) : ?>
    <div id="ja-topright">
    <jdoc:include type="modules" name="topright" />
    </div>
    <?php endif; ?>

    Go to Admin site->Extensions->Template Manager-> Edit JA_Teline_IV – Default-> Layouts Tab ->Edit Default

    Make new module into topleft and topright position like your screenshot.


    1. layout
    kansen Friend
    #463637

    hi ninja

    i tried what u wrote and it just add 2 new modules position on top-center of the site (inside the template width), i need some to make background clickable and linked to an url.

    is there any javascript? or some?

    regards.

    Ninja Lead Moderator
    #463825

    <em>@kansen 333638 wrote:</em><blockquote>i need some to make background clickable and linked to an url.</blockquote>
    You can add it into “topleft” and “topright” position from Custom HTML module

    <em>@kansen 333638 wrote:</em><blockquote>is there any javascript? or some?</blockquote>

    You can use this js script:

    $('ja-topleft').setStyle('left', $('ja-container').getElement('.main').getCoordinates().left - $('ja-topleft').getWidth())
    $('ja-topright').setStyle('left', $('ja-container').getElement('.main').getCoordinates().right)

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 2 voices, and was last updated by  Ninja Lead 11 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum