|
|
|
|
![]() ![]() |
Feb 19 2006, 07:23 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 294 Joined: 28-January 06 Member No.: 17,798 |
How can i make a module where i have a page that displays another site within that page? is it like a embed or frame thing? please help me out.
|
|
|
|
Feb 19 2006, 09:56 PM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,005 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
Html iframe tags.
Change the "google.com" to the link of the site you want to display and the size to what you want the iframe to be on your page. I have used percentages here, but you can use different units of measurement, so play with it to get what you want. CODE <iframe id="Frame_Here" src="http://google.com" width="75%" height="75%"></iframe> Sample uploaded HERE . |
|
|
|
Feb 19 2006, 10:23 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 294 Joined: 28-January 06 Member No.: 17,798 |
Html iframe tags. Change the "google.com" to the link of the site you want to display and the size to what you want the iframe to be on your page. I have used percentages here, but you can use different units of measurement, so play with it to get what you want. CODE <iframe id="Frame_Here" src="http://google.com" width="75%" height="75%"></iframe> Sample uploaded HERE . Hmm but thats only html. i want to put it into a content or module or w.e and put it into the website instead of linking it. Id have to take that html code n convert it into php. and i did that n took that code, made a new module and when i viewed that module it didnt work, it cudnt find it or something not exactly sure. any more suggestions? |
|
|
|
Feb 19 2006, 11:47 PM
Post
#4
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,005 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
Did you see the sample link?
Click on the link up in my first post, do a view > source and snag the full code for the page. The iframe code, the embedded css and a full html page is there. Position the div with the iframe in your page where you want it displayed and have fun playing with it. The sample link is a real live google page, just change to a web-accessible URL for your preferred page. Change the page name to php if you want, but there is no php there. Either escape from the php portion of your code, or echo the div and iframe html code in a php page should work... Here is a link which shows that the only time the iframe would not be acceptable is if you are validating to xhtml strict doctype. Back it off to xhtml transitional and you should be okay. Unless your Browser won't support iframes? http://www.w3schools.com/tags/tag_iframe.asp |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 8th September 2008 - 06:59 AM |