-
AuthorPosts
-
minas69 Friend
minas69
- Join date:
- September 2007
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 99
- Thanks:
- 73
- Thanked:
- 6 times in 1 posts
February 27, 2012 at 12:23 pm #174346Hi all,
I need to add the following javanscript code to my Ja tiris default template :
<!DOCTYPE HTML>
<html>
<head>
<title>Easy Fullscreen Background – by plusquare</title><script type=”text/javascript” src=”jquery/jquery-1.6.2.min.js”></script>
<script type=”text/javascript” src=”jquery/modernizr.custom.26584.js”></script>
<script type=”text/javascript” src=”jquery/swfobject.js”></script>
<script type=”text/javascript” src=”js/video_background.js”></script></head>
<body>
<script type=”text/javascript”>
jQuery(document).ready(function($) {
$(“body”).video_background({ format:”472:296″,
flv:”video/VH_videoAsset.flv” ,
formatMobile:”472:296″,
flvMobile:”video/VH_videoAsset.flv”,
loop:”true”,
autoplay:”true”,
muted:”false”
});});
</script></body>
</html>What I have to do to use it as background…
Thanks.
minaPhill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
February 27, 2012 at 12:31 pm #440275Not sure what you mean? Ar you struggling to find out where to put that code?
Any JS can be included by copying the page/default.php file fron the plugins directory to the templates directory. So in your case you would creat a new directory called page in templates>ja_tiris>page and put the default.php file in there. You will find the head tags in that file and put in your js.
Bear in mind that sometimes there are peoblems mixing js scripts on the same page and doubly so if you have js optimization turned on in the template manager.
minas69 Friendminas69
- Join date:
- September 2007
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 99
- Thanks:
- 73
- Thanked:
- 6 times in 1 posts
February 27, 2012 at 2:24 pm #440311Hi phil,
I already bought this html5 code : http://codecanyon.net/item/easy-video-background/1365012
Now I want to include this to my site as background.
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by Phill 12 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum