Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 autoscroll i-frame

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
1user2 Posted - 27 Jan 2008 : 11:00:20
who can solve the following "problem" ?
I made a page with an i-frame, incl. colored scrollbar - no problem.
Now I want to hide the scrollbar completely and make the i-frame scrolling by mouse-over and mouse-out to an image(arrow up and arrow down)
By my knowledge I'll have to do this with a correct javascript, but I am not a java programmer :)
Who can help me ?
3   L A T E S T    R E P L I E S    (Newest First)
s.dav Posted - 31 Jan 2008 : 09:55:10
You have to:
1- create a script block on the header of the page contained into the IFRAME
put into it two functions

<script>
function goDown()
{
document.offsetTop+=5;
}
function goUp()
{
if (document.offsetTop>5)
document.offsetTop-=5;
else
document.offsetTop=0;
}
</script>

2- create the down and up arrows
3- assign event to arrows, choose "onClick", "JavaCall", "goDown();"
1user2 Posted - 30 Jan 2008 : 15:32:23
thnx Dav.
The "style"tag works but I don't know how to go on with the rest, sorry
s.dav Posted - 28 Jan 2008 : 09:12:52
Try the follows:
1- add this style to the body tag (by creating a "style" tag into the header code of the page inserted into the iframe)

<style type="text/css">
body {overflow:hidden;}
</style>

no tried but it should hide scrollbars

The IFRAME tag itself has some properties that will permit you to hide scrollbars if the style trick doesn't work

2- the code that will permit the page to scroll should be a thing like this:

document.offsetTop=xxx;

so for scrolling down:

document.offsetTop+=5;

up:

if (document.offsetTop>5)
document.offsetTop-=5;
else
document.offsetTop=0;


You can use the Javascript setTimeOut function to recall a javascript function after some time.

no tested but it should work.

Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000