.
* (2) Insert a container element that can accept a background-image style,
* such as
or
, where you want the image gallery to appear,
* and make sure you give it an id="imageContainer".
* (3) Inside the imageContainer, insert your first image, making sure that
* the tag gets both a name="SlideShow" and an id="SlideShow"
* attribute. So the code in your body should look like this:
*
* (4) Add an onload event handler to your document's tag to start
* the slideshow:
*
*********************************************************************************
*/
// Global configuration variables
// Edit values of these variables to control behavior of the slideshow.
// List names of images to be displayed in the imageList array
var imageList = new
Array("images/lsuhistory/AnnouncingBeneathe.png","images/lsuhistory/FromBeneathe.png");
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Global variables (do not edit these)
var currentIndex = 0;
var imageGallery = new Array();
for(var x = 0; x < imageList.length; x++){
imageGallery[x] = new Image();
imageGallery[x].src = imageList[x];
}
function checkOpacitySupport(){
// Function checks whether the browser supports w3C-style opacity,
// or IE7-style opacity via object.style.filter=alpha(opacity=##).
// If it finds neither method supported, it returns "Plain Vanilla",
// i.e., no support for opacity.
var returnValue = "Plain Vanilla";
if(document.defaultView && document.defaultView.getComputedStyle){
if(document.defaultView.getComputedStyle(document.images[0],null).getPropertyValue("opacity")){
returnValue = "Firefox-style";
}
} else {
try{
document.images[0].style.filter = "alpha(opacity=100)";
returnValue = "IE7-style";
} catch(e){
// Error. filter/alpha opacity not supported. Do nothing.
}
}
return returnValue;
}
function runSlideShow(){
document.images.SlideShow.src = imageGallery[currentIndex].src;
var opacitySupport = checkOpacitySupport();
if(opacitySupport == "Firefox-style"){
var container = document.getElementById("imageContainer");
var imageHeight = imageGallery[0].height + "px";
var imageWidth = imageGallery[0].width + "px";
container.style.height = imageHeight;
container.style.width = imageWidth;
if(imageGallery.length > 1){
container.style.backgroundImage = "url('" + imageGallery[1].src + "')";
} else {
container.style.backgroundImage = "url('" + imageGallery[0].src + "')";
}
container.style.backgroundRepeat = "no-repeat";
document.images.SlideShow.style.opacity = "1.0";
var timerID = setTimeout("changeImageFF()",slideShowSpeed); // second arg is display time.
} else if(opacitySupport == "IE7-style"){
var timerID = setTimeout("changeImageIE()",slideShowSpeed); // second arg is display time.
} else {
var timerID = setTimeout("changeImageOther()",slideShowSpeed); // second arg is time between image-swaps
}
}
function changeImageFF(){
var pic = document.getElementById("SlideShow");
var container = document.getElementById("imageContainer");
var opacity = pic.style.opacity;
if(opacity > 0){
pic.style.opacity -= 0.01;
t = setTimeout("changeImageFF()",crossFadeDuration*10);
} else {
var oldIndex = currentIndex;
if(currentIndex < imageGallery.length - 1){
currentIndex++;
} else {
currentIndex = 0;
}
pic.src = imageGallery[currentIndex].src;
pic.style.opacity = 1.0;
container.style.backgroundImage = "url('" + imageGallery[oldIndex].src + "')";
t = setTimeout("changeImageFF()",slideShowSpeed);
}
}
function changeImageIE(){
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
document.images.SlideShow.src = imageGallery[currentIndex].src;
document.images.SlideShow.filters.blendTrans.Play();
if(currentIndex < imageGallery.length - 1){
currentIndex++
} else {
currentIndex = 0;
}
t = setTimeout("changeImageIE()", slideShowSpeed); // Call changeImageIE recursively
}
function changeImageOther(){
// This function does a simple image-swap without trasition effects, for browsers
// that support neither FF-style "image.style.opacity" nor IE7-style "image.style.filters".
if(currentIndex < imageGallery.length - 1){
currentIndex++;
} else {
currentIndex = 0;
}
document.images.SlideShow.src = imageGallery[currentIndex].src;
t = setTimeout("changeImageOther()",slideShowSpeed); // function recursively calls itself
}
// END image gallery functions
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i
Dictionary Added to MedlinePlus Mobile The National Library of Medicine just added the Merriam-Webster medical dictionary to MedlinePlus Mobile. Merriam-Webster’s mobile-optimized medical dictionary contains the same entries and definitions that you’ll find on the full MedlinePlus site. Using it is simple. Point the web browser on your mobile device to the MedlinePlus Mobile home page at http://m.medlineplus.gov/ and click on the Dictionary link to look up a word. The mobile-optimized medical dictionary also includes audio pronunciations for many of the entries.
The Library now offers the mobile version of MD Consult, accessible through your iPhone, Blackberry, Treo, or other web-enabled smartphone. To get started, access MDConsult from an LSUHSC-S computer. Click on “Create an Account” on the top right of the screen, complete the registration form, and click “Submit.” You must log out of MDConsult on the workstation, then you can log into MDConsult Mobile by visiting http://mobile.mdconsult.com from your mobile browser.
Lights and Outlets Added to Library Carrels
The library now has 15 study carrels equipped with fluorescent lights and outlets where you can plug in your laptops without having to find a wall outlet. You can find them at various locations on the library’s ground and second floors.
LSUHSC-S Wins Medical Library Association Award
A team of LSUHSC-S researchers was recently awarded second place for a research-based paper presented at the Medical Library Association Annual Meeting. The report on “The Effect of a Clinical Medical Librarian as Part of an Internal Medicine Team on Hospital Length of Stay and Costs” was authored by Julia Esparza, Clinical Medical Librarian; Daniel Banks, Department Chair and Professor, Department of Medicine; Marianne Comegys, Library Director; Jerry McLarty, Director, Cancer Prevention and Control, and Professor, Feist-Weiller Cancer Center; and Runhua Shi, Associate Professor, Feist-Weiller Cancer Center; along with Ulysses S. Wu, formerly of LSUHSC-S. The award was sponsored by the Research Section of the Medical Library Association.
Congratulations to our award-winning researchers!
FAQ: Why am I turned away?
When you are trying to access an electronic book in resources such as Stat!Ref or AccessMedicine, you may get a response that the e-book is in use and unavailable. This occurs because our license for these resources limits the number of people allowed to view the site at the same time. If you do get turned away, please try again in a few minutes. If this problem occurs repeatedly, contact the Library at shlibref@lsuhsc.edu, and a librarian will contact you shortly.