Ticket #836 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 weeks ago

[patch][cla] SlideShowBanner (new widget)

Reported by: tk Owned by: tk
Priority: normal Milestone: 1.2
Component: DojoX Widgets Version: 0.3
Severity: normal Keywords: SlideShow Banner slideShowBanner imageBanner
Cc:

Description (last modified by dylan) (diff)

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 http://dojo.xnet.org (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 www.ls1powertuning.com/header.html

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

SlideShowBanner.zip (3.2 kB) - added by ktiedt@… 2 years ago.
all 3 files required for slideShowBanner
SlideShowBanner.rar (2.9 kB) - added by ktiedt@… 2 years ago.
Updated for revision latest SVN head
SlideShowBanner.diff (11.1 kB) - added by tk 22 months ago.
SlideShowBanner? in diff format

Change History

Changed 2 years ago by ktiedt@…

all 3 files required for slideShowBanner

Changed 2 years ago by ktiedt@…

  • milestone set to 0.4

updating this to 0.4 milestone

Changed 2 years ago by dylan

  • status changed from new to assigned
  • owner changed from anonymous to dylan

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

Changed 2 years ago by ktiedt@…

Updated for revision latest SVN head

Changed 2 years ago by ktiedt@…

Done ;)

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

-tk

Changed 23 months ago by dylan

  • summary changed from SlideShowBanner (new widget) to [patch][cla] SlideShowBanner (new widget)

Changed 22 months ago by dylan

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

Changed 22 months ago by tk

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

-Karl

Changed 22 months ago by tk

SlideShowBanner? in diff format

Changed 22 months ago by dylan

  • milestone changed from 0.4 to 0.5

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

Changed 15 months ago by bill

  • owner changed from dylan to ktiedt
  • status changed from assigned to new
  • milestone deleted

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

Changed 14 months ago by peller

  • component changed from Widgets to Dojox

Changed 13 months ago by tk

  • cc ktiedt@… removed
  • status changed from new to assigned
  • owner changed from ktiedt to tk
  • reporter changed from ktiedt@gmail.com to tk

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.

Changed 5 months ago by dylan

  • milestone set to 1.2

Changed 5 months ago by bill

  • component changed from Dojox to DojoX Widgets

Changed 2 weeks ago by dylan

  • status changed from assigned to closed
  • resolution set to fixed
  • description modified (diff)
Note: See TracTickets for help on using tickets.