Results 1 to 6 of 6

Thread: Help on slideshow activation in css5

  1. #1
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help on slideshow activation in css5

    1) Script Title: Full Page Image slideshow

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...show/index.htm

    3) Describe problem:

    Hi professional designers, Please, I need your help. I came across a slideshow on DD that suits my purpose. I followed instructions on how to install but can't get it to work. I am trying to put toggether my very first website.

    The content area of the website is split into two sides: the left content area's width is 190px and the right side, 1166px where the slideshow will be displayed. What exactly do I have to do to make it work?

    Thanks very much.

    Sonkify.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    The short answer - to make it work, you follow the instructions on the demo page.

    I you can't get it to work, we need to see what you're doing, or not doing, and the best way to do that is for you to provide a link to the problematic page. We can't offer help without it.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Beverleyh,

    I am sending this update just in-case you didn't see my last reply where I posted my link. I have been able to make the image to appear but not been able to make slideshow to work. What do you think I have missed out? My link is ...REMOVED FOR SAFETY

    Thank you in advance.

    Sony.
    Last edited by Beverleyh; 10-31-2014 at 03:23 PM. Reason: link removed for safety

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Looking at the code in the <head> of the web page, there are a few rogue </script> tags that need to be removed.

    You also have your ftp details showing where "url" should be in the playlist - please remove them from your page ASAP or you could get your server hijacked. You are also mixing the syntax for an external playlist file and an internally embedded playlist;
    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>
    
    	<link rel="stylesheet" type="text/css" href="smooth_slider.css">
    
    	<style>
    	
    	.slideshowwrapper{ /* dimensions of outermost slideshow container */
    	width: 1140px;
    	height: 600px;
    	position: relative;
    	overflow: hidden;
    	float: right;
    	margin-left: 10px;
    	}
    	
    	</style>
    
    	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    	<script src="jquery-slider.js">
    
    		/***********************************************
    		* Full Page Slideshow- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    		* This notice MUST stay intact for legal use
    		* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
    		***********************************************/
    
    	</script>
        
    </script>
    	<script>
    		$(function() {
    			$('#resume').on('click', function(){ // set up resume button behavior
    				$("#pan_area").smoothslider("resume") // resume playing of this slideshow. Pass in "pause" to pause it instead
    				$(this).hide() // hide resume button
    			})		
    			$("#pan_area").smoothslider("install", {
    				"xxxxx remove FTP details/playlist.json":
    
    { "playlist": [
     
      {
      "url":
      "img/img0.jpg",
      "caption": "A bird perching on a twig"
      },
      {
      "url": "img/img1.jpg",
      "caption": "A cheetah"
      },
      {
      "url": "img/img2.jpg",
      "caption": "A sand cat kitten"
      },
      {
      "url": "img/img3.jpg",
      "caption": "Now some tigers"
      }
     ],
    
     "hold_time":5,
     "loops":2,
     "transition_time":1
    }", // get the playlist and some config from the server
    
    				// this function gets called whenever there's an image change
    				"on_image_change":function(caption, image_url) { 
    						var area= $("#img_msg_area").find("span");
    						area.animate({"opacity": 0}, 500, "swing", function() {
    							area.text(caption);
    							area.animate({"opacity": 1}, 500); // fade in & out take 500ms each
    						});
    					},
    				"loops": 2, // number of loops before stopping. Remove thisoption to run continuously
    				"throbber":$("#throbber"), // an image to show when waiting for images to load
    				on_pause:function(){
    					$('#resume').show()
    				}
    
    			});
    		});
    
    	</script>
        
    </script><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Sony Akpotor Fine Art, Original Oil Figurative Paintings, Abstract, Portraits, Prints &amp; Commissions</title>
    
    <link href="-css/sony-akpotor-fine-art-css.css" rel="stylesheet" type="text/css" />
    
    
    </head>
    For clarification, please refer to the source code of demo3 http://www.dynamicdrive.com/dynamici...show/demo3.htm which makes use of the playlist[] option to define the images, instead of the playlist_url option.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. #5
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks so much Beverleyh. I didn't know what I was doing and the implication of it. I have taken out the ftp details with the hope that it is not already too late.

    You talked about rogue </script> tags that need to be removed. Are they the ones in RED in the code you sent me above?

    Thanks once again. I am very grateful for your support. I am going to check demo 3 out now and try again.

    Kind Regards,

    Sony

  6. #6
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    That's right - remove the </script> tags in red and address the other indicated parts. It may not be the ultimate solution but it's a start. The demo 3 page should be your main guide for now.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. What is CSS5
    By oneonesip in forum CSS
    Replies: 1
    Last Post: 04-17-2013, 06:05 PM
  2. E-mail form Activation and deactivation
    By dz.slick in forum JavaScript
    Replies: 1
    Last Post: 11-21-2011, 11:32 PM
  3. Activation page
    By vividona in forum PHP
    Replies: 1
    Last Post: 11-13-2008, 11:40 AM
  4. No tab activation on page load
    By kona in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-04-2008, 06:06 PM
  5. PHP Email Activation Link
    By devil_vin in forum PHP
    Replies: 8
    Last Post: 08-28-2007, 11:38 AM

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
  •