• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Why did my Java header stop working today?

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #130 (Hot or Cold), Memol..

The next Dgrin Challenge DSS #131 (Music) is open for entries through June 24th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Feb-25-2008, 01:37 PM
#1
kbev is offline kbev OP
Big grins
Why did my Java header stop working today?
Hi all,
I've had the same javascript rotating photos through my header for over a year now. Today, it stopped working. I haven't done anything (haven't even uploaded photos lately). It says the "page loaded, but with errors". in IE. I get my JPG logo, but the rotating photos are "missing". I have no idea "what changed" that would cause this error all of a sudden. like I said, i haven't changed anything in my customizations in months...

My Site: kbev.smugmug.com

The errors are:
[SIZE=2]>
> line 156, char 21, Error: "Lr" undefined, code 0
> line 140, char 21, Error: "Ll" undefined, code 0
> line 148, char 21, Error: "P" undefined, code 0
>

My Javascipt is:
var Ll = new Array();
Ll[0] = "http://kbev.smugmug.com/photos/75765833-Th.jpg";
...removed a list from this post...
Ll[14] = "http://kbev.smugmug.com/photos/190745066-Th.jpg";

var P = new Array();
P[0] = "http://kbev.smugmug.com/photos/73237446-Th.jpg";
...removed a list from this post...
P[17] = "http://kbev.smugmug.com/photos/246044775-Th.jpg";

var Lr = new Array();
Lr[0] = "http://kbev.smugmug.com/photos/73648115-Th.jpg";
...removed a list from this post...
Lr[13] = "http://kbev.smugmug.com/photos/193571175-Th.jpg";
function choosePhoto(parray)
{
inx = Math.floor(Math.random()*parray.length);
img = parray[inx];
document.write('[IMG]' + img + '[/IMG]');
}

[[[ i tried to post the header text, but it came out funny - sorry ]]]
Old Feb-25-2008, 01:49 PM
#2
Andy is offline Andy
panasonikon
Andy's Avatar
Devbobo made some changes to your code, is it all better now?

http://kbev.smugmug.com/
__________________
Andy
Moon River PhotographyWorkshopsGoogle+FacebookTwitter
Old Feb-25-2008, 02:05 PM
#3
kbev is offline kbev OP
Big grins
Thanks
Yup, that fixed it... but why did it need t be changed? It had been working fine for over a year? Am I cursed?

Quote:
Originally Posted by Andy
Devbobo made some changes to your code, is it all better now?

http://kbev.smugmug.com/
Old Feb-25-2008, 02:37 PM
#4
Barb is offline Barb
SmugMug Hero Captain
Barb's Avatar
Quote:
Originally Posted by kbev
Yup, that fixed it... but why did it need t be changed? It had been working fine for over a year? Am I cursed?
Hi :)

We recently made some changes in our system for speed reasons. You can find more information here:

http://www.dgrin.com/showthread.php?t=85302
__________________
Barb
PhotoscapeDesignFacebookTwitterGoogle+
Tell The World!  

Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump