Java Script confusing my son

Keltic Ice Man

Glossary King
Suspended / Banned
Messages
3,179
Name
Allan
Edit My Images
Yes
I wonder if anyone can help my 13 yr old son - he's building a website using blogger for a friend who does face painting.

He has put a script together that works in Firefox but he cant work out why it doesnt work in Internet Explorer so I'm wondering if anyone can help.

The java script produces a lightbox for photos, so the site shows thumbnails and you click and the lightbox kicks in. As I say it all appears great in firefox, but on IE as soon as the site loads it gets a black screen over it.

The site is www.jellinelli.com

Any clues would really help
Thanks

Allan
 
Viewing the site on my iPhone so can't be exactly sure but this could be a CSS issue. Looks like the the JS overlay has not been hidden correctly.

Like I said, can't be sure at the moment. Will take a look tomorrow night on my Mac.

Did he write the JS himself or is it a downloaded plugin fir jQuery etc?
 
my money is on this section:

Code:
<script src='http://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js' type='text/javascript'/> 
<script src='http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/scriptaculous.js' type='text/javascript'/>
<script src='http://jellihosting.hostwebs.com/lightbox/lightbox.js' type='text/javascript'/></script>

each line needs the script tags to be closed.

oh and please please please tone the colours down.. red writing on green really hurts the retinas..
 
my money is on this section:

Code:
<script src='http://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js' type='text/javascript'/> 
<script src='http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/scriptaculous.js' type='text/javascript'/>
<script src='http://jellihosting.hostwebs.com/lightbox/lightbox.js' type='text/javascript'/></script>

each line needs the script tags to be closed.

oh and please please please tone the colours down.. red writing on green really hurts the retinas..

Yup, IE doesn't like short tags for javascript files, replace the 3 lines with the following and see if it fixes it.

Code:
<script src='http://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js' type='text/javascript'></script> 
<script src='http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/scriptaculous.js' type='text/javascript'></script>
<script src='http://jellihosting.hostwebs.com/lightbox/lightbox.js' type='text/javascript'></script>
 
This issue seems to be prevalent when too many images are used with lightbox, have you attempted to dropping the image count to 1 as a test just to see if it works?

I believe it has something to do with the way lightbox utilises the opacity attribute.
 
Back
Top