Reply
auto scroll down
Old 04-24-2005, 02:45 PM auto scroll down
Junior Talker

Posts: 4
I have this code but when u click on the button I want the page that opens to scroll down 400 pixels automatically is there anyway of doing that??
Code:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
Code:
<input type="button" class="button" onClick="MM_openBrWindow('http://www.kingsofchaos.com/recruit.php?uniqid=miba755w','','scrollbars=yes,resizable=yes');
lithium is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-29-2005, 06:00 PM
Zeal's Avatar
Average Talker

Posts: 17
Location: Texas
Use anchors. Have a link on the page that's like <a name="400px"> and then put it on your address like so:
HTML Code:
<input type="button" class="button" onClick="MM_openBrWindow('http://www.kingsofchaos.com/recruit.php?uniqid=miba755w#400px','','scrollbars=yes,resizable=yes');">
Zeal is offline
Reply With Quote
View Public Profile Visit Zeal's homepage!
 
Old 05-01-2005, 12:50 PM
Junior Talker

Posts: 4
The problem is I don't have acces to kingsofchaos.com...
lithium is offline
Reply With Quote
View Public Profile
 
Old 05-05-2005, 08:42 AM
RikComery's Avatar
Average Talker

Posts: 18
Location: Essex, United Kingdom
Are you sure this is exactly what you want? 400 pixels down the screen will be different for everybody, depending on what resolution their monitor is set at, whether their browser is maximised to full screen or not etc. I guess when you are talking about only 400px, the difference is neglegable. That is for you to decide.

To answer your question though, if you don't have access to the page you are visiting, then, to the best of my knowledge, Javascript cannot do this. As soon as the new page is loaded, javascript functions from the previous page are wiped.

Maybe someone will dissagree with me, but i doubt it.
RikComery is offline
Reply With Quote
View Public Profile Visit RikComery's homepage!
 
Old 05-05-2005, 03:28 PM
Junior Talker

Posts: 4
Yeah it's for my own convinience :P so other ppl don't have to see it... I don't think it's possible either but it was worth a try asking...
lithium is offline
Reply With Quote
View Public Profile
 
Old 05-06-2005, 09:53 PM
Jared's Avatar
Skilled Talker

Posts: 52
Location: St. Anthony, ID
Could I ask maybe what you're trying to do? There's always another way around something. If this particular method doesn't work, then perhaps something else will.
Jared is offline
Reply With Quote
View Public Profile Visit Jared's homepage!
 
Reply     « Reply to auto scroll down
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12785 seconds with 12 queries