silent_sufferer Posted March 24, 2011 Share Posted March 24, 2011 How would i use a Iframe to only select part of a page like just the flash player box so that the rest doesnt show. please help me Link to comment Share on other sites More sharing options...
dsonesuk Posted March 24, 2011 Share Posted March 24, 2011 I've used an iframe with javascript to pass the contents of a div container to it, so i can only print that div container contents. I suppose you could do the same, by copying the content you require, hide the other content and show content in iframe only, or do you mean open a pop up with iframe within it with this content, and use a background which fill the browser viewport area window, and will overlap the main content, which you can't access till you close the pop-up window, and background with it. Link to comment Share on other sites More sharing options...
silent_sufferer Posted March 24, 2011 Author Share Posted March 24, 2011 Okay what i mean is that i take a page like armoured games where you play online flash games but I just want to add the part containing the game in my html page. How would I do that if it is even possible Link to comment Share on other sites More sharing options...
jeffman Posted March 24, 2011 Share Posted March 24, 2011 You want to grab PART of a document that does not reside on your personal site? Try a server-side language like PHP. HTML by itself is no help for such a task. Link to comment Share on other sites More sharing options...
dsonesuk Posted March 24, 2011 Share Posted March 24, 2011 hard way, create outer div container to size you require for flash game area, and use overflow:hidden; and position relative;. Insert iframe into this, whose source links to flash game page, give this position:absolute; and use top and left properties, to position the game correctly so it shows through outer div container area.easy way, look at source of page where flash game is placed, look for noscript tag, this should contain object tag code (for IE), and within that embed code (other browsers), now just add 'http://armorgames.com' to beginning of link to swf file within these, and paste it to your page, just watch out for copyright police though. Link to comment Share on other sites More sharing options...
silent_sufferer Posted March 25, 2011 Author Share Posted March 25, 2011 Okay I need you to give me an example in text as I have no idea what you just told me. Use http://www.freeonlinegames.com/game/potty-racers.htmlThats the flash game i want to add in Link to comment Share on other sites More sharing options...
dsonesuk Posted March 25, 2011 Share Posted March 25, 2011 Err... They already provide iframe code to add just the flash game to your site? Link to comment Share on other sites More sharing options...
silent_sufferer Posted May 1, 2011 Author Share Posted May 1, 2011 they do? Where can i find this? Sorry im a newbie but im wiling 2 learn. All help appretiated Link to comment Share on other sites More sharing options...
dsonesuk Posted May 2, 2011 Share Posted May 2, 2011 scroll down to botton of page look for 'EMBED THIS GAME ON YOUR SITE:' below that is the iframe code to embed on your site. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.