Jump to content
xisto Community
Sign in to follow this  
BOAW

Module Help

Recommended Posts

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.

<iframe id="Frame_Here" src="http://google.com" width="75%" height="75%"></iframe>

Sample uploaded HERE .

Share this post


Link to post
Share on other sites

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.

<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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.