Responsive image map

Spørgsmål til joomla 3.x

Moderators: b-ronnow, General Support Moderators

Post Reply
jesperfredskild
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Oct 02, 2018 10:52 am

Responsive image map

Post by jesperfredskild » Sat Oct 13, 2018 9:33 am

Does anyone know how to setup a responsive image mapping.

I have found the
http://mattstow.com/experiment/responsi ... -maps.html
but dont know how to do.
Where to put the downloaded files
and where to put extra codes in html for each page.
/Jesper

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 846
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: Responsive image map

Post by effrit » Sat Oct 13, 2018 10:11 am

https://docs.joomla.org/J3.x%3AAdding_J ... o_the_page

link file via addScript and run initialization code via addScriptDeclaration

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25751
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Responsive image map

Post by Per Yngve Berg » Sat Oct 13, 2018 12:23 pm

Velkommen til forumet. I det danske forum, der skal man skrive dansk.

jesperfredskild
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Oct 02, 2018 10:52 am

Re: Responsive image map

Post by jesperfredskild » Sun Oct 14, 2018 11:37 pm

Tak effrit
Det bliver jeg desværre ikke klogere af. Er Addscript en extension?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25751
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Responsive image map

Post by Per Yngve Berg » Mon Oct 15, 2018 7:51 pm

Addscript er et kald i Joomla API.
https://api.joomla.org/cms-3/classes/Jo ... _addScript

Code: Select all

<?php
$document = JFactory::getDocument();
$document->addScript(JUri::base() . 'templates/custom/js/sample.js');
?>
Du kan laste et js script fra din skabelons index.php fil.

Der er svært at anvende noget der ikke er Joomla.

Du kan prøve den her extension: https://extensions.joomla.org/extension ... e-hotspot/


Post Reply

Return to “Joomla! 3.x (Anbefalet til nye installationer. Nyeste funktionalitet)”