// JavaScript Document // Created by: Mike Hudson :: http://www.afrozeus.com /* To change the values in the setupLinks function below. You will notice there are two arrays for each of Titles and Links. Currently there are 3 items in each array, but you can easily expand on that by adding to the array. For example, to add a 4th record, you would simply include the following 2 lines at the end of setupLinks function: arrLinks[3] = "someURL.htm"; arrTitles[3] = "Some title"; */ function setupLinks() { arrLinks[0] = "actualite.php?idActu16" ; arrTitles[0] = "ISYMOST
Version 5.05 Service Pack 1
"; arrLinks[1] = "actualite.php?idActu15" ; arrTitles[1] = "DIODORE USERS CLUB 2011 - PARISPRINCIPIA was pleased to welcome DIODORE users 9th of December 2011 in PARIS (TECHNIP premises)
"; arrLinks[2] = "actualite.php?idActu13" ; arrTitles[2] = "Wind Expo 2011Principia will be present at Offshore Wind Expo 2011 organized by EWEA (The European Wind Energy Association) in Amsterdam from the 29th November to the 1th December
"; arrLinks[3] = "actualite.php?idActu12" ; arrTitles[3] = "ECOLE CENTRALE DE MARSEILLEPartnership
"; arrLinks[4] = "actualite.php?idActu8" ; arrTitles[4] = "OMAE 2011 ConferencePRINCIPIA will be attending the 30th International Conference on Ocean, Offshore and Artic Engineering.
"; arrLinks[5] = "actualite.php?idActu9" ; arrTitles[5] = "Third meeting of Committee V.1 of International Ship and Offshore Structures CongressThe third meeting of Committee V.1 of ISSC (International Ship and Offshore Structures Congress) took place in FRANCE, at PRINCIPIA, in Nantes.
"; arrLinks[6] = "actualite.php?idActu7" ; arrTitles[6] = "PRINCIPIA NORTHThe new engineering company PRINCIPIA NORTH A/S was created the 1st of January 2011. It is built up by Principia in partnership with Hans Jorgen Riber
"; } var m_iInterval; var m_Height; //window.onload = wl; var iScroll=0; var arrLinks; var arrTitles; var arrCursor = 0; var arrMax; function wl() { m_iInterval = setInterval(ontimer, 10); var base = document.getElementById("jump_base"); m_Height = base.offsetHeight; var divi = parseInt(m_Height/5); m_Height = divi*5; var td1 = document.getElementById("td1"); var td2 = document.getElementById("td2"); var td3 = document.getElementById("td3"); td1.height = m_Height-5; td2.height = m_Height-5; td3.height = m_Height-5; arrLinks = new Array(); arrTitles = new Array(); setupLinks(); arrMax = arrLinks.length-1; setLink(); } function setLink() { var ilink = document.getElementById("jump_link"); ilink.innerHTML = arrTitles[arrCursor]; // ilink.href = arrLinks[arrCursor]; } function ontimer() { var base = document.getElementById("jump_base"); iScroll+=5; if (iScroll>(m_Height*2)) { iScroll=0; arrCursor++; if (arrCursor>arrMax) arrCursor=0; setLink(); } if (iScroll==m_Height) { pause(); m_iInterval = setTimeout(resume, 4000); } base.scrollTop=iScroll; } function pause() { clearInterval(m_iInterval); } function resume() { m_iInterval = setInterval(ontimer, 10); }