HTML - Using Frames To Create A Copy Of Some Web Content
I am making a website and need to display some web content in several dozen parts of the page. The web content is made up of php scripts, and I don't really want to have to make copies of it all over the place, so I was hoping to use frames. A simplified example of what I want to do is this:
I have a website at example.com, now I have a subdomain at a.example.com. I want a.example.com to look exactly the same as example.com (I want to be able to navigate through a.example.com exactly the same way I would through example.com). None of my links are absolute (ie. they're all /this/is/a/subdir), so I assume this is possible. Can someone point me in the right direction here please? I'm not new to html or php but have never used frames before. Similar TutorialsHi, I have a requirment in my project wherein I have to read contents from another webpage hosted remotely, All I understand is that "View source" is one option, but how do I copy automatically the contents of the remote web page lets say for ex: "content" type data into my webpage Copying and pasting content manually is not allowed. And dont worry about the copyright stuffs. Its just for internal use. Thanks, Jay hii, i'm using a 3 html frames in my web page, top, left and rite content frames. i'm using draggable frames, every thing is fine, but i want to show my user session time out in that main page(containing 3 framesets), below is the code. i dun know waht had happened, the content is not getting displayed except the title. can anyone please help me.. below is my code Code: <html dir='ltr'> <head> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; CHARSET=UTF-8"> <META HTTP-EQUIV="CONTENT-SCRIPT-TYPE" CONTENT="text/javascript"> <META HTTP-EQUIV="CONTENT-STYLE-TYPE" CONTENT="text/css"> <META HTTP-EQUIV="EXPIRES" CONTENT="-1"> <META HTTP-EQUIV="Refresh" CONTENT="1800; URL=http://localhost/Project/sessiontimeout.php"> <link rel="shortcut icon" href="http://localhost/Project/images/trrlogo1.ico"/> <meta name="generator" content="HTML Tidy, see www.w3.org"> <title>Page</title> <link rel="stylesheet" type="text/css" href="http://localhost/Project/css/timer.css"> <script type="text/javascript" src="http://localhost/Project/scripts/timer-src.js" /></script> <script type="text/javascript" src="http://localhost/Project/scripts/zdragdroplib.js"></script> </head><body> <script type="text/javascript"> document.write(getWarning()); </script> <div id="warningDiv"></div> <img src="http://localhost/Project/images/load.gif" onLoad="initTimer();"> <script language="JavaScript"> var frame = '<FRAMESET ROWS="117,*"><frame name="UniversalHeader" title="Portal Header" scrolling="no" frameborder="0" noresize src="http://localhost/Project/leftmenu.php"><FRAMESET COLS="238, *"><FRAME name="NAV" frameborder="0" framespacing ="0" scrolling="auto" marginheight="0" marginwidth="0" target="_blank" SRC="http://localhost/Project/leftnavigation.php"><FRAME name="TargetContent" scrolling="auto" frameborder="0" marginheight="0" target="_blank" SRC="http://localhost/Project/MainMenuframe.php"' ; var pos = document.location.href.indexOf("?http://"); if (pos>0) { frame += document.location.href.substr(pos+1); } else { frame += 'dc_toc.html'; } frame += '"></FRAMESET></FRAMESET>'; document.write(frame); </script> </body> </html> i cannot see any content except the title.. please suggest me how to proceed.. Many Thanks. Hi folks, I am totally new to HTML and I've managed to create a basic webpage with a table of contents since starting only yesterday. I want to try and add a counter to the end of each content item based on how many records are displayed on the page. For instance: Contents Group A-B (10) Group C-D (24) Group E-F (0) Can this be done in HTML or maybe incorporate some Javascript within HTML? I've searched all over this forum for something similar but keep getting page hit counters or visitor counters. Does anyone have specific code, a suggestion or a recommendation to tackle this? Any replies are welcome. Thanks. Naik. Hi, as the title says, I am wondering if there is a way to include the content of a link in the page itself. example: this is a regular link to a html page: <a href="next.html">next</a> let's say I don't want the file next.html, is there a way to include the content of next.html somewhere and refer to it from the page directly? I am not sure I am explaining this well, so I'll say it again: I want to be able to put several html files in one file, meaning I click on links for pages defined in the same html file I am viewing. (this is for use with a tab system in iframes generated dynamically from a database) As an exemple, if we use an iframe, you can include html code between <iframe>html code here</iframe> directly without using src, so I guess we can do the same for just about any link? for sure this can be done, but can it be done in html or do I have to use javascript or something? thank you i want to create a button in html and when i click it i want to see an image but i want to see this image in a new window. how can i do it? Hi I work at a helpdesk and we are creating a knowledge base of all of our information. We are currently trying to develop a way to track the steps that the agents have completed within the knowledge document. Therefore, someone brought up the bright idea that after each step or beside each step that there will be a check box. Once the agent clicks that check box the information from that step would be logged as a log comment within our ticketing system. Now we can move the data into the log comment field without a problem but we are running into the issue of copying the selected text with check box. Could anyone assist with the coding? I've heard many times "don't use frames, there is better ways to accomplish it", and I was wondering, is this just referring to "invisible" frames, or any frames? For example, look at Kingdom of Loathing. They use frames (or what appears to be frames) and I can't see how they could successfully make that site without. If I had to have all the screens scroll as one rather than separate, and couldn't resize when I needed to, it would be extremely annoying. So, frames are bad, or just the invisible ones? Hi, Im trying to make my footer content align correctly to the main content when a window resizes. The apdivs don't seem to want to move at all even with a relative position etc. I have tried everything but just cant get it to work can someone help please? http://pjm.co.uk.uksite4.yourwebserv...splay&PageID=5 Also some one commented before on the amount of css and JS pages. These will al be stripped out as its an Open sources system im using! Thansk alot Joe Hello again Can someone please help me with this, I need a button that when clicked will pull a password from somewhere hidden from view and allow the users to paste it in the relevant frame of my web page. can this be done without using a text area, or by using an external txt file. basically the password we all use is stored in an email and I don't want to have to open outlook each time I need to use it, but I don't really want it the password displayed on the page either. hope I made sense if not please feel free to shout random abuse at me. Is it possible to make a button that when clicked, copies text from a box. Instead of manually selecting the contents and then copying with something like control+c. I don't know if this is possible with html alone, could anyone help? My webmaster is on vacation and I am trying to post a News Release on our website. This is a very basis question: The copy on this page is centered, and I want to align it left. Here's the page: http://www.247-direct-mail-services.com/news/ Seems to me, this is the style sheet html for this page: <p style="font-family:Arial, Helvetica, sans-serif; font-size:16px; font-weight:bold; text-align:left; color:#ffffff;"> But it's not showing this font nor aligning left. I don't know how to fix this. Hoping to get input. Thx. Hi everyone. I have a script code that I'm trying to put on my photography site on MySpace. But everytime I do it takes away the script tags and turns everything simply into text instead of an HTML code. So it won't work. I was wondering if anyone could tell me how to fix this? I would be really greatfuly if you could. Thanks! Here's the code. HTML Code: <script> //Copytext to clipboard- by Gennero (patrice.gennero@voila.fr) //Submited to DynamicDrive.com //Visit http://www.dynamicdrive.com for this script bBool=false var copiedtext="" var tempstore="" function initiatecopy() { bBool=true; } function copyit() { if (bBool) { tempstore=copiedtext document.execCommand("Copy") copiedtext=window.clipboardData.getData("Text"); if (tempstore!=copiedtext) { alert(copiedtext); } bBool=false; } } document.onselectionchange = initiatecopy document.onmouseup = copyit </script> --Jo Hello all, im still very new to HMTL and this whole site design. there is a website that i would like to base mine on, its very simple HTML and the question i have is... Is it cheeky to copy the page source and say i did could i get into trouble if found out? Also here is the site in question... http://www.ne1co.info/about/index.html Thanks Hey everybody, I'd like to make a website based on an existing one: www.wiskundeclub.com. However, if I download the website using a program such as Backstreet Browser or HTTrack and then double-click on the "index.html" in the generated folder, I don't see the same thing as on www.wiskundeclub.com. Specifically, the animations don't seem to work; for the version downloaded with HTTrack I only see the initial white page with "Loading...". Does anybody know the reason for this? Thanks. Cheers, Kurt Hi! I need help! How can I copy a html table row when updated? The table is not in my site! I know the name and where it is! I prefer not to copy data manualy because it's not updated reguraly and I've not so much time! If I can automaticaly insert it in a mysql database is perfect!!! Can someone help me?!? Thanks! I have a wysiwyg text editor on my site and I want users to be able to copy-n-paste clip art from their ms word docs into it and have it display on the web. Is there anyway to do that? Hay guys and girls! This is my first post so I hope this question is welcome I am having a little bit of a problem in trying a little HTML coding. what I am attempting to do is to create a Google Chrome extension where a user can post a link into a movie, on clicking submit button in the extension, the link is then copied from that box and pasted into the the box on the website and that submit button is then also liked atomically. Thanks for taking the time to read! |