• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Problem with installing a js script

Started by mihai,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mihaiTopic starter

Hi!I want to use on my homepage a carusel script(pgwslideshow)and i don't know why is not working
Here is what i did

#1 Add file pgwslideshow.js to JS FOLDER
#2 Add file pgwslideshow.css to CSS FOLDER
#3 Add pgwslideshow.css and .js  in tpl.globals
#4 Add the html into homepage   
HTML HERE
<ul class="pgwSlideshow">
    <li><img src="san-francisco.jpg" alt="San Francisco, USA" data-description="Golden Gate Bridge"></li>
    <li><img src="rio.jpg" alt="Rio de Janeiro, Brazil"></li>
    <li><img src="london_mini.jpg" alt="" data-large-src="london.jpg"></li>
    <li><img src="new-york.jpg" alt=""></li>
    <li><img src="new-delhi.jpg" alt=""></li>
    <li><img src="paris.jpg" alt=""></li>
    <li><img src="sydney.jpg" alt=""></li>
    <li><img src="tokyo.jpg" alt=""></li>
    <li><img src="honk-kong.jpg" alt=""></li>
    <li><img src="dakar.jpg" alt=""></li>
    <li><img src="toronto.jpg" alt=""></li>
    <li>
        <a href="http://en.wikipedia.org/wiki/Monaco" target="_blank">
            <img src="monaco.jpg" alt="Monaco">
        </a>
    </li>
</ul>

Obv i changed the images with my own links:)

I have this code and i don't know what to do whit it
$(document).ready(function() {
    $('.pgwSlideshow').pgwSlideshow();
});

Why is not working?
  •  

mihaiTopic starter

Btw this is the script     pgwjs.   com/pgwslideshow/
  •  

Marius P.

<script>
$(document).ready(function() {
    $('.pgwSlideshow').pgwSlideshow();
});

</script>



Add this after the html (so you actually trigger/init that plugin)
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)