HTML - Links In A Frame To Show In Another Frame
Hi!
I am using Dreamweaver 8 to develope my site. I have broken the page in three pieces(frames) So that the top frame shows the title, the left frame is for links that I want to show as flash movies in the right frame. I have studied the help file and I have looked on the web and I can't find an explanation that I can understand on how to do this. I believe the clickable link should be an href but I don't know how to code it. Can someone explain this to me? Thanks in Advance! Paul Similar TutorialsHi there, I was wondering if anyone knows how to centre an image link in another frame (yes I know frames are bad but its an old website I am updating) i have <a href="picturelink" target="mainframe"> <img src="thumbnail" border="0"></a> I have tried everything from class="center" to editing the original frameset and the original page loaded into the window but I can't get the jpeg file to load up centred and so I was hoping someone might be able to help as I don't want to link all the pictures to seperate html documents with only a centred image in... Thanks for any help. Hey. I have a frame and inside it there is a link. I want it to target an anchor called Code: <a name="anchor"></a> that is INSIDE it's own frame. I tried Code: <a href="#anchor"> but it tries to reload the entire page, and doesn't just "jump" to the anchor like it normally would. How do I do this? Thanks Hi, so I'm trying to make some links for my website that can easily be modified on all pages but I'm not sure how to go about doing it. my original plan was to use this code: <iframe src="http:///directory.html" style="border: 0" width="100%" height="50" frameborder="0" scrolling="no" target="_parent"></iframe> However from everything I've read this wont work because instead of redirecting the actual page to the correct spot it just sends the frame to that spot leaving the rest of the page the same. And apparently there is no code to make it behave the way that I want it to. So my question is what are my alternatives? I really just want one location where i can update the links, the pictures for the links etc. that way whenever I add a new link or change its location I don't have to do it for 15 other webpages. Anyway, any guidance/help especially in-depth (as I'm not very experienced) would be greatly appreciated. Hi All, I'm pretty new to web development but seem to have come across a problem which I'm sure is easily cured .. I'm creating a web page in html with frames and trying to get links in one frame to open a separate page in another frame. Now I've done the obvious bit to do with naming the frame and setting target etc, and it works fine when I run it in google chrome, but can't seem to get it to work in internet explorer - I'm designing it in dreamweaver if that makes any difference - any help would be great as this is the last hurdle before I finish the site! Thanks, Matt I am using a 3 frame page (header, menu, bottom) I have a drop down menu that is in 'Menu' titled frame and i want it to open up in another frame called 'bottom' what do i add / change in my code below. Thanks in advance. Regards Grant Code: <script> <!-- function land(ref, target) { lowtarget=target.toLowerCase(); if (lowtarget=="_self") {window.location=loc;} else {if (lowtarget=="_top") {top.location=loc;} else {if (lowtarget=="_blank") {window.open(loc);} else {if (lowtarget=="_parent") {parent.location=loc;} else {parent.frames[target].location=loc;}; }}} } function jump(menu) { ref=menu.choice.options[menu.choice.selectedIndex].value; splitc=ref.lastIndexOf("*"); target="bottom"; if (splitc!=-1) {loc=ref.substring(0,splitc); target=ref.substring(splitc+1,1000);} else {loc=ref; target="_self";}; if (ref != "") {land(loc,target);} } //--> </script> </head> <body bgcolor="#000000" text="#FFFFFF"> <form action="dummy" method="post"> <a target="_bottom"> <select name="choice" size="1" onChange="jump(this.form)"><option value="">CHOOSE A LINK</option><option value="http://www.yahoo.com*_top">YAHOO</option><option value="http://www.hotbot.com">HOTBOT</option><option value="">- - - - - - - - - -</option><option value="http://www.microsoft.com">MICROSOFT</option><option value="http://www.netscape.com">NETSCAPE</option></select></a></form> </span> </body> Hi. I am trying to create a page containg 2 frames, right frame, and mainFrame. I am using the right frame to allow users to click links to remote sites browsable within the mainFrame. However, most of these sites require cookies and keep opening links in a new window. Is there a way to enable 3rd party cookies within frames, and to also disable links within the mainFrame from opening in a new window? p.s. I know Firefox allows users to use 3rd party cookies in frames. Thanks Oye, I am trying to complete this teeny photo album I've been working on ... and I just about completed .. when I tested the Site in various browsers (mozilla, Explorer 8, Safari, Google Chrome) ... i noticed one of the frames is not showing in Google Chrome. How odd? here is the site: xxx There are three teeny shaded squares in a frame that is designated a height of 70 pixels and a width of i believe 100% ... it is visible on Mozilla, Explorer, Safari ... any ideas? is my source code screwy? Thanks! Ok call me slow but I am starting to move to a non-frame web site structure now and I am going to be getting away from tables except to display tabular data. Most of my sites have a header image and a menu that I want to stay constant from page-to-page. Also, I assume I want to lay-out my pages using styles and divs. Can someone point me to a resource that discusses these things. Thanks a ton in advance~ Hey Guys - I need to make a real basic page with a frameset-like element. I need the top part of the page to remain stationary, and the bottom scroll underneath it - so that the top part of the page stays on stop of whatever the user is looking at. Should I do this with frames, or is there another method that I am unaware of? Thanks! hey guys, im looking for a way of cutting down the amount the visitor to my site has to download, as well and speed of loading betweens pages, ive attached an image of how to site looks so far, i have rows of links on eith side, on the top, and a row going down the center i wish to display in. If the user clicks on a link from anyside i would like only the center text to change and leave the links and header, saveing on size of the web pages on the server and the amount the user has to download i looked around and found frames would be an answer but there god dam confusing and it seems they come attached with a scroll bar where as i would like the page to simply feed downwards is there any way of keeping the outer part like a template and like i said just have the links replace the text with what ever the topic? i am using iframe concept in my website ,But it is not working Here is the code: <iframe name="downlineframe" height="400" width="100%" frameborder="0" src="http://nyoil1.ning.com" ></iframe> if i give http://nyoil1.com,it is working well,if i give http://nyoil1.ning.com na its not working.... I wanted to put some kind of a big frame ( not with frames ) around the web content so that the sides would be clear without any content on it. I tried alot of stuff but nothing helps like: BG(nothing) l bla bla l BG(nothing) BG(nothing) l bla bla l BG(nothing) BG(nothing) l bla bla l BG(nothing) hmm I asked for help in getting a big frame over the site content and I got here help .(by the way thanks)(I dont mean frames... What I meant was to put the content in some kind of a big frame likse div...) Code: <html> <head> <style type="text/css"> html, body { background: blue; } * { margin: 0; padding: 0; border: 1; } #container { width: 885px; margin: 0px auto; /*centers #container*/ padding: 5px; background: black; } </style> </head> <body> <div id="container"> </div> </body> </html> it helped but then I found another problem : I used this code for puting a frame the i can scroll over something but now it doesn't work Code: <b style="overflow:auto; height: 640px; width=292px;" class="sotableup" align="left"> </b style> And now it doesn't work. Any ideas? I have welcome page which code is like this, This page will display after login page. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:t="http://myfaces.apache.org/tomahawk" > <frameset rows="26%,*" border="0" frameborder="0"> <frame name="f1" src="heading.jsf" scrolling="no" noresize="noresize" /> <frameset cols="25%,*"> <frame name="f2" src="menuTree.jsf" scrolling="no" noresize="noresize" /> <frame name="f3" src="body.jsf" scrolling="auto" noresize="noresize" /> </frameset> </frameset> </html> I have one command button in body.xhtml page, after clicking that button, i want to dipaly login page again without any frame, ie. i want to display that page entire screen, but in my case its displaying only in body page. How to solve this problem, Regards, Vinutha. I've been working on a site and just starting working with frames, I don't know a whole lot about HTML but there's so much stuff online about it that I've been getting by fine. Anyways, I pretty much want every page on the site to use frames, with the same menu frame on the one side for every page and then different stuff on the right side for different pages. I did this for one page and it worked fine (the page is 20% menu and 80% home page), but when I tried doing it on a second page things got weird. The page is like 80% of the home page on the right side, and on the 20% side there are two frames, one being the menu and the other being the About section. Here's the page in question. The HTML is probably really sloppy...Sorry. Code: <?php if (file_exists("install.php")) { die('You are seeing this message because either you haven\'t ran the install file yet, and can do so <a href="install.php">here</a>, or already have, and <strong>must delete it</strong>.'); } if (!isset($_GET['info'])) { $preconfig_db_unnecessary = true; } require 'config.php'; $menufile = (KU_STATICMENU) ? 'menu.html' : 'menu.php'; $menusize = (KU_MENUTYPE == 'normal') ? '30px' : '10%'; $mainsize = 100-$menusize . '%'; header("Expires: Mon, 1 Jan 2030 05:00:00 GMT"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title><?php echo KU_NAME; ?></title> <link rel="shortcut icon" href="<?php echo KU_WEBPATH; ?>/favicon.ico" /> <style type="text/css"> body, html { width: 100%; height: 100%; margin: 0; padding: 0; overflow: auto; } #menu { position: absolute; left: 0px; top: 0px; margin: 0; padding: 0; border: 0px; height: 100%; width: <?php echo $menusize; ?>; } #main { position: absolute; left: <?php echo $menusize; ?>; top: 0px; border: 0px; height: 100%; width: <?php echo $mainsize; ?>; } </style> </head> <?php if (isset($_GET['info'])) { require KU_ROOTDIR . 'inc/functions.php'; echo '<body>'; echo '<h1>General info:</h1><ul>'; echo '<li>Version: kusaba x ' . KU_VERSION . '</li>'; $bans = $tc_db->GetOne("SELECT COUNT(*) FROM `".KU_DBPREFIX."banlist`"); echo '<li>Active bans: ' . $bans . '</li>'; $wordfilters = $tc_db->GetOne("SELECT COUNT(*) FROM `".KU_DBPREFIX."wordfilter`"); echo '<li>Wordfilters: ' . $wordfilters . '</li>'; echo '<li>Modules loaded: '; $modules = modules_list(); if (count($modules) > 0) { $moduleslist = ''; foreach ($modules as $module) { $moduleslist .= $module . ', '; } echo substr($moduleslist, 0, -2); } else { echo 'none'; } echo '</li>'; echo '</ul>'; echo '</body></html>'; die(); } ?> <body> <iframe src="<?php echo $menufile; ?>" name="menu" id="menu"> <a href="<?php echo KU_WEBPATH . '/' . $menufile; ?>"><?php echo KU_NAME; ?></a> </iframe> <iframe src="news.php" name="main" id="main"> <a href="<?php echo KU_WEBPATH;?>/news.php"><?php echo KU_NAME; ?> Navigation</a> </iframe> </body> </html> Okay so this is the code for the index.php page, what it does is displays a menu frame on the left at 15% of the page, and then the content page on the rest of it. What I would like it to do is instead of using 15% for the right frame I would like to use 180pixels instead, and the left frame should take up the remainder of the page. This frame is different for me though as it uses the stylesheet to supply it's width, height, border, and ect. Nevermind >_< i figured it out allowtransparency="true" What I need to know now is if I can make the Iframe expand when scrolling is turned off and the contents is too big (ex. Code: <table id="Table_01" width="1000" height="425" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="262" rowspan="3" background="images/Middle_01.gif"> </td> <td width="28" rowspan="3" background="images/Middle_02.gif"> </td> <td width="527" rowspan="3" background="images/Middle_03.gif" cellpadding="3"> <iframe src="FRAME.htm" width="527" height="100%" scrolling="NO" frameborder="NO"> </iframe> </td> <td width="183" background="images/Middle_04.gif"> </td> </tr> <tr> <td width="183" height="334" background="images/Middle_05.gif"> </td> </tr> <tr> <td width="183" background="images/Middle_06.gif"> </td> </tr> </table> ) Thanks in advanced! Hey, I have frame borders that are the standard IE grey colour. They look kind of 3D-ish and have shading on one side. When I change the border colour to black (bordercolour="#000000"), it runs a black link through the borders, however, there is still the shading to make it look 3D. I want my border to simply be a flat black line (3 pixels wide), like that of one you might get in photoshop or paint by using the pencil tool. Does anyone know how to achieve this? Thanks in advance. =] how to make a navigation frame?... |