Ok. I'm trying it out now. I've started with a basic script that has the links in place at page load time. Once I get that working, I'll do the AJAX piece. I've got the script on my page as follows:
Code:
<script type="text/javascript" src="/viewfadeslide.js">
/*Omni Image View, Fade, and/or Slide Script �2008 John Davenport Scheuer
as first seen in http://www.dynamicdrive.com/forums/
username: jscheuer1 - This Notice Must Remain for Legal Use*/
</script>
<a href='/images/partners/4b4f6740dd55dc6cd8910e12935b7036.png' name='image 1' rel='vfsimage::mouseover' rev='vac'></a>
<a href='/images/partners/5541135bfc0bfa922f867aaf6eeb8d29.png' name='image 2' rel='vfsimage::mouseover' rev='vac'></a>
<a href='/images/partners/ac8459cfba6ef22915d7c2b820a275aa.png' name='image 3' rel='vfsimage::mouseover' rev='vac'></a>
<a href='/images/partners/ecd73f1303fb8199d86cdb3624b25f0e.png' name='image 4' rel='vfsimage::mouseover' rev='vac'></a>
<div align="center" valign="middle" id="vac" style="width:165px;height:130px;"></div>
And inside the .js file, I've got the following configuration:
Code:
var viewfadeslide = { //place comma after each entry
//Use true or false or object containing boolean values for separate primary load areas
enableCaption : false, //Should "title" attribute of link and any paired image's 3rd parameter to be used as caption?
makeTitle : false, //Make title attribute for enlarged image from name attribute of trigger link?
hideImgMouseOut : false, //Hide enlarged image when mouse moves out of anchor link? (if enlarged image is hyperlinked, always set to false!)
disableOnClick : true, //Disable default onclick for mouseover triggers?
populateWithFirst : true, //Fire first link in load area group(s) onload?
enableCount : false,
//Use true or false
enableTransition : true, //Enable GradientWipe transition in IE 6+? (if true & not IE or an earlier IE, a fade transition will be attempted)
forceFade : false, //Ignore GradientWipe capability and go for fade transition in any capable browser? (requires enableTransition : true)
//Use true or false or object containing boolean values or tag name for separate primary load areas
writeNumberButtons : false, //Also requires element with id of load_area_idNum ex: <div id="loadareaNum"></div>
writeControlButtons : false, //Also requires element with id of load_area_idControl ex: <span id="loadareaControl"></span>
useButtons : false, //Allows choosing individual Control buttons by numbers, ex: useButtons : {loadarea: {4 : true, 5 : true}},
//Works off array: 0 = 'Next', 1 = 'Previous', 2 = 'First', 3 = 'Last', 4 = 'Run', 5 = 'Stop' - otherwise just set to true
enableSlideShow : true, //Enable slide show(s) use - true/false or {load_area : delay}
startSlideShow : true,
swapControlVals : false, //true false or object with boolean values - should running/paused state affect buttons?
//Below three (only valid if slide show running) may use pause or stop, if a load area is not mentioned, nothing will happen for these cases
slideHoverBehavior : 'stop', //What happens onmouseover of larger images if slide show is running
slideTriggerBehavior : 'pause', //What happens triggers when are activated if slide show is running
slideNumberButtonsBehavior : 'stop', //What happens when numbered buttons are clicked if slide show is running
//Set to true only if using lightbox 2.04a add on and lightbox groups
enableLightBoxGroups : false, //Enable writing out all lightbox group links (lightbox[groupname]) links to a display none div? (true/false only)
Nothing seems to be happening, so I'm suspecting I don't have the settings correct. I'd like it to start displaying images when as soon as it finds the links. I don't want any start buttons, image numbering, or other bells and whistles. Any suggestions?
Bookmarks