Results 1 to 3 of 3

Thread: Hlep please- Display Playlists by default on YouTube gallery

  1. #1
    Join Date
    Jul 2012
    Location
    Dorset, England
    Posts
    67
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question Hlep please- Display Playlists by default on YouTube gallery

    Hope someone can help me with modifying Jacob's You Tube gallery. I want the You Tube gallery to display the Playlists on first load, rather than displaying video titles, but I can't fathom which part of the js sets the videos to be displayed first.

    I've attached the JS and CSS files here
    youtube-gallery.css youtube-gallery.js youtube-style.css

    The html is

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <head>
    		<title>YouTube gallery</title>
    		<link href="youtube-gallery.css" type="text/css" rel="stylesheet" />
    		<link href="youtube-style.css" type="text/css" rel="stylesheet" />
    		<style type="text/css">
    			body{
    				margin: 0;
    				padding: 0;
    			}
    		</style>
    	</head>
    	<body class="playlists">
    		
    		<div id="frame"></div>
    		
    		<div class="description">
    			<p>Click on a playlist to see the videos within it</p>
    			
    		</div>
    		
    		<script type="text/javascript" src="youtube-gallery.js"></script>
    		<script>
    			window.onload = function(){
    				
    				
    				window.controller = new YTV('frame', {
    					user: 'DorsetdogDotCom',
    					accent: '#008D54',
    					browsePlaylists: true,
    					controls: true,
    					autoplay: false
    				});
    			};
    		</script>
    	</body>
    </html>
    Thanks

  2. #2
    Join Date
    Jul 2012
    Location
    Dorset, England
    Posts
    67
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question Help to set playlist as default active please

    Can anyone help me with this JS issue. There must be a way for it to default to Playlist view in the right hand panel, rather than videos view

    www.dorsetdog.com/you-tube-videos

  3. #3
    Join Date
    Jul 2012
    Location
    Dorset, England
    Posts
    67
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Smile Issue resolved

    Issue resolved, with thanks to John

Similar Threads

  1. Replies: 5
    Last Post: 10-07-2012, 09:31 AM
  2. Display a default enlarged image using CSS Image Gallery
    By KCgame in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 08-14-2009, 06:54 AM
  3. Resolved Can't Get Textarea to display default value
    By boxelder_bee in forum PHP
    Replies: 3
    Last Post: 08-10-2009, 05:36 PM
  4. How to get default page to display
    By Kerry in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 08-21-2006, 10:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •