JQuery Adjust
- Started
- Last post
- 27 Responses
- Dancer0
Nope.. you lost me again :)
- acescence0
something like this maybe, haven't actually tested it..
- Dancer0
I see.... I thought you meant in the lightwindow.js file.
Will give it a go for sure
- Dancer0
Unfortunately no...:(
- Dancer0
nb,
Do you mean, within lightwindow.js?(sorry just got in)
- Dancer0
Also I want it to do it onload not onClick
- 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.
- kalkal0
Also, as far as I see, Lightwindow is based on prototype, not jQuery?..
- Dancer0
Sorry yeah, you're right. My Bad.
It's all fancy Javascript though right?
- kalkal0
Well I would say its
<body onload="initialize();">
Based on this bit
},
//
// Initialize the lightwindow.
//
initialize : function(options) {Which is the trigger script but I don't see how to declare which link you want to trigger.
- Dancer0
Ok.
A bit beyond me... may try a different Method.
Thanks
- Dancer0
no dice. thanks for the suggestion though
- Daithi0
colorbox does this I think
- Daithi0
http://colorpowered.com/colorbox…
Yup:
open false
If true, the lightbox will automatically open with no input from the visitor.
- 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
Thanks... well I think I put it in right but Still doesn't work. Thanks for your effort though Kalkal