|
-
May 5th, 2005, 02:53 PM
#1
Thread Starter
Addicted Member
What is wrong with my code?
I have no idea why this doesnt work. Can anyone help?
VB Code:
<html>
<head>
<script type="text/javascript">self.scrollbars.visible=true; self.scrollTo(0,1000);</script>
</head>
<body>
<p>3443434 </p>
<p> </p>
<p> </p>
<p> </p>
<p>343434434334</p>
<p> </p>
<p> </p>
<p>7667676</p>
<p> </p>
<p> </p>
<p> </p>
<p>98</p>
<p>89989889</p>
<p>898998</p>
<p>2</p>
<p>343435</p>
<p> </p>
<p>543546565</p>
<p> </p>
<p> </p>
<p> </p>
<p>765875787587875</p>
<p> </p>
<p> </p>
<p> </p>
<p>last</p>
</body>
</html>
Things fall apart which the center cannot hold...
-
May 5th, 2005, 04:40 PM
#2
Re: What is wrong with my code?
The problem seems to be this bit:
Code:
self.scrollbars.visible = true;
I've never heared of the self.scrollbars.visible property, are you sure it is correct?
If you try it without that it works fine 
Cheers,
RyanJ
-
May 5th, 2005, 04:55 PM
#3
Addicted Member
Re: What is wrong with my code?
Shouldn't it be 'document.scrollbars.visible'??
-
May 5th, 2005, 04:59 PM
#4
Re: What is wrong with my code?
 Originally Posted by BIOSTALL
Shouldn't it be 'document.scrollbars.visible'??
I've never heared of that one either.
See for yourself, type that in here: http://allfreesoftware.helphousehost..._Evaluator.php
RyanJ
-
May 7th, 2005, 12:30 PM
#5
Re: What is wrong with my code?
Might be something IE-proprietary.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
May 10th, 2005, 06:53 AM
#6
Re: What is wrong with my code?
Assuming it would scroll there is nothing wrong with it... just that you run it before you have a page to scroll with....?
You'd need to put it into the Body onLoad='....' bit to run it after the page has finished loading (including images - I think)
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
May 18th, 2005, 07:03 PM
#7
Fanatic Member
Re: What is wrong with my code?
Ecniv is correct. You need to provide a function name and then call it either on load or at the end of the html. You can scroll a page but you're going to need to do a parent.scroll(startPoint,endPoint)
edit-----
I decided to test my theory on scrolling. Here's some html that will scroll, at least in FireFox.
HTML Code:
<html><head>
<!-- Begin
function scrollit() {
for (I=1; I<=750; I++){
parent.scroll(1,I)
}
}
// End -->
</SCRIPT>
</head><BODY><CENTER><FORM><input type=button value="Scroll Page" onClick="scrollit()"></FORM></CENTER>
<!-- Script Size: 0.83 KB -->
<p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p>
<p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p>
<p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p>
</html>
Last edited by anotherVBnewbie; May 18th, 2005 at 07:07 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|