Nieuw lid |
|
Ik heb even voor de duidelijke de link + script erbij gedaan.
de link:
<a href="javascript:;" id="online"><img src="/images/frame/but_start_1.jpg" align="right" style="margin-right:40px;" border="0" /></a>
<a href="javascript:;" id="online"><img src="/images/frame/but_start_1.jpg" align="right" style="margin-right:40px;" border="0" /></a>
een stuk van het sript:
window.addEvent('domready', function() {
var schakelaar = true;
var geopend = false;
var mySlide = new Fx.Slide('frame');
$('online').addEvent('click', function(e){
if(getScrollHeight()==getHeight()) { // case sreensize is bigger than page size
var csize = $('footer').getPosition();
$('frame').style.height = (csize['y'] - 26 ) + 'px';
}
else {
var csize = $('content').getSize();
var myFx = new Fx.Style('frame', 'height').set( (csize['size']['y']) + 89 );
}
e = new Event(e);
mySlide.toggle();
e.stop();
});
$('but_start').addEvent('click', function(e){
if(getScrollHeight()==getHeight()) { // case sreensize is bigger than page size
var csize = $('footer').getPosition();
$('frame').style.height = (csize['y'] - 26 ) + 'px';
}
else {
var csize = $('content').getSize();
var myFx = new Fx.Style('frame', 'height').set( (csize['size']['y']) + 89 );
}
window.addEvent('domready', function() { var schakelaar = true; var geopend = false; var mySlide = new Fx.Slide('frame'); $('online').addEvent('click', function(e){ if(getScrollHeight()==getHeight()) { // case sreensize is bigger than page size var csize = $('footer').getPosition(); $('frame').style.height = (csize['y'] - 26 ) + 'px'; } else { var csize = $('content').getSize(); var myFx = new Fx.Style('frame', 'height').set( (csize['size']['y']) + 89 ); } e = new Event(e); mySlide.toggle(); e.stop(); }); $('but_start').addEvent('click', function(e){ if(getScrollHeight()==getHeight()) { // case sreensize is bigger than page size var csize = $('footer').getPosition(); $('frame').style.height = (csize['y'] - 26 ) + 'px'; } else { var csize = $('content').getSize(); var myFx = new Fx.Style('frame', 'height').set( (csize['size']['y']) + 89 ); }
|