Try setting visibility:hidden on this slide element in the actual
style sheet for the page. Then, after you have applied the event
listener, add this line:
$('vertical_slide').style.setAttribute('visibility','visible);
Untested, naturally, but if I read between the lines here, that’s what
it appears they are saying you should do. Sort of a belt-and-
suspenders approach, because the first line should hide the element
immediately, wrapped as it is inside a domready event listener.
Walter
On Mar 16, 2009, at 9:39 AM, Todd wrote:
Supposedly this should work to stop the flashing on load but not for
me. It’s the (.hide()) that’s throwing me, I thought it went after
(‘vertical_slide’) on the first line but that doesn’t seem to work.
Ideas?
“set visibility:hidden in your css, then in your js, initialize
Fx.Slide, hide it (.hide()) and then set style to visibility:visible.”
The original js:
var myVerticalSlide = new Fx.Slide(‘vertical_slide’);
document.addEvent(“domready”, function() {
$(‘vertical_slide’).slide(‘hide’);
$(‘global_connect’).addEvent(‘click’, function(e) {
e.stop();
$(‘vertical_slide’).slide(‘in’);
});
});
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options