Highslide Script in JoomlaHTML + Gallery

Phoca Gallery - image gallery extension
bollerfant
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Dec 2008, 05:02

Highslide Script in JoomlaHTML + Gallery

Post by bollerfant »

Hi,
i just realized that when i'm insert the following code into my html of my template that the highslideeffect of the gallery isn't working any more.

Code: Select all

<link rel="stylesheet" href="/highslide/highslide.css" type="text/css" />
<script type="text/javascript" src="/highslide/highslide.js"></script>
<script type="text/javascript">    
    hs.graphicsDir = '/highslide/graphics/';
    hs.outlineType = 'rounded-white';
    hs.showCredits = false;
</script>
Is there a chance to use highslide for my normal pictures in the articles AND for the phoca-gallery ?
bollerfant
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Dec 2008, 05:02

Re: Highslide Script in JoomlaHTML + Gallery

Post by bollerfant »

Hi i found a way to make the script work in the gallery and the normal content:
just move the code in the <head> part of the code

Code: Select all

<link rel="stylesheet" href="/highslide/highslide.css" type="text/css" />
<script type="text/javascript" src="/highslide/highslide.js"></script>
<script type="text/javascript">    
    hs.graphicsDir = '/highslide/graphics/';
    hs.outlineType = 'rounded-white';
    hs.showCredits = false;
</script>
BEFORE this command

Code: Select all

<jdoc:include type="head" />
in this case, your script is working all the time. when the gallery is opened the code of the gallery is included after your highslide options and overwrites all the settings.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Highslide Script in JoomlaHTML + Gallery

Post by Jan »

ok
If you find Phoca extensions useful, please support the project
Post Reply