This is a discussion on "Viewing Portfolio" within the Web Page Design section. This forum, and the thread "Viewing Portfolio are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Viewing Portfolio
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Viewing Portfolio
I have seen this on other websites
Peoples portfolios that have small pictures of there work, then when you click on the picture it greys out the background and enlarges the picture on the same page. Does that make sense? How is it done? I will try and find an example? Cheers Daniel |
|
|
|
|||
|
Re: Viewing Portfolio
That's done through a javascript called Lightbox.
It lets you click on a small picture then a bigger one will expand on the screen. It's really neat, you can download it free here: http://www.huddletogether.com/projects/lightbox2/ Hope this helps! |
|
||||
|
Re: Viewing Portfolio
Yes ... Lightbox is the most used. The are many others tho ...
|
|
|||
|
Re: Viewing Portfolio
You could always make your own if you can't find something you like, though.
|
|
|||
|
Re: Viewing Portfolio
I have been playing around with it and can get it to work.
But when I attach it to my design it doesnt work I think it could be something to do with the rollover images I have, As you have to put onload="initLightbox()" in front of <body
The website is underconstruction at the moment as you will see. http://www.bradfordarmshotel.com/tes...lio/index.html Any help will be greatful Cheers Dan |
|
|||
|
Re: Viewing Portfolio
Been trying all night cant figure out where I have gone wrong, I got rid of the onload=""stuff. Still no joy.
Try again tomrow |
|
|||
|
Re: Viewing Portfolio
Ok start over....
You are trying to use Lightbox? What image are you trying to use it on? The motorcycle? |
|
|||
|
Re: Viewing Portfolio
Are the files (Lightbox JS and CSS) even on your server? Or maybe they're in the wrong place. I can't seem to find them.
But the browser is looking for lightbox.css. I got this instead of a css file when I searched for all styles being used. " <HTML> <HEAD> <TITLE>404 Not Found</TITLE> </HEAD> <BODY> <H1>Not Found</H1> The requested document was not found on this server. <P> <HR> <ADDRESS> Web Server at bradfordarmshotel.com </ADDRESS> </BODY> </HTML> <!-- - Unfortunately, Microsoft has added a clever new - "feature" to Internet Explorer. If the text of - an error's message is "too small", specifically - less than 512 bytes, Internet Explorer returns - its own error message. You can turn that off, - but it's pretty tricky to find switch called - "smart error messages". That means, of course, - that short error messages are censored by default. - IIS always returns error messages that are long - enough to make Internet Explorer happy. The - workaround is pretty simple: pad the error - message with a big comment like this to push it - over the five hundred and twelve bytes minimum. - Of course, that's exactly what you're reading - right now. --> " |
|
|||
|
Re: Viewing Portfolio
Key Level1-Level2-Level3-Level4
My structure www.bradfordarmshotel.com/ test1/ Templates/fwdtemp.dwt assets/buttons /images css/lightbox.css (files from light box) about/index.html contact/index.html services/index.html images (files from light box) /ducattivfr.jpg-ducattivfr1.jpg js/effects.js (files from light box) /prototype.js (files from light box) /scriptaculous.js (files from light box) /lightbox.js (files from light box) portfolio/index.html prices/index.html fwd.css index.html I have attached this to my template
can anyone see where I am going wrong Cheers Dan Last edited by R8515198; Jul 29th, 2007 at 13:55. |
|
|||
|
Re: Viewing Portfolio
Either your files are not uploaded to your server or your paths to your javascript are incorrect because they are still Error 404 unfound.
This is the path that you have that is unfound. Check this for accuracy. Once you sort that out, you'll be good to go. Your html code is correct. Right now your lightbox javasript is saying it's 4 levels down from the root. But in your structure you typed for us to see, you say it's 2 levels down from root. |
|
|||
|
Re: Viewing Portfolio
http://www.bradfordarmshotel.com/test1/js/lightbox.js
This is where the lightbox.js is I have put a key in the structure so its easier understood Last edited by R8515198; Jul 29th, 2007 at 13:56. |
|
|||
|
Re: Viewing Portfolio
http://www.bradfordarmshotel.com/test1/js/lightbox.js is where the lightbox is.......
but this is what you have in the head of your html. http://www.bradfordarmshotel.com/tes...js/lightbox.js See the difference? Go to the head of your page and change this code:
|
|
|||
|
Re: Viewing Portfolio
Oh dear,
That was so simple but I couldnt get my head around it. I was opening the template and everything looked fine. Cheers for all the help. Daniel |
|
|||
|
Re: Viewing Portfolio
What am i doing now!!
It works put doesnt use the whole screen http://www.bradfordarmshotel.com/tes...lio/index.html |
|
|||
|
Re: Viewing Portfolio
It's pretty big on my screen! How big do you want the lightbox pic to be?
You will have to alter the size of the dimensions in this file. css/lightbox.css (files from light box) |
![]() |
| Tags |
| html, java |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Viewing in other browsers without installing | rubyfruit | Starting Out | 5 | May 23rd, 2008 10:13 |
| viewing someone elses css file | highrik | Web Page Design | 3 | May 20th, 2008 13:04 |
| Viewing source when no menu bar | cyberseed | Web Page Design | 13 | Apr 26th, 2007 12:44 |
| viewing code | ivyholly | Web Page Design | 7 | Nov 13th, 2005 16:45 |
| Viewing source code?? | autumn_whispers2me | Web Page Design | 4 | Feb 14th, 2005 17:40 |