Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

Adding a snippet of javascript to main page?

03-15-2011, 08:48 PM
# 1 (permalink)

I had a basic template on my joomla 1.6 install
I also have this yahoo media player that plays shoutcast info,

What i did was add the following code to the header of the main index page,
Then i could add a module with a player launch button to open the yahoo player

<script type="text/javascript" src="<?php echo $templateUrl; ?>/script.js"></script>
<script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script>
Any ideas where/how i should place the above code as the yougrid is not written in html?

03-15-2011, 09:31 PM
# 2 (permalink)
I did it i added the javascript to the yjsg_main.php header
Thread Tools
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

Members Login