|
-
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
|