Results 1 to 2 of 2

Thread: Problems creating banner web control

  1. #1

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366

    Problems creating banner web control

    I am writing a banner web control at the moment. Just want your thoughts.

    Everything I have down, except for the fact that the images on the banner rotate each x seconds.
    Now a banner could have 30 images it needs to rotate.

    Problems..

    1.) You can't preload 30 images, would take way too long. I would like the next image to be loaded, while the one before it is being displayed.
    2.) When an image is loaded, the impression counter in the database needs to be updated for that specific banner.
    3.) How do I set the delay. I would assume Javascript is the answer here? Or is it?


    Any suggestions?
    He who has conquered himself, is far greater than he who has conquered a thousand men... - The Buddha

  2. #2
    Addicted Member rabid lemming's Avatar
    Join Date
    Feb 2005
    Posts
    210

    Lightbulb Re: Problems creating banner web control

    I would consider using flash for something like this because you can preload images inadvisably and flash is a lot better for this sort of thing. If your determined to use JS then you can preload images individually with JS and you could probably code all this in just JS but it be a bit harder than it needs to be, If you want to use ASP then id suggest perhaps checking out the AdRotator component ...it may make life easier. I think you really want to decide which language you want to use for this. As for your problems...You can code on the most part to load images individually so as image 5 is showing...load image 6 ready to be shown next. Use a counter in your code to keep track of witch image is loaded and which one to load next. You can use a JS setInterval or a asp timer you could use something like: http://www.dotnetcoders.com/web/Arti...spx?article=29

    Personally id look at using flash, then asp and JS last for doing this sort of thing

    I will wait for death with a smile and a big stick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width