GetDotted Domains

Viewing Thread:
"Lightbox 2"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Fri 20/03/09 at 10:16
Regular
Posts: 7
Hi

I have just uploaded a new website www.gardenpigs.co.uk

All is working fine locally on my machine but once live on the web I seem to have two issues.

1) The Flash movie on the home page no longer works

2) The Lightbox 2 (JQuery) now no longer works, when you click on an image it just loads a new white page with the image in the corner.

Can any one help?

Thanks

Paul
Fri 20/03/09 at 10:16
Regular
Posts: 7
Hi

I have just uploaded a new website www.gardenpigs.co.uk

All is working fine locally on my machine but once live on the web I seem to have two issues.

1) The Flash movie on the home page no longer works

2) The Lightbox 2 (JQuery) now no longer works, when you click on an image it just loads a new white page with the image in the corner.

Can any one help?

Thanks

Paul
Fri 20/03/09 at 11:05
Regular
Posts: 391
Hi Paul

I have just had a brief look at your site. Regarding the lightbox, try putting the lightbox script tags before the image include tag, like this:


<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"> </script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />


<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
...
(etc)
</script>



It might be a bit more involved than this, but there are no other obvious errors at first glance.

As a side note, you are using the 'Prototype' version of lightbox, not JQuery - there is a JQuery one available that is based on this original one, which you could also try.
Fri 20/03/09 at 11:17
Moderator
"Are you sure?"
Posts: 5,000
Hi and welcome to the forums!
I've just had a very quick look - as I'm supposed to be doing something else! ;¬)

FWIW You have a few script errors to clear up.
In IE look at the bottom left of your browser for details or Tools>Error Console in FF.

Also in FF you might like to check the image at the bottom of the page.

Lightbox - do the images need to be in your 'images' directory?
Or it's possible you might have this problem as it looks as if you are using Dreamweaver.

See the first Support item
"It doesn't work at all. The image opens up in a new page. What's wrong?
This is commonly caused by a conflict between scripts. Check your body tag and look for an onload attribute."

(I tried posting the text here but Freeola don't allow long file names etc.)

Flash movie - Is it a SWF or FLV you are playing, and I take it you have uploaded it?

Not sure this is helping you very much!

Search Freeola Chat
Fri 20/03/09 at 11:48
Staff Moderator
"Aargh! Broken..."
Posts: 1,408
You have Google Analytics Javscript code at the bottom of the page that is escaped incorrectly. Try changing document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

to

document.write(unescape("%3Cscript src='" + gaJsHost + 'google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

Currently the Javascript errors because of this. It is probably why your flash player doesn't start (as it's invoked using Javascript) and why you lighbox is broken.
Fri 20/03/09 at 12:49
Regular
Posts: 7
Wow all this help and so quickly!

Thanks All will take a look when home form work

Regards

Paul
Fri 20/03/09 at 13:34
Regular
Posts: 391
Eccles wrote:
> You have Google Analytics Javscript code at the bottom of the
> page that is escaped incorrectly. Try changing
> document.write(unescape("%3Cscript src='" +
> gaJsHost + "google-analytics.com/ga.js'
> type='text/javascript'%3E%3C/script%3E"));
>

> to
>
> document.write(unescape("%3Cscript src='" + gaJsHost +
> 'google-analytics.com/ga.js'
> type='text/javascript'%3E%3C/script%3E"));
>

> Currently the Javascript errors because of this. It is probably
> why your flash player doesn't start (as it's invoked using
> Javascript) and why you lighbox is broken.

Very well spotted, Eccles!
Fri 20/03/09 at 14:37
Moderator
"Are you sure?"
Posts: 5,000
t1mmie wrote:
> Very well spotted, Eccles!


*cough*

Hmmm... wrote:
> ...You have a few script errors to clear up.
> In IE look at the bottom left of your browser for details or
> Tools>Error Console in FF....






Search Freeola Chat
Sat 21/03/09 at 13:47
Regular
Posts: 7
Hi all,

Re-uploaded all the scripts etc, plus found extra line script that was not required and it has soleved the Lightbox function.

I still however have a problem with the movie on home page not working.

I have re-uploaded the script and flash palyer stuff but not working still

Any thoughts.

Thank you all for your help.

Paul
Sat 21/03/09 at 14:50
Moderator
"Are you sure?"
Posts: 5,000
Glad to hear you're getting somewhere :¬)

I'm great at 'cobbling' things together - even when I don't really understand most of it!


I've got your video working here: Pig video - FLV player

Feel free to take my code if it helps you.





Search Freeola Chat
Sun 22/03/09 at 11:24
Regular
Posts: 7
Hmmm,

Tried the code, worked OK locally, have uploaded test page
www.gardenpigs.co.uk/index2.htm

Not working still, this is assuming I have added your code exactly as I should and not left anything in that I shouldnt have done!

Thanks again

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Best Provider
The best provider I know of, never a problem, recommend highly
Paul
Brilliant service.
Love it, love it, love it!
Christopher

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.