Opened 16 years ago

Closed 14 years ago

#836 closed enhancement (fixed)

[patch][cla] SlideShowBanner (new widget)

Reported by: tk Owned by: tk
Priority: high Milestone: 1.2
Component: DojoX Widgets Version: 0.3
Keywords: SlideShow Banner slideShowBanner imageBanner Cc:
Blocked By: Blocking:

Description (last modified by dylan)

Basically this is an expansion of the slideShow widget... might could possibly be used as an inherit to reduce its size (im not that great with JS so I'd need outside explanation of that) (long... but my email to the dojo-interest list back when I originally finished this for 0.2.0

A working example can be found at (its a demo page stripped from what I needed it for -- this example is using the 0.2.0 code, but its functionality is the same, a working example of the 0.3.0 code can be found at

A few tidbits... this is based off of the SlideShow? widget (props to whoever wrote that it was a big help!) and this widget does a few things...

1) its written for me... so I tried making everything an option that others might not use... 2) it supports a background image and a logo image (sits on top of the widgets images) 3) it supports multiple directories for images so you can have it pool files of different types ie. images/ImageBanner/cars; images/ImageBanner/boats; 4) it is limited in its functionality on files... since JS cant read serverside w/o serverside+Ajax I opted for the generic 1.jpg 2.jpg 3.jog naming system for all the images 5) you must tell it how many images are in each directory, by doing this you can also limit each directory to only showing the first image or first 2... 6) it tracks the last X images (where X is the number of tile positions across the banner) and will not repeat them (I just realized I didnt make an on/off switch for this... so we're stuck with that for the time being 7) you can roate the images left to right or right to left 8) the rotation can start at a random location or all the way to the left (I think it may support hard coding the location in the HTML as well, dont remember off the top of my head) 9) the biggest thing I did... it compares the defined backgroundWidth against the tileWidth you setup for the banner images, and calculates an offset so that the images always start at the far left and end on the far right margin of the background iamge (in the demo I linked to the background is 1024 and the images are 192px wide, yet the images still line up perfect at the end ;)) 10) features from slideshow carried over: you can pause/unpause by clicking on the widget, and it resumes without a hitch now (continues where it left off)

Attachments (3) (3.2 KB) - added by [email protected] 16 years ago.
all 3 files required for slideShowBanner
SlideShowBanner.rar (2.9 KB) - added by [email protected] 15 years ago.
Updated for revision latest SVN head
SlideShowBanner.diff (11.1 KB) - added by tk 15 years ago.
SlideShowBanner? in diff format

Download all attachments as: .zip

Change History (16)

Changed 16 years ago by [email protected]

Attachment: added

all 3 files required for slideShowBanner

comment:1 Changed 16 years ago by [email protected]

Milestone: 0.4

updating this to 0.4 milestone

comment:2 Changed 15 years ago by dylan

Owner: changed from anonymous to dylan
Status: newassigned

if you update this to work with head, I'll merge it in.

Changed 15 years ago by [email protected]

Attachment: SlideShowBanner.rar added

Updated for revision latest SVN head

comment:3 Changed 15 years ago by [email protected]

Done ;)

I'll do up some images for use on the test page later... my current tests arent exactly... Dojo'ish at all :)


comment:4 Changed 15 years ago by dylan

Summary: SlideShowBanner (new widget)[patch][cla] SlideShowBanner (new widget)

comment:5 Changed 15 years ago by dylan

tk, I'm ready to work with you on this one over the weekend, if you are around...

comment:6 Changed 15 years ago by tk

Yup, I'm free all weekend, just shoot me an email or IM me.. (I'll email you my IM details)


Changed 15 years ago by tk

Attachment: SlideShowBanner.diff added

SlideShowBanner? in diff format

comment:7 Changed 15 years ago by dylan

Milestone: 0.40.5

Pushing to 0.5 as tk is going to extend the SlideShow? widget to reduce the size of this feature.

comment:8 Changed 15 years ago by bill

Milestone: 0.9
Owner: changed from dylan to Karl Tiedt
Status: assignednew

Karl, add this widget to dojox if you want to. Removing milestone for now.

comment:9 Changed 15 years ago by Adam Peller

Component: WidgetsDojox

comment:10 Changed 15 years ago by tk

Cc: [email protected] removed
Owner: changed from Karl Tiedt to tk
Reporter: changed from [email protected] to tk
Status: newassigned

Dante (Phiggins) is talking about porting this, but I believe I will talk to him and see if we cant make this work with the porting of SlideShow? that he did.

comment:11 Changed 14 years ago by dylan

Milestone: 1.2

comment:12 Changed 14 years ago by bill

Component: DojoxDojoX Widgets

comment:13 Changed 14 years ago by dylan

Description: modified (diff)
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.