var BannerNo; var myHeadlineText = new Array(); var mySubText = new Array(); var myLink = new Array(); var myWeight = new Array(); // ****************** INSTRUCTIONS ************** // To add another Banner simply copy and paste the last of the codes below // to a new line and change all instances of that NUMBER to the next number // in sequence. I.E. myHeadlineText[2] would change to myHeadlineText[3] etc. // Change the values for myHeadlineText, mySubText, myLink, and myWeight. // Add your banner to the images folder with the appropriate naming convention. // For example if you were adding Banner 4 it would be named banner4.jpg, Banner 5 // would be banner5.jpg etc... // // If you have any questions email dcurtis@utnet.utoledo.edu or robbnardecchia@gmail.com // // ************************************************ //Headline Text for Banner 0 myHeadlineText[0] = 'UT\'s Summer Career Fridays'; //Subline Text for Banner 0 mySubText[0] = 'Fridays are even sweeter in the summer, with UT\'s Summer Career Fridays. If you\'re starting your college search, sign up for one of 16 different programs to help you with decisions about college, majors and your future. Learn more.'; //Link for Banner 0 myLink[0] = "http://admission.utoledo.edu/summer"; //Weight for Banner 0 (0= NO DISPLAY, Increases in Display Odds as Number increases) myWeight[0] = 4; myHeadlineText[1] = 'Calling All Incoming Students'; mySubText[1] = 'If you are going to be a new UT student this fall, be sure to sign up for Rocket Launch or Rocket Transition (for transfer students). You can register for classes, get important information about the University, and meet fellow classmates. Learn more about orientation and sign up for dates.'; myLink[1] = "http://orientation.utoledo.edu"; myWeight[1] = 4; myHeadlineText[2] = 'Register for Summer Courses'; mySubText[2] = 'Interested in starting a degree? Getting ahead in your degree program? Or being a guest student? Check out the complete schedule of UT\'s summer courses to get started.'; myLink[2] = "http://www.utoledo.edu/offices/registrar/main_campus/sch_classes.html"; myWeight[2] = 0; myHeadlineText[3] = 'Art-Tastic'; mySubText[3] = 'The Blade and the UT Alumni Association present the 16th annual Art on the Mall Sunday, July 27, from 10 a.m. to 5 p.m. in UT\'s Centennial Mall. At the free, public event, artists will exhibit and sell their pieces in a variety of media.'; myLink[3] = "#"; myWeight[3] = 4; myHeadlineText[4] = 'Improving the Human Condition'; mySubText[4] = 'Read about some of the accomplishments and challenges of merging two great institutions nearly two years ago.'; myLink[4] = "#"; myWeight[4] = 0; myHeadlineText[5] = 'National Media Coverage for UT Medical Center Urologist'; mySubText[5] = 'University of Toledo Medical Center urologist Dr. Michael Rees has established the framework for a new altruistic kidney donation process that turns strangers into lifesavers and could save thousands of lives a year. Read and view the national media coverage this transplant program is earning.'; myLink[5] = "http://utoledo.edu/utcommcenter/kidney/"; myWeight[5] = 0; // ++Failsafe Banner++ //**************************DO NOT ALTER****************************** arrayLen = myHeadlineText.length; myHeadlineText[arrayLen] = 'Experience The University of Toledo'; mySubText[arrayLen] = 'Learn what The University of Toledo is like from the people who know best — our students. Experience The University of Toledo today!'; myLink[arrayLen] = "http://experience.utoledo.edu"; //**************************DO NOT ALTER****************************** // ++Weight Calculation++ //**************************DO NOT ALTER************************* var weightTotal = 0; //* for(i = 0; i < myWeight.length; i++){ //* weightTotal += myWeight[i]; //* } //* //* randomNo = Math.floor(Math.random() * weightTotal ) + 1 ; //* //* var counter=0; //* for (var i=0; i= randomNo){ //* BannerNo = i; //* goodWrite(); //* break; //* } //* } //* //* if (typeof BannerNo=="undefined"){ //* BannerNo = arrayLen; //* safeWrite(); //* } //* //*************************DO NOT ALTER************************** // ++Output to HTML file++ //************************************************DO NOT ALTER******************************************************************** function goodWrite(){ document.write("
"); document.write("
" + myHeadlineText[BannerNo] + "
"); document.write("
" + mySubText[BannerNo] + "
"); } function safeWrite(){ document.write("
"); document.write("
" + myHeadlineText[BannerNo] + "
"); document.write("
" + mySubText[BannerNo] + "
"); } //************************************************DO NOT ALTER********************************************************************