I have tried to get this to work . . . followed instructions exactly . . . Nothing happens. I know the scripts work, seen them on other sites . . . but not on mine.
I rearranged by taking everything out of the main folder (prettyPhoto) and moving them (/js, /css, /images) into the main folder. Still nothing.
http://www.ahgweb.com/test/demo3/index.html
Simply one pic, want to get this to work . . . then can apply it to a project.
Hell, I do tech support for a software company. In the folder where the web page is stored, I have a folder named "prettyphoto" with the "css", "js" and "images" folders inside . . . exactly what I got in the zip file. Nothing more nothing less.
I added another folder in the same folder, named it "js" and put jquery.js inside of it.
Besides, I'm using front page as strictly an HTML editor. Never open the "normal" page to edit by pics. Every time I open the "preview page" it gives me notice that there are scripting errors directly related to this script.
It is convenient, however, as I can instantly load the page to the server to see if anything is working.
Reminds me of a line by Chief Dan George in the movie Little Big Man. He goes to the mountain to die, says his peace to the Creator, and lays down to die. Then the rain begins to fall. Dustin Hoffman starts talking to him and finally he says to Dustin Hoffman:
"Sometimes the magic works, sometimes it doesn't."
I'm guessing that's where this script falls: Sometimes it works, sometimes it doesn't.
Well I can't figure it out either. I started with the greybox script that I have always used to pop up Google Maps. If used greybox for gallery, the popup starts but no image. 2 scripts later, prettyPhoto being the 2nd one, I still don't get any javascript popups, just full page images like the above person said.
My site is at www.weightlossmapcenter.com/success-stories.php if anyone has time to check it out.
miko4u: i'm almost about to give up but when I added your code, it worked.. but only on images. Videos still open in a new page. Can anyone help? Thanks!