PDA

View Full Version : Fading Ticker Tape Script



deltaweb
09-24-2005, 02:52 AM
When using Fading Ticker Tape Script I get the message undefined for several seconds before it starts scrolling. Please see: http://www.springcreekbarbeque.com/ for an example.

Carl Brown
deltaweb@sbcglobal.net

jscheuer1
09-24-2005, 06:36 AM
Script conflict!

Both of the scripts on your page use the variable 'i' for counting off stuff. This is often fine but, sometimes (if they are both global variables as is the case here) they conflict. Fortunately your first script on the page can be made to use 'i' as a local variable. Do that and this problem will be eliminated. Replace it with this one:

<script type="text/javascript">

<!--
var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (var i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}
function slideshowlinks(){
for (var i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}
function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}
//-->
</script>

deltaweb
09-24-2005, 09:01 PM
Thank you so much, John. The fix worked perfectly. Thank goodness there are real geniuses out there to help is "muddlers" muddle through.