JQuery Adjust
- Started
- Last post
- 27 Responses
- Dancer0
If you were sitting here acesence I would kiss you....
- Dancer0
Unfortunately no...:(
- Dancer0
I see.... I thought you meant in the lightwindow.js file.
Will give it a go for sure
- acescence0
something like this maybe, haven't actually tested it..
- Dancer0
Nope.. you lost me again :)
- Dancer0
So I guess this is a sort of fix but I am unsure how to centre the box no matter what the size of the browser is ...
Thanks for you help as always QBN
:)
- Dancer0
Nope.
I tried to implement what Kalkal & Acescence posted up there ^ http://www.datawinconsulting.com…I can get this to work sort of.
Link now changed:
http://www.adance.co.uk/dump/lig…
- neverblink0
How about you remove that 'false' from the observe() somewhere at the end of lightwindow.js ? It looks like it's already doing what you want, but that false is stopping it..
- Dancer0
hehe. Yeah I got that part wrong...
It's amazing how I think the simplest things take all day.
- neverblink0
hmm.. should work..
*checks your sourcecode
Ah! you're using prototype not jQuery in that first example you posted! Yeah, that won't work then.
- Dancer0
no dice. thanks for the suggestion though
- neverblink0
Just create a new script tag at the end of your head.
Put in what I wrote above.
The script will 'fake' a click on the link to open the lightwindow once the page has loaded.
- Dancer0
Also I want it to do it onload not onClick
- Dancer0
nb,
Do you mean, within lightwindow.js?(sorry just got in)
- neverblink0
you can do clicks with jQuery...
so on your lightwindow page, you could just do
$(window).load(function(){
$('a.lightwindow').click();
}
- Dancer0
Thanks... well I think I put it in right but Still doesn't work. Thanks for your effort though Kalkal
- Daithi0
http://colorpowered.com/colorbox…
Yup:
open false
If true, the lightbox will automatically open with no input from the visitor.