rotate banner


///////////////////////////////////////////////////////////////////////////
/*
* Module: Rotates banners for Philips Semiconductors
* Name: rotate_banner.js
* Path:
* Version: 1.0
* Author: Erik Mollink / Jeroen Slagt /Ivo te Kiefte
* Owner: Ivo te Kiefte
* Since: javascript version 1.2
* Lastedited: 2003-07-31
*
*
*
* Initial version partially based on set_theme.js
*

*

*
* required banners.js
*/
//////////////////////////////////////////////////////////////////////////////

/*
* Rotates banners
* @param input is being read from input file banners.js that contains an array with required data
* @return nothing
*/

var lt_image_src='';var lb_image_src='';var rt_image_src='';var rb_image_src='';
var lt_link='';var lb_link='';var rt_link='';var rb_link='';
if((window.lt_banners)&&(lt_banners.length > 0)){
var which_ltbanner=Math.floor(Math.random()*(lt_banners.length));
lt_image_src=lt_banners[which_ltbanner][0];
lt_link=lt_banners[which_ltbanner][1];
}
if((window.lb_banners)&&(lb_banners.length > 0)){
var which_lbbanner=Math.floor(Math.random()*(lb_banners.length));
lb_image_src=lb_banners[which_lbbanner][0];
lb_link=lb_banners[which_lbbanner][1];
}

document.write('');

//only if not homepage
var sliced_url = document.location.href.split("/");
var is_homepage = (sliced_url.length >4? 0 : 1);

if(is_homepage!=1){
if((window.rt_banners)&&(rt_banners.length > 0)){
var which_rtbanner=Math.floor(Math.random()*(rt_banners.length));
rt_image_src=rt_banners[which_rtbanner][0];
rt_link=rt_banners[which_rtbanner][1];
}
if((window.rb_banners)&&(rb_banners.length > 0)){
var which_rbbanner=Math.floor(Math.random()*(rb_banners.length));
rb_image_src=rb_banners[which_rbbanner][0];
rb_link=rb_banners[which_rbbanner][1];
}

document.write('');
}

Wyszukiwarka

Podobne podstrony:
rotateX
rotate copy
function swffill rotateto
rotate
function swfdisplayitem rotate
PShape rotateY
PShape rotateZ
rotateY
rotatelogs
function pdf rotate
function cpdf rotate text
rotateX
function swf rotate
PShape rotate
function swfdisplayitem rotateto
function swfdisplayitem rotate

więcej podobnych podstron