HTML - Page Jumping To Iframe Anchor
I have an iframe in the middle of a page.
I am trying to display another page within the iframe, but to start it a couple of paragraphs down, not at the top. So I have put an anchor into my iframe src, corresponding to an anchor name tag in my other page. The iframe scrolls itself ok, but the main body of the page also scrolls so that the top of the iframe is at the top of the screen, which is not what I intended. Is there a way to scroll just the iframe, with the top of the main page still at the top of the screen? <html> <body> <table> <tr> <td> table1 etc ... <table> <tr> <td> table2 etc ... <table> <tr> <td> <iframe src="another.html#marker"> </iframe> etc thanks Similar Tutorialsi'm using 6 iframes in a page my page has scrolling whlie i click a link on top most iframe the page has been slide down the scroll bar comes to middle plz help me Hello! I'm looking for a solution to this Iframe problem. I want to create an "anchor" for the iframe to land on. This is a picture explaining something like what I want: http://img188.imageshack.us/img188/6...etroublesf.gif The thing is, I want that "anchor" to be exactly x ammount of pixels. For example, to make an Iframe including a youtube video- i would do this: HTML Code: <iframe src ="http://www.youtube.com/watch?v=dMH0bHeiRNg" width="100%" height="500"> </iframe> This iframe would cause you to see the entire youtube page, and the first thing on the iframe that appears would be that youtube logo & navigation bar that says "home | videos | shows | ...ect" How would I make it so that the iframe default is already "Scrolled past" that? So the first thing that appears on the iframe is the video, rather than that youtube logo & navigaion bar? The part that I want removed is about 90 pixels. Is this even possible to do? :/ Especially on a page that is not your own without anchor tags? Hello all! My 1st post. I have an iframe embedded on my webpage of a .html manual and I would like to be able to have the manual open to certain anchors within it when a given page on my website is visited. Here is the iframe code I have that will open up the manual but then the visitor has to scroll to the topic covered: <iframe name="FRAME1" src="../r6manual/TTM Mixer.14.05.html" width="1100" height="600" frameborder="0" ></iframe> Here is the anchor code on the TTM Mixer.14.05.html that I would like to be showing when the page is visited. <div class="Subhead"><a name="468813">Dynamics section</a></div> Thank you so much for your time, Matt. I'm using a thin iFrame in one of my websites and an anchor to decide where it starts. The anchor only controls the vertical component of the webpage. Is there a way to specificy a horizontal anchor in pixels or location? Is there anyway to stop the page 'jumping to the top' when using a link like the below? <a href="#">karthi</a> .. I just want it to stay in the same position on the page & not jump to the top of the page every time a link like that is clicked. Hey all! I'm just starting to work on a site and already it's giving me a hard time. It's not much at the moment, but here's where I'm at http://comgardens.com/wandl/index.html If you hit the refresh button a couple of times you'll see that the content jumps, at least in Firefox, and I can't figure out why. Anyone have any ideas? Thanks!! For the life of me I can't seem to figure out why this page jump isn't working. http://www.thegoheens.com/resources/test.html Any help is greatly appreciated. Thanks! Hello people my search field keeps jumping around on my shopping cart page. I have "HTML tidied" and I know I have errors...but I use shopify which uses liquid code along with HTML so the tidy is reading alot of errors produced by my liquid aswell as my own BUT would anyone know what would be the specific problem with the search form that just keeps moving around... oh yea it works fine on every other page except me shopping cart page...wtf... Any help or suggestions are appreciated, and thanks before hand. Here is the LINK >>http://www.chicityswag.com/cart password : whome Ok, I've tried everything I can think of, and I'm still getting a 'jumping header':\ The header is jumping from the Homepage, to the SubPages. When navigating to other Subpages, everything is fine; So, the problem is with the Homepage. http://www.khaus.com/sites/Asongo/html/ (click on About Us, then back to Home, and you'll see the 'jump') It must be in the code of the Homepage, so I've tried: - attaching the javascript - all the code for the top parts of the page are the same - rebuilding the page, with one of the interior pages format. Any help or suggestions, would be greatly appreciated. Thank you Reply With Quote Is there a way to target an anchor in the main .html file from a flash movie inside an iframe? this.links.portfolio.onRelease = function(){ getURL("http://asdf.com/blah/xx.html#portfolio"); } is my current code in my flash movie that is inside an iframe, but that opens the link inside the iframe. Would something like target="_somethinghere" work? Like go up one level? Thanks. p.s.: I had a quick drink of grappa, sorry if this isn't very clear. I have a quirky problem, and it exists with many of my sites. It involves Firefox browser, as well as Chrome. Here are the conditions of the website pages that have problems: 1. Page is fixed width, centered in the browser 2. Google AdSense is present on the page 3. Browser is either Firefox or Chrome. Internet Explorer doesn't present any problems. When the page with the above conditions is loaded, the page shows up at the RIGHT of the browser, then shifts to it's proper location in the center of the browser. This occurs every time a page with adsense is loaded, and can be irritating going page to page. An example for my site is he AdSense Page Shift Test Please use Firefox browser, maximized on a monitor with a greater width than 1024. There are five working tabs with examples, four of them have adsense on them. The one without adsense does NOT jump, and I'd like all the pages to emulate it. I"d appreciate any direction to solving the problem. Firefox and Chrome are rapidly increasing in popularity, and I'd like to solve this rather quirky problem. Hey guys, I'm really new to HTML coding so be nice. I'm trying create an anchor on a new page. Is this possible, I can create an anchor that jumps down a page, but I can't get it to work on a different page. I thought I had it, but it only worked in Safari, and wouldn't work in Firefox or IE. Any help would be greatly appreciated Hi, I have a website in which the menu is the same on all pages (http://www.hiltrain.com) I have set this up so that the menu item is in bold to identify the specific page the viewer is on. This works perfectly in function and is set up by using: <body id="help"> and then using the same id in the link code, e.g. <a href="howwecanhelp.htm" id="help"> In the css file I have an entry: body#help a#help, font-weight: bold; This gets the menu item for that page to be in bold and this works fine. However this doesn't vaildate well as according to the W3C standards I can't use the id twice. Can anybody advise me on a way to change these to achieve the same affect but so that it complies with W3C. Any help greatly appreciated. Cheers Iain Using below script after clicking the button it will reload the page and starting the application I want people go to anchor link location after clicking the submit button, for example go to the bottom of the page because the program is in the bottom of the page how to do that guys please help Code: echo '<form action="" id="frm_chat" method="post"><fieldset id="fieldset_chat"><legend>Chat</legend><div>'; echo $err_msg; echo "<label>Nick: </label>".$txt_nick->getHtml()."<br />"; echo "<label>Server: </label>".$ddl_server->getHtml()." or ".$txt_server->getHtml()."<br />"; echo "<label>Channel: </label>".$ddl_channel->getHtml()." or ".$txt_channel->getHtml()."<br />"; echo ' <input type="submit" class="btn" name="btn_chat" value="Chat Now"/></div></fieldset></form>'; I have plain HTML on the main page and <iFrame> tag on it, inside tag i have URL to other page that using some script that forces host page to reload and show page from frame instead of it. Can i somehow stop it from messing my entire main page? On my site, I'm using a host with limited bandwidth, and only so much data can be transferred per month. (it's free). So instead of having the users re-load everything each time they open a new page, I designed the website around an iframe, so when links are clicked, the content changes, and all the large pictures don't need to be re-loaded. Now, my problem. On my index.html page i have an iframe. That iframe loads the content for my site from links on that page. Okay, so say that, in one of my content pages (in the iframe) has a link in it.. and what that link is supposed to do is to go to another page, with an iframe in it, and open itself, in that page.. so it's like a reverse link kinda.. instead of the iframe changing, the rest of the site changes.. or at least the iframe is moved to a new page... I need to know how to do this, it would help out alot with my bandwidth, and would just be alot easier. I was planing on doing this with multiple 'content' pages, and have the second page (the one that the iframe is moved to) stay the same. It would also help if i were to update the design of the site. So instead of updating a thousand pages, I'd only have to update about 4. I know there's other solutions to my updating problem, but i can't do that on a free host... and this is simpler for me.. It would be even better, if, when my 'content' page was loaded, but not in the iframe, the non-framed page would be re-directed to the framed page, this way i could easily add a site search to my web site.. Hello all, i have no idea on HTML code attall, and i sometimes use frontpage, about all i know how to do is type text. well, lets start this from the beginning, my friend has made a game stats thing that runs on cgi, and it is running he http://www.potholestudios.com/cgi-bin/prsstats?page=1 his instructions say Quote: <address>/prsstats?page=<page number>&filter=<filter> Page number: 0=Players, 1=Maps, 2=Player TopTimes, 3=TopTimes Rank. Filter is ignored for the page number 3. so http://www.potholestudios.com/cgi-bin/prsstats?page=1 is a 100 map list with top3 times for each map listed. http://www.potholestudios.com/cgi-bi...page=2&filter=[PHS]Dan[AU] is a list of my toptimes on all the maps that i hold toptimes for. http://www.potholestudios.com/cgi-bin/prsstats?page=3 is a link to players names with top times. now, the code i have got so far is basically, i want the boxes at the top to change the url of the iframe that contains the stats. the box on the left changes the ?page=<number> the box on the right changes the &filer=<name> and then reloads the iframe with the new address when the Go! button is clicked. how the hell do i link it all up. (BTW, i didnt write any of that code, i just copy'd it from everywhere) Code: <HTML> <HEAD> <TITLE>PRS Stats 1.0</TITLE> <LINK HREF="http://files.potholestudios.com/style.css" rel="stylesheet" type="text/css"> </HEAD> <BODY BGCOLOR="#F2F1ED" TEXT="#000000"> <CENTER> <FORM METHOD=POST ACTION=http://www.potholestudios.com/cgi-bin/prsstats> <TABLE> <TR><TD><B>View</B></TD><TD><SELECT NAME="SEL_FLD"><OPTION VALUE="0" SELECTED>Players</OPTION><OPTION VALUE="1" >Maps</OPTION><OPTION VALUE="2" >Player TopTimes</OPTION><OPTION VALUE="3" >TopTimes Rank</OPTION></SELECT></TD><TD><B>Filter</B> </TD><TD><INPUT NAME="VAL" TYPE=TEXT VALUE="" SIZE=30 MAXLENGTH=20></TD><TD><INPUT NAME="EXECUTE" TYPE=submit SIZE=20 VALUE="Go!"></TD></TR> </TABLE> </FORM> <HR> <iframe src="http://www.potholestudios.com/cgi-bin/prsstats?" width="100%" height="800"></iframe> </BODY> </HTML> Hi, I am using the following code to jump to a specific line of text when a link is clicked: <a href="#link_name">Click here</a> <a name="link_name">Jump to here</a> My question is this, is it possible to link to a specific line or piece of text on another page, as the above example only works on the same page. Thanks in advance, Rob. I have a link: <a href="#"><strong>IMPACT Study </strong> </a> I with the # it always want to jump to top of page. I know there is code that will prevent this, but i forgot what it is? Any help? thank, mac Hi, In a site that I am developing, the client wanted some behaviour that I could only accomplish with an iframe. Is there a way to prevent the inner page (the page source of the iframe) from being accessed alone? The solution must be some kind of javascript, because it SHOULD be accessed by web crawlers. Thanks Claudia |