rivet Posted October 22, 2003 Posted October 22, 2003 I need my page to jump to an anchor after the page loads. The anchor number is generate in FPM, the onLoad script is DW's - Doe anyon have a clean solution that word on explore and safari --------- function MM_goToURL() { //v3.0 var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args+".location='"+args[i+1]+"'"); } //--> </script> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_goToURL('content','#[FMP-Field:a_RandomAnchor]');return document.MM_returnValue">
Leb i Sol Posted October 22, 2003 Posted October 22, 2003 u have to specify whihc page will be the one with acnhors: <body onLoad="MM_goToURL('parent','ResutlsPage.html#FMP-Field-Value-that-holds anchor name');return document.MM_returnValue"> but remember that Anchors have to ANCHORED meaning that they have to exsit and be named in the page so probably ur looking into some JS on that ResultsPage ( or any other way u generate anchors) Response.Write("<a name="FMP-Field-Value-that-holds anchor name"></a>") All the best!
Garry Claridge Posted October 22, 2003 Posted October 22, 2003 This one works for me: <style> #one { position: absolute; top: 100px; left: 10px; width: 200px; height: 400px; background-color: blue } #two { position: absolute; top: 800px; left: 10px; width: 100px; height: 200px; background-color: red } </style> </head> <body onload="document.location='#anchorbottom';"> Hello World <div id="one">The Div</div> <div id="two">After the DIV<b> <a name="anchorbottom">At the bottom</a> </div> </body> Good Luck. Garry
Leb i Sol Posted October 24, 2003 Posted October 24, 2003 there u have it....dynamic and static..your pick. by the way rivet if u need DW help drop me notes on http://www.tek-tips.com/threadminder.cfm?SPID=248 or any other of shared interests we might have! All the best!
Recommended Posts
This topic is 7770 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now