Hi all, I'm new to this forum and looking for some help. Hope some of you guru's have the time to take a look, cause it's really starting to bug me.
I don't like the standard browser scroll bars, so I decided to use a different scrolling method. I have created an up and a down arrow image to use for scrolling text which is in another frame. This works like it should. See page Finland on this site (<!-- m --><a class="postlink" href="http://www.duppen.nl">http://www.duppen.nl</a><!-- m -->).
The problem is that the arrows always appear, thus also when scrolling is not necessary. I want the scrolling images only to appear when the text is should scroll exceeds the height of the frame (kinda mimin the working of scrolling=auto). The arrow images are in frame "right" and the text it scrolls is in frame "content". Is it possible to change the visibility of the arrow images as described above? And if so, how?
Something like this perhaps?
IF text.heigt > frame.height THEN
btn_pijl_scroll_up_light.visible = true
btn_pijl_scroll_down_light.visible = true
ELSE
btn_pijl_scroll_up_light.visible = false
btn_pijl_scroll_down_light.visible = false
END IF
Scrolling of the arrow images is done in javascript, as follows:
<script>
var uptimer
var downtimer
var step=1;
function ScrollUp(){
parent.frames.content.scrollBy(0,step)
uptimer=setTimeout('ScrollUp()');
}
function ScrollDown(){
parent.frames.content.scrollBy(0,-step)
downtimer=setTimeout('ScrollDown()');
}
function ScrollStop(){
if(downtimer!=null) clearTimeout(downtimer);
if(uptimer !=null) clearTimeout(uptimer);
}
</script>
I hope it's clear what I'm looking for. If not, don't hesitate to ask for more details.
Thank you for your time.
I don't like the standard browser scroll bars, so I decided to use a different scrolling method. I have created an up and a down arrow image to use for scrolling text which is in another frame. This works like it should. See page Finland on this site (<!-- m --><a class="postlink" href="http://www.duppen.nl">http://www.duppen.nl</a><!-- m -->).
The problem is that the arrows always appear, thus also when scrolling is not necessary. I want the scrolling images only to appear when the text is should scroll exceeds the height of the frame (kinda mimin the working of scrolling=auto). The arrow images are in frame "right" and the text it scrolls is in frame "content". Is it possible to change the visibility of the arrow images as described above? And if so, how?
Something like this perhaps?
IF text.heigt > frame.height THEN
btn_pijl_scroll_up_light.visible = true
btn_pijl_scroll_down_light.visible = true
ELSE
btn_pijl_scroll_up_light.visible = false
btn_pijl_scroll_down_light.visible = false
END IF
Scrolling of the arrow images is done in javascript, as follows:
<script>
var uptimer
var downtimer
var step=1;
function ScrollUp(){
parent.frames.content.scrollBy(0,step)
uptimer=setTimeout('ScrollUp()');
}
function ScrollDown(){
parent.frames.content.scrollBy(0,-step)
downtimer=setTimeout('ScrollDown()');
}
function ScrollStop(){
if(downtimer!=null) clearTimeout(downtimer);
if(uptimer !=null) clearTimeout(uptimer);
}
</script>
I hope it's clear what I'm looking for. If not, don't hesitate to ask for more details.
Thank you for your time.