acidglitter Posted May 17, 2008 Share Posted May 17, 2008 if you have a page that scrolls really far down, is there a way you could use javascript to move the browser to a different point on the page? (like using <a href="page#anchor"> but in javascript) Quote Link to comment https://forums.phpfreaks.com/topic/106017-moving-the-browser/ Share on other sites More sharing options...
RichardRotterdam Posted May 17, 2008 Share Posted May 17, 2008 like this perhaps? http://demos.mootools.net/Fx.Scroll Quote Link to comment https://forums.phpfreaks.com/topic/106017-moving-the-browser/#findComment-543474 Share on other sites More sharing options...
acidglitter Posted May 17, 2008 Author Share Posted May 17, 2008 like this perhaps? http://demos.mootools.net/Fx.Scroll yea exactly! Quote Link to comment https://forums.phpfreaks.com/topic/106017-moving-the-browser/#findComment-543509 Share on other sites More sharing options...
acidglitter Posted May 21, 2008 Author Share Posted May 21, 2008 well maybe not completely.. isnt there like a really simple javascript code that could do it? like window.position.top = some number?? Quote Link to comment https://forums.phpfreaks.com/topic/106017-moving-the-browser/#findComment-546488 Share on other sites More sharing options...
acidglitter Posted June 2, 2008 Author Share Posted June 2, 2008 *bump* Quote Link to comment https://forums.phpfreaks.com/topic/106017-moving-the-browser/#findComment-555247 Share on other sites More sharing options...
blufish Posted June 3, 2008 Share Posted June 3, 2008 you could try <script type="text/javascript"> window.location = "http://www.yoursite.com/index.htm#aboutme"; </script> Not sure if it's what you want, but it would work. Quote Link to comment https://forums.phpfreaks.com/topic/106017-moving-the-browser/#findComment-556159 Share on other sites More sharing options...
The Little Guy Posted June 3, 2008 Share Posted June 3, 2008 copy and paste the following code. If you like it, copy the javascript. Is this what your looking for? <html> <head> <script type="text/javascript"> window.onload = function(){ ScrollLinks.start();} </script> <script type="text/javascript" src="http://www.dctc.edu/assets/scripts/prototype.js"></script> <script type="text/javascript" src="http://www.dctc.edu/assets/scripts/moo.fx.js"></script> <script type="text/javascript" src="http://www.dctc.edu/assets/scripts/moo.fx.pack.js"></script> </head> <body> <div class="wrapper"> <p>Your website content here.</p> <div class="push"></div> </div> <div class="footer"> <p>Copyright (c) 2008</p> </div> </body> </html> <div> <h2>Alphabetical</h2> <br /> <a href="#a">A</a> | <a href="#b">B</a> | <a href="#c">C</a> | <a href="#d">D</a> | <a href="#e">E </a>| <a href="#g">G</a> | <a href="#h">H</a> | <a href="#i">I</a> | <a href="#l">L</a> | <a href="#m">M</a> | <a href="#n">N</a> | <a href="#p">P</a> |<a href="#r"> R</a> | <a href="#s">S</a> | <a href="#t">T</a> | <a href="#w">W</a> <a href="#category"></a></div> <a name="a" class="anchor" id="a"></a> <h3>A</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="acct.cfm">Accounting</a> </li> <li><a href="appVisArts.cfm">Applied Visual Arts </a> </li> <li><a href="archTech.cfm">Architectural Technology</a> </li> <li><a href="autoBody.cfm">Auto Body Collision Technology</a> </li> <li><a href="autoServEd.cfm">Automotive Service Educational Program (ASEP) </a> </li> <li><a href="autoTech.cfm">Automotive Technician </a></li> </ul> <a name="b" class="anchor" id="b"></a> <h3>B</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="bioEquip.cfm">Biomedical Equipment Technology</a> </li> <li><a href="business.cfm">Business</a> *</li> <li><a href="busEntrep.cfm">Business Entrepreneur</a> *</li> </ul> <a name="c" class="anchor" id="c"></a> <h3> C</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="childDevel.cfm">Child Development</a></li> <li><a href="masonry.cfm">Concrete and Masonry </a></li> </ul> <a name="d" class="anchor" id="d"></a> <h3> D</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="dentalAssist.cfm">Dental Assistant </a></li> </ul> <a name="e" class="anchor" id="e"></a> <h3> E</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="elecConst.cfm">Electrical Construction</a> </li> <li><a href="elecLine.cfm">Electrical Lineworker </a> </li> <li><a href="/students/academics/support/esl.cfm">ESL/ELL (English as a Second Language)</a> </li> <li><a href="execAssist.cfm">Executive and Admin. Assistant </a> </li> <li><a href="sportSci.cfm">Exercise and Sport Science </a></li> </ul> <a name="g" class="anchor" id="g"></a> <h3>G</h3> <ul> <a href="#top" class="topLink" title="back to top">top</a> <li><a href="gdTech.cfm">Graphic Design Technology</a></li> <li><a href="genEdu.cfm">General Education</a></li> </ul> <a name="h" class="anchor" id="h"></a> <h3> H</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="hvyConstMech.cfm">Heavy Construction Equip. Technology </a> </li> <li><a href="hvyDutyTruck.cfm">Heavy Duty Truck Technology</a></li> </ul> <a name="i" class="anchor" id="i"></a> <h3> I</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="industDist.cfm">Industrial Distribution</a> *</li> <li><a href="infosystMgmt.cfm">Information Systems Management</a></li> <li><a href="intDesign.cfm">Interior Design </a></li> </ul> <a name="l" class="anchor" id="l"></a> <h3> L</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="landscape.cfm">Landscape/Horticulture</a> </li> <li><a href="legalAdmin.cfm">Legal Administrative Assistant</a> </li> </ul> <a name="m" class="anchor" id="m"></a> <h3> M</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="techMgmt.cfm">Mgmt. for Technical/Airline Professionals</a> </li> <li><a href="marketing.cfm">Marketing and Sales</a> *</li> <li><a href="medAdmin.cfm">Medical Administrative Assistant</a> </li> <li><a href="medAssist.cfm">Medical Assistant</a> </li> <li><a href="medCoding.cfm">Medical Coding Specialist </a> </li> <li><a href="eventMgmt.cfm">Meeting and Event Management</a> *</li> <li><a href="multiSupervision.cfm">Multicultural Supervision</a> *</li> <li><a href="gdTech.cfm">Multimedia/ Web Page Design</a></li> </ul> <a name="n" class="anchor" id="n"></a> <h3> N</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="nanoTech.cfm">Nanoscience Technology</a> </li> <li><a href="netAdmin.cfm">Networking Administration </a></li> <li><a href="nursingAssist.cfm">Nursing Assistant/Home Health Aid</a></li> </ul> <a name="p" class="anchor" id="p"></a> <h3> P</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="photoImg.cfm">Photographic Imaging Technology </a> </li> <li><a href="photography.cfm">Photography</a><br /> </li> <li><a href="practNursing.cfm">Practical Nursing </a></li> </ul> <a name="r" class="anchor" id="r"></a> <h3> R</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="rrConductor.cfm">Railroad Conductor Technology</a></li> <li><a href="realEstate.cfm">Real Estate/Property Management</a>* </li> </ul> <a name="s" class="anchor" id="s"></a> <h3>S</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="softwareDev.cfm">Software Development </a></li> <li> <a href="supervisoryMgmt.cfm">Supervisory Management</a> *</li> </ul> <a name="t" class="anchor" id="t"></a> <h3> T</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="travel.cfm">Tourism and Travel</a> * </li> <li><a href="http://www.customizedtraining.com/transportation/truckdriver.cfm" target="_blank">Truck Driver Training</a></li> </ul> <a name="w" class="anchor" id="w"></a> <h3> W</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="welding.cfm">Welding Technology </a> </li> <li><a href="woodFinishing.cfm">Wood Finishing Technology </a></li> </ul> * offered at our Apple Valley site </div> <div class="half"> <div> <h2>Academic Departments </h2> <br /> <br /> </div> <h3>Business and Information Systems </h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="acct.cfm">Accounting</a></li> <li><strong>Information Systems </strong> <ul> <li><a href="infosystMgmt.cfm">Information Systems Management </a></li> <li><a href="netAdmin.cfm">Networking Administration </a></li> <li><a href="softwareDev.cfm">Software Development </a></li> </ul> </li> <li><strong>Office Careers </strong> <ul> <li><a href="execAssist.cfm">Executive and Admin. Assistant </a></li> <li><a href="legalAdmin.cfm">Legal Administrative Assistant</a></li> <li><a href="medAdmin.cfm">Medical Administrative Assistant</a> </li> <li><a href="medCoding.cfm">Medical Coding Specialist</a></li> </ul> </li> </ul> <h3>Business and Management </h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="business.cfm">Business</a> *</li> <li><a href="busEntrep.cfm">Business Entrepreneur</a> *</li> <li><strong>Meeting and Event Management Careers</strong><ul><li><a href="eventMgmt.cfm">Meeting and Event Management</a> *</li> <li><a href="travel.cfm">Tourism and Travel </a> *</li> </ul> </li> <li><a href="industDist.cfm">Industrial Distribution</a> *</li> <li><a href="techMgmt.cfm">Mgmt. for Technical/Airline Professionals</a> </li> <li><a href="marketing.cfm">Marketing and Sales </a> *</li> <li><a href="multiSupervision.cfm">Multicultural Supervision</a> *</li> <li><a href="realEstate.cfm">Real Estate/Property Management</a> *</li> <li><a href="supervisoryMgmt.cfm">Supervisory Management</a> *</li> </ul> <h3> Design</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a><li><a href="archTech.cfm">Architectural Technology</a></li> <li><a href="intDesign.cfm">Interior Design</a></li> <li><a href="landscape.cfm">Landscape/Horticulture</a></li> <li><strong>Visual Communications </strong> <ul> <li><a href="appVisArts.cfm">Applied Visual Arts </a></li> <li><a href="gdTech.cfm">Graphic Design Technology</a></li> <li><a href="gdTech.cfm">Multimedia/Web Page Design</a></li> <li><a href="photography.cfm">Photography</a></li> <li><a href="photoImg.cfm">Photographic Imaging Technology</a> </li> </ul> </li> <li><a href="woodFinishing.cfm">Wood Finishing Technology</a> </li> </ul> <h3> Health and Human Services</h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="childDevel.cfm">Child Development </a> </li> <li><a href="dentalAssist.cfm">Dental Assistant</a> </li> <li><a href="sportSci.cfm">Exercise and Sport Science </a> </li> <li><a href="medAssist.cfm">Medical Assistant</a> </li> <li><a href="nursingAssist.cfm">Nursing Assistant/Home Health Aid</a> </li> <li><a href="practNursing.cfm">Practical Nursing</a></li> </ul> <h3> Technical Careers </h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="bioEquip.cfm">Biomedical Equipment Technology</a> </li> <li><a href="masonry.cfm">Concrete and Masonry </a> </li> <li><a href="elecConst.cfm">Electrical Construction and Maintenance </a> </li> <li><a href="elecLine.cfm">Electrical Lineworker</a></li> <li><a href="nanoTech.cfm">Nanoscience Technology</a> </li> <li><a href="welding.cfm">Welding Technology </a></li> </ul> <h3> Transportation </h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="autoBody.cfm">Auto Body Collision Technology</a></li> <li><a href="autoTech.cfm">Automotive Technician</a> </li> <li><a href="autoServEd.cfm">GM Automotive Service Educational Program (ASEP)</a></li> <li><a href="hvyConstMech.cfm">Heavy Construction Equip. Technology </a> </li> <li><a href="hvyDutyTruck.cfm">Heavy Duty Truck Technology</a> </li> <li><a href="rrConductor.cfm">Railroad Conductor Technology </a></li> <li><a href="http://www.customizedtraining.com/transportation/truckdriver.cfm" target="_blank">Truck Driving Training</a></li> </ul> <h3>General Education </h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="genEdu.cfm">General Education</a></li> <li><a href="genEdu_MnTC.cfm">MN Transfer Curriculum</a></li> <li><a href="genEdu_Dev.cfm">Developmental Education</a></li> </ul> <h3>Continuing Education and Training </h3> <ul> <a href="#top" class="topLink" title="back to top">TOP</a> <li><a href="javascript:void(0);" class="toggle">Business & Management</a> <div class="hider"> <ul> <li><a href="http://www.customizedtraining.com/business/management.cfm" target="_blank">Management Training</a></li> <li><a href="http://www.customizedtraining.com/business/degree_certif.cfm" target="_blank"> Degree & Certificate Options</a></li> <li><a href="http://www.customizedtraining.com/business/coaching.cfm" target="_blank"> Coaching & Mentoring</a></li> <li><a href="http://www.customizedtraining.com/business/spanish.cfm" target="_blank">Occupational Spanish</a></li> <li><a href="http://www.customizedtraining.com/business/organizations.cfm" target="_blank">Organizations</a></li> </ul> </div> </li> <li><a href="javascript:void(0);" class="toggle">IT/Computer</a> <div class="hider"> <ul> <li><a href="http://www.needcomputertraining.com/Courses/CourseSearch.aspx" target="_blank">Adobe</a></li> <li><a href="http://www.needcomputertraining.com/Courses/CourseSearch.aspx" target="_blank">Cisco Network, Security, VOIP </a></li> <li><a href="http://www.needcomputertraining.com/Courses/CourseSearch.aspx" target="_blank">Desktop Applications</a></li> <li><a href="http://www.needcomputertraining.com/Courses/CourseSearch.aspx" target="_blank">Microsoft Certification </a></li> <li><a href="http://www.needcomputertraining.com/Courses/CourseSearch.aspx" target="_blank">.NET, Java, SQL</a></li> </ul> </div> </li> <li><a href="javascript:void(0);" class="toggle">Manufacturing</a> <div class="hider"> <ul> <li><a href="http://www.customizedtraining.com/manufacturing/ipc_soldering.cfm" target="_blank">IPC Soldering Certification</a></li> <li><a href="http://www.customizedtraining.com/manufacturing/mechatronics.cfm" target="_blank">Mechatronics</a> </li> <li><a href="http://www.customizedtraining.com/manufacturing/nec_continuing.cfm" target="_blank">National Electric Code </a> </li> <li><a href="http://www.customizedtraining.com/manufacturing/steam_boilers.cfm" target="_blank">Steam and Hot Water Boilers</a></li> <li><a href="http://www.customizedtraining.com/manufacturing/testimonial.cfm" target="_blank"> Testimonial</a></li> </ul> </div> </li> <li><a href="javascript:void(0);" class="toggle">Public Safety & Law Enforcement</a> <div class="hider"> <ul> <li><a href="http://www.customizedtraining.com/publicsafety/lawenforcement.cfm" target="_blank">Law Enforcement Training</a></li> <li><a href="http://www.customizedtraining.com/publicsafety/emergency.cfm" target="_blank">Emergency Response Driving</a></li> <li><a href="http://www.customizedtraining.com/publicsafety/defensive.cfm" target="_blank">Defensive Driving Classes</a></li> <li><a href="http://www.customizedtraining.com/publicsafety/motorcycle.cfm" target="_blank">Motorcycle Safety</a></li> <li><a href="http://www.customizedtraining.com/publicsafety/jackknife.cfm" target="_blank">Anti-Jackknife & Accident Avoidance</a></li> <li><a href="http://www.customizedtraining.com/publicsafety/schoolbus.cfm" target="_blank">School Bus & Motor Coach Training</a> </li> <li><a href="http://www.customizedtraining.com/publicsafety/snowplow.cfm" target="_blank">Snow Plow Operator Training</a> </li> <li><a href="http://www.customizedtraining.com/publicsafety/utilitytruck.cfm" target="_blank">Utility Truck Operator Training</a></li> <li><a href="http://www.customizedtraining.com/publicsafety/rent_track.cfm" target="_blank">Rent Our Track</a></li> </ul> </div> </li> <li><a href="javascript:void(0);" class="toggle">Transportation</a> <div class="hider"> <ul> <li><a href="http://www.customizedtraining.com/transportation/jackknife.cfm" target="_blank">Anti-Jackknife & Accident Avoidance</a></li> <li><a href="http://www.customizedtraining.com/transportation/forklift.cfm" target="_blank">Forklift Operation and Safety </a></li> <li><a href="http://www.customizedtraining.com/transportation/heavyequip.cfm" target="_blank">Heavy Equipment Operation</a></li> <li><a href="http://www.customizedtraining.com/transportation/mncommercial.cfm" target="_blank">MN Commercial Vehicle Inspector</a></li> <li><a href="http://www.customizedtraining.com/transportation/railroad.cfm" target="_blank">Railroad Conductor Certificate</a></li> <li><a href="http://www.customizedtraining.com/transportation/truckdriver.cfm" target="_blank">Truck Driver Training</a></li> <li><a href="http://www.customizedtraining.com/transportation/mncommercial.cfm" target="_blank">MN Commercial Vehicle Inspector</a></li> </ul> </div> </li> </ul> * offered at our Apple Valley site </div> <div style="clear:both;"> <h5>Related Links:</h5> <ul> <li> <a href="/students/academics/courses/online.cfm">Online Courses</a></li> <li><a href="/students/academics/courses/flextime.cfm">Flextime Courses</a></li> <li><a href="/students/tuition/index.cfm">Tuition & Payment</a> </li> </ul> </div> <!--<div id="regWin" style="z-index:100;padding:5px;display:none;position:absolute;top:20px;border:solid 1px #FFF;width:3px;height:3px;background-color:#293930;"> <div id="waitTxt" style="display:none;"> <div style="width:100%;text-align:right;"><a class="vNav" href="javascript:closeReg();">close</a></div> <div style="width:100%;"> <form action="#" method="post"> <p> <a class="vNav" href="javascript:document.getElementById('email').focus();">Email:</a><br /> <input class="subT" type="text" name="email" id="email" /> </p> <p> <a class="vNav" href="javascript:document.getElementById('paypalemail').focus();">PayPal Email:</a><br /> <input class="subT" type="text" name="paypalEmail" id="paypalemail" /> </p> <p> <a class="vNav" href="javascript:document.getElementById('password').focus();">Password:</a><br /> <input class="subT" type="password" name="password" id="password" /> </p> <p> <a class="vNav" href="javascript:document.getElementById('repassword').focus();">Repeat Password:</a><br /> <input class="subT" type="password" name="repassword" id="repassword" /> </p> </form> </div> </div> </div>--> Quote Link to comment https://forums.phpfreaks.com/topic/106017-moving-the-browser/#findComment-556207 Share on other sites More sharing options...
acidglitter Posted June 3, 2008 Author Share Posted June 3, 2008 that might be able to work if i could figure out mootools. what i want to do is try making a pretty simple (2D) game. hopefully someone reading this has played the first zelda game i want to just have someone be able to like walk around, and then at the end of the screen the whole page scrolls down to show the next area.. Quote Link to comment https://forums.phpfreaks.com/topic/106017-moving-the-browser/#findComment-556880 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.