Hi to all,
I have this Javascript that loads a set of banners based on the "div id Number" the actual loading of the banners from the database are done in ASP and then based on the values "i.e. feature product" are loaded to the clients browser and then the "div id Numbers" which are stored in the javascript will show in the animation.
currently when i try to load more or less "div id numbers" with the ASP code that are not in the javascript it displays the banners below the animation and the animation stops.
what i would like it to do is load all banners listed by its value
"i.e. feature product" and have them load one after the other like a traditioanal rotating banner system.
The ASP code used to load banners holds images, links and text.
this is the Javascript i have:
<script type="text/javascript" language="JavaScript">
var cm_interval = 5000;
var cm_count = 6;
var cm_cur_item = 1;
var cm_uid = 73386;[login to view URL]('73386_2' ).[login to view URL] = "none";
[login to view URL]('73386_3' ).[login to view URL] = "none";
[login to view URL]('73386_4' ).[login to view URL] = "none";
[login to view URL]('73386_5' ).[login to view URL] = "none";
[login to view URL]('73386_6' ).[login to view URL] = "none";
var timer = setInterval("animate()",5000);
function animate(){cm_cur_item = cm_cur_item + 1;
if (cm_cur_item > cm_count )
{
cm_cur_item = 1;
}
for (i = 1; i <= cm_count ; i++)
{
var divid = cm_uid + "_" + i;
var divid_str = divid + '' ;
if (i == cm_cur_item)
{
[login to view URL](divid_str).[login to view URL] = "block";
}
else{[login to view URL](divid_str).[login to view URL] = "none" ;
}
}
}
</script>
also i would like to incorporate some kind of transitional fade between banners. (images only)
if you need to see the ASP please ask.
Regards,
Angelo
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Windows 2003 IIS 6
ASP VBscript and Javascript
All browsers