|
|
 |
RE: FN-FORUM: Lightbox Javascript Problems
date posted 9th January 2007 20:26
Hi James -
I am sorry - I have just relooked at your code (it has been a very busy,
long day!)
I think I know better where the issue is - in your links to each example
site, you are naming each map area as an example (i.e. "example1, example2,
etc"). I think the getElementbyID may not be understood by Firefox and
Opera, which may be looking for a specific object to pick up, and not the
co-ordinates of a map, which has effectively been split into three parts. IE
may well understand it, but then don't forget that IE is not the world's
most standard compliant browser!
It does raise another issue though - you have used 2 maps within your code;
one for the contact us logo, and one for the example sites. In my personal
opinion, I think using a map for the contact us logo is overkill; all this
should need is a standard href link and image (i.e. ). I think this might make life a little easier for
you as well. With regards to the map, if someone has their images switched
off for any reason, it does mean that no-one can view the example sites very
easily, as you have to move the mouse around to know where the map
boundaries are, let alone which site is which.
I know this is probably me being a little bit fussy, but web designers do
have a certain obligation to provide a degree of accessibility to websites.
For personal sites it does not matter so much, but if you are keen on
turning web development into a career for yourself, you will have to think
more about this. If I were doing this, I think I would look to set up some
example sites on your webspace (does not need to be much, just one or two
pages), then link to individual ones, and not through a map. If someone has
images turned off for any reason, at least they can go and see the site as
an alternative. You can then use images to link to each site, based around
the Lightbox code I have already provided.
Have a play with the code I provided in an original posting - I'd be
interested to know how you get on.
Alex.
-----Original Message-----
From: Alex Libby [EMAIL REMOVED]
Sent: 09 January 2007 20:07
To: [EMAIL REMOVED]
Subject: RE: FN-FORUM: Lightbox Javascript Problems
Hi James,
I know of Lightbox, and have had some problems getting it to work for me (to
an extent that I can reproduce it, should I use it for new websites that I
build). I have had a look at your code - I think the error is down to a
conflict of javascripts which IE is having a problem with - even though the
author does recommend using "onload" to cure this, I have not found it
necessary so far, and I think the error lies in how you have set up the
onload statement in your code. With some work, I came up with this as a
basic set up for Lightbox, which should be enough to illustrate whether it
works or not. I know that sometimes the close image which is set to show
does not always work in some instances, but otherwise the code below should
work in IE7, Firefox 2 and Opera 9.
Give it a go - let me know how you get on.
Alex.
CODE:
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of James
Herrington
Sent: 09 January 2007 19:34
To: FN-FORUM / [EMAIL REMOVED]
Subject: FN-FORUM: Lightbox Javascript Problems
Hi all,
I have just finished rebuilding my site in CSS however i have a problem with
the lighbox image gallery component which i am using to load the images. The
script loads the images on top of the page however the only browser this
works in at the moment is IE. Does anyone have any ideas why its not working
in the other browsers?
Also if anyone notices any problems with the way the site is rendered can
you please let me know because i have not tested it fully yet!
Thanks
James
--
Freelancers, contractors earn more with Prosperity4 Call 0870 870 4414 or
visit www.prosperity4.com and benefit from Inland Revenue approved expenses
today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|