Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Javascript Image Array

Featured Replies

Hi Guys,

 

Im battling with JavaScript... I am a total noob at it and can never get it...

 

 	// Default Options
	var defaultOptions = {
		animate		: true,	// Animate the progress? - default: true
		showText	: true,		// show text with percentage in next to the progressbar? - default : true
		width		: 120,		// Width of the progressbar - don't forget to adjust your image too!!!
		boxImage	: 'lib/jsprogress/images/bramus/percentImage.png',	// boxImage : image around the progress bar
		barImage	: 'lib/jsprogress/images/bramus/percentImage_back1.png', 	// Image to use in the progressbar. Can be an array of images too.
		barImage	: 'lib/jsprogress/images/bramus/percentImage_back2.png',

		height		: 12,		// Height of the progressbar - don't forget to adjust your image too!!!
		onTick		: function(pbObj) { return true }
	}

 

I need to put the barImage into an array and when I do it dreamweaver does not like it one bit!

 

Can anyone tell me howto do it as im getting soo confused :(

 

Rob

  • Author

That got it :)

 

I thought I had tried that earlier but it turned out I was using () instead of []

 

Thanks man :p

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.