hey guys i have some design problem/ coding problem need help, really want someone can help me out!! okay so what i want to do is that to load another website in my website, in other words say i have this site(fake) hello.com and i just want to load/make a banner "HELLO" on top of the page and (content) below it is another site e.g bye.com can i do that? so i think im looking for a code to automatically load another website in the contents only ( like the address bar is still hello.com, but the content is bye.com and i keep the banner hello! PLEASE PLEASE NEED HELP
You can use an I frame like this <html> <head> <title> Iframe </title> <style type="text/css"> /*<![CDATA[*/ #theiframe { position:absolute; top:1px; width:524px; height:200px; } /*//]]>*/ </style> </head> <body> <iframe id="theiframe" src="http://www.bye.com /"></iframe> </body> </html>
Here you can read more about the iframe tag: w3schools.com/TAGS/tag_iframe.asp make sure that you really want to use an iframe, it's an easy solution, but, it will be really bad for your SEO. A better, but, more complex solution will be to crawl the "bye.com" website and copy the html content you desire to "hello.com". More elegant and effective. Gives you more freedom to manipulate the data.