Need help? Check out our Support site, then


Slideshow short code - requires Javascript??

  1. Sometimes my slideshow shortcode doesn't work --meaning my slideshow is black/blank.

    And I get a message that includes Javascript.

    That doesn't make sense. I thought Word Press.com short code didn't require Javascript.

    The blog I need help with is cyclewriteblog.wordpress.com.

  2. We users aren't allowed to use javascript. But lots of things on wordpress.com (including the slideshow) require javascript to work: if you check the sourcecode of your front page, for instance, you'll find 42 different scripts.

  3. As an example, here's what the single word you can see in the Text editor of your July 3 post translates to:

    <script>
    WP_SLIDESHOW_IMAGES = {
    		load: 'http://s1.wp.com/wp-content/mu-plugins/slideshow/slideshow-loader.gif?m=1289605033g',
    	};
    	WP_SLIDESHOW_LABELS = {
    		next: 'Next',
    		prev: 'Previous',
    		stop: 'Toggle Playback'
    	};
    	WP_SLIDESHOW_BLOG_INFO = {
    		blogId: '11723932',
    		subDomain: 'cyclewriteblog',
    		userId: '3827704'
    	};
    	</script><p class="noscript robots-nocontent">This slideshow requires JavaScript.</p>
    	<div id='gallery-3327-1-slideshow' class='slideshow-window'></div>
    
    	<style>
    	#gallery-3327-1-slideshow .slideshow-slide img {
    		max-height: 410px;
    		/* Emulate max-height in IE 6 */
    		_height: expression(this.scrollHeight >= 410 ? '410px' : 'auto');
    	}
    	</style>
    
    	<script type='text/javascript' charset='utf-8'>
    	jQuery( '.noscript' ).remove();
    	jQuery( document).ready( function() {
    		if(typeof SlideShow == 'undefined') return;
    		var slideShow = new SlideShow( jQuery('#gallery-3327-1-slideshow'), 544, 410, 'fade' );
    		slideShow.images = [ { 'src': 'https://cyclewriteblog.files.wordpress.com/2012/06/switzerland-1928-salt-lake-2002.jpg', 'id': '3384', 'caption': ''} ,  { 'src': 'https://cyclewriteblog.files.wordpress.com/2012/06/1924-winter-olympics.jpg', 'id': '3385', 'caption': 'Former Winter Olympics banners from other host cities hang permanently in Creekside Community Centre. Olympic Village, Vancouver BC 2012.  Photos by J. Chong'} ,  { 'src': 'https://cyclewriteblog.files.wordpress.com/2012/06/calgary-1986.jpg', 'id': '3386', 'caption': ''} ,  { 'src': 'https://cyclewriteblog.files.wordpress.com/2012/06/germany-1936.jpg', 'id': '3387', 'caption': ''} ,  { 'src': 'https://cyclewriteblog.files.wordpress.com/2012/06/oslo-1952.jpg', 'id': '3388', 'caption': ''} ] ;
    		slideShow.init();
    	} );
    	</script>

Topic Closed

This topic has been closed to new replies.

About this Topic